diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000..ce2fd817
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+
+computer vis/Human detection/yolov3.weights
+*.xml
+*.weights
diff --git a/Tracking/BLE-ESP32/BLE_client/BLE_client.ino b/Tracking/BLE-ESP32/BLE_client/BLE_client.ino
new file mode 100644
index 00000000..8356158d
--- /dev/null
+++ b/Tracking/BLE-ESP32/BLE_client/BLE_client.ino
@@ -0,0 +1,162 @@
+/**
+ * A BLE client example that is rich in capabilities.
+ * There is a lot new capabilities implemented.
+ * author unknown
+ * updated by chegewara
+ */
+
+#include "BLEDevice.h"
+//#include "BLEScan.h"
+
+// The remote service we wish to connect to.
+static BLEUUID serviceUUID("adabfb00-6e7d-4601-bda2-bffaa68956ba");
+// The characteristic of the remote service we are interested in.
+static BLEUUID charUUID("adabfb02-6e7d-4601-bda2-bffaa68956ba");
+
+static boolean doConnect = false;
+static boolean connected = false;
+static boolean doScan = false;
+static BLERemoteCharacteristic* pRemoteCharacteristic;
+static BLEAdvertisedDevice* myDevice;
+
+static void notifyCallback(
+ BLERemoteCharacteristic* pBLERemoteCharacteristic,
+ uint8_t* pData,
+ size_t length,
+ bool isNotify) {
+ Serial.print("Notify callback for characteristic ");
+ Serial.print(pBLERemoteCharacteristic->getUUID().toString().c_str());
+ Serial.print(" of data length ");
+ Serial.println(length);
+ Serial.print("data: ");
+ Serial.println((char*)pData);
+}
+
+class MyClientCallback : public BLEClientCallbacks {
+ void onConnect(BLEClient* pclient) {
+ }
+
+ void onDisconnect(BLEClient* pclient) {
+ connected = false;
+ Serial.println("onDisconnect");
+ }
+};
+
+bool connectToServer() {
+ Serial.print("Forming a connection to ");
+ Serial.println(myDevice->getAddress().toString().c_str());
+
+ BLEClient* pClient = BLEDevice::createClient();
+ Serial.println(" - Created client");
+
+ pClient->setClientCallbacks(new MyClientCallback());
+
+ // Connect to the remove BLE Server.
+ pClient->connect(myDevice); // if you pass BLEAdvertisedDevice instead of address, it will be recognized type of peer device address (public or private)
+ Serial.println(" - Connected to server");
+ pClient->setMTU(517); //set client to request maximum MTU from server (default is 23 otherwise)
+
+ // Obtain a reference to the service we are after in the remote BLE server.
+ BLERemoteService* pRemoteService = pClient->getService(serviceUUID);
+ if (pRemoteService == nullptr) {
+ Serial.print("Failed to find our service UUID: ");
+ Serial.println(serviceUUID.toString().c_str());
+ pClient->disconnect();
+ return false;
+ }
+ Serial.println(" - Found our service");
+
+
+ // Obtain a reference to the characteristic in the service of the remote BLE server.
+ pRemoteCharacteristic = pRemoteService->getCharacteristic(charUUID);
+ if (pRemoteCharacteristic == nullptr) {
+ Serial.print("Failed to find our characteristic UUID: ");
+ Serial.println(charUUID.toString().c_str());
+ pClient->disconnect();
+ return false;
+ }
+ Serial.println(" - Found our characteristic");
+
+ // Read the value of the characteristic.
+ if(pRemoteCharacteristic->canRead()) {
+ std::string value = pRemoteCharacteristic->readValue();
+ Serial.print("The characteristic value was: ");
+ Serial.println(value.c_str());
+ }
+
+ if(pRemoteCharacteristic->canNotify())
+ pRemoteCharacteristic->registerForNotify(notifyCallback);
+
+ connected = true;
+ return true;
+}
+/**
+ * Scan for BLE servers and find the first one that advertises the service we are looking for.
+ */
+class MyAdvertisedDeviceCallbacks: public BLEAdvertisedDeviceCallbacks {
+ /**
+ * Called for each advertising BLE server.
+ */
+ void onResult(BLEAdvertisedDevice advertisedDevice) {
+ Serial.print("BLE Advertised Device found: ");
+ Serial.println(advertisedDevice.toString().c_str());
+
+ // We have found a device, let us now see if it contains the service we are looking for.
+ if (advertisedDevice.haveServiceUUID() && advertisedDevice.isAdvertisingService(serviceUUID)) {
+
+ BLEDevice::getScan()->stop();
+ myDevice = new BLEAdvertisedDevice(advertisedDevice);
+ doConnect = true;
+ doScan = true;
+
+ } // Found our server
+ } // onResult
+}; // MyAdvertisedDeviceCallbacks
+
+
+void setup() {
+ Serial.begin(115200);
+ Serial.println("Starting Arduino BLE Client application...");
+ BLEDevice::init("");
+
+ // Retrieve a Scanner and set the callback we want to use to be informed when we
+ // have detected a new device. Specify that we want active scanning and start the
+ // scan to run for 5 seconds.
+ BLEScan* pBLEScan = BLEDevice::getScan();
+ pBLEScan->setAdvertisedDeviceCallbacks(new MyAdvertisedDeviceCallbacks());
+ pBLEScan->setInterval(1349);
+ pBLEScan->setWindow(449);
+ pBLEScan->setActiveScan(true);
+ pBLEScan->start(5, false);
+} // End of setup.
+
+
+// This is the Arduino main loop function.
+void loop() {
+
+ // If the flag "doConnect" is true then we have scanned for and found the desired
+ // BLE Server with which we wish to connect. Now we connect to it. Once we are
+ // connected we set the connected flag to be true.
+ if (doConnect == true) {
+ if (connectToServer()) {
+ Serial.println("We are now connected to the BLE Server.");
+ } else {
+ Serial.println("We have failed to connect to the server; there is nothin more we will do.");
+ }
+ doConnect = false;
+ }
+
+ // If we are connected to a peer BLE Server, update the characteristic each time we are reached
+ // with the current time since boot.
+ if (connected) {
+ String newValue = "Time since boot: " + String(millis()/1000);
+ Serial.println("Setting new characteristic value to \"" + newValue + "\"");
+
+ // Set the characteristic's value to be the array of bytes that is actually a string.
+ pRemoteCharacteristic->writeValue(newValue.c_str(), newValue.length());
+ }else if(doScan){
+ BLEDevice::getScan()->start(0); // this is just example to start scan after disconnect, most likely there is better way to do it in arduino
+ }
+
+ delay(1000); // Delay a second between loops.
+} // End of loop
diff --git a/Tracking/BLE-ESP32/Magnetometer/Compass/Compass.ino b/Tracking/BLE-ESP32/Magnetometer/Compass/Compass.ino
new file mode 100644
index 00000000..4f81ee75
--- /dev/null
+++ b/Tracking/BLE-ESP32/Magnetometer/Compass/Compass.ino
@@ -0,0 +1,159 @@
+/*
+ e-Gizmo QMC5883L GY-271 Compass
+
+ Sample sketch for the GY-271 QMC5883L
+ for getting the raw data of x, y, z and
+ Radius in degrees.
+
+ Codes by e-Gizmo Mechatronix Central
+ http://www.e-gizmo.com
+ July 10,2017
+
+*/
+
+
+#include Uses a NodeMCU-32S and HMC5883L MagnetometerESP32 Magnetometer
"
+ "
- * 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.GeneratedMessageLite< - Int32Value, Int32Value.Builder> implements - // @@protoc_insertion_point(message_implements:Int32Value) - Int32ValueOrBuilder { - private Int32Value() { - } - public static final int VALUE_FIELD_NUMBER = 1; - private int value_; - /** - *
- * The int32 value. - *- * - *
int32 value = 1;
- * @return The value.
- */
- @java.lang.Override
- public int getValue() {
- return value_;
- }
- /**
- * - * The int32 value. - *- * - *
int32 value = 1;
- * @param value The value to set.
- */
- private void setValue(int value) {
-
- value_ = value;
- }
- /**
- * - * The int32 value. - *- * - *
int32 value = 1;
- */
- private void clearValue() {
-
- value_ = 0;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.Int32Value parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.Int32Value parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.Int32Value parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.Int32Value prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * - * Wrapper message for `int32`. - * Allows for nullability of fields in messages - *- * - * Protobuf type {@code Int32Value} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageLite.Builder< - com.pauldemarco.flutter_blue.Protos.Int32Value, Builder> implements - // @@protoc_insertion_point(builder_implements:Int32Value) - com.pauldemarco.flutter_blue.Protos.Int32ValueOrBuilder { - // Construct using com.pauldemarco.flutter_blue.Protos.Int32Value.newBuilder() - private Builder() { - super(DEFAULT_INSTANCE); - } - - - /** - *
- * The int32 value. - *- * - *
int32 value = 1;
- * @return The value.
- */
- @java.lang.Override
- public int getValue() {
- return instance.getValue();
- }
- /**
- * - * The int32 value. - *- * - *
int32 value = 1;
- * @param value The value to set.
- * @return This builder for chaining.
- */
- public Builder setValue(int value) {
- copyOnWrite();
- instance.setValue(value);
- return this;
- }
- /**
- * - * The int32 value. - *- * - *
int32 value = 1;
- * @return This builder for chaining.
- */
- public Builder clearValue() {
- copyOnWrite();
- instance.clearValue();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:Int32Value)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.Int32Value();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "value_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\u0004";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser.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.GeneratedMessageLite<
- BluetoothState, BluetoothState.Builder> implements
- // @@protoc_insertion_point(message_implements:BluetoothState)
- BluetoothStateOrBuilder {
- private BluetoothState() {
- }
- /**
- * Protobuf enum {@code BluetoothState.State}
- */
- public enum State
- implements com.google.protobuf.Internal.EnumLite {
- /**
- * 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;
-
-
- @java.lang.Override
- 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 number of the enum to look for.
- * @return The enum associated with the given number.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static State valueOf(int value) {
- return forNumber(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.BluetoothState.State state = 1;
- * @return The enum numeric value on the wire for state.
- */
- @java.lang.Override
- public int getStateValue() {
- return state_;
- }
- /**
- * .BluetoothState.State state = 1;
- * @return The state.
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothState.State getState() {
- com.pauldemarco.flutter_blue.Protos.BluetoothState.State result = com.pauldemarco.flutter_blue.Protos.BluetoothState.State.forNumber(state_);
- return result == null ? com.pauldemarco.flutter_blue.Protos.BluetoothState.State.UNRECOGNIZED : result;
- }
- /**
- * .BluetoothState.State state = 1;
- * @param value The enum numeric value on the wire for state to set.
- */
- private void setStateValue(int value) {
- state_ = value;
- }
- /**
- * .BluetoothState.State state = 1;
- * @param value The state to set.
- */
- private void setState(com.pauldemarco.flutter_blue.Protos.BluetoothState.State value) {
- state_ = value.getNumber();
-
- }
- /**
- * .BluetoothState.State state = 1;
- */
- private void clearState() {
-
- state_ = 0;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothState parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.BluetoothState prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code BluetoothState}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.BluetoothState, Builder> implements
- // @@protoc_insertion_point(builder_implements:BluetoothState)
- com.pauldemarco.flutter_blue.Protos.BluetoothStateOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.BluetoothState.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * .BluetoothState.State state = 1;
- * @return The enum numeric value on the wire for state.
- */
- @java.lang.Override
- public int getStateValue() {
- return instance.getStateValue();
- }
- /**
- * .BluetoothState.State state = 1;
- * @param value The state to set.
- * @return This builder for chaining.
- */
- public Builder setStateValue(int value) {
- copyOnWrite();
- instance.setStateValue(value);
- return this;
- }
- /**
- * .BluetoothState.State state = 1;
- * @return The state.
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothState.State getState() {
- return instance.getState();
- }
- /**
- * .BluetoothState.State state = 1;
- * @param value The enum numeric value on the wire for state to set.
- * @return This builder for chaining.
- */
- public Builder setState(com.pauldemarco.flutter_blue.Protos.BluetoothState.State value) {
- copyOnWrite();
- instance.setState(value);
- return this;
- }
- /**
- * .BluetoothState.State state = 1;
- * @return This builder for chaining.
- */
- public Builder clearState() {
- copyOnWrite();
- instance.clearState();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:BluetoothState)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.BluetoothState();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "state_",
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0000\u0000\u0001\f";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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();
-
- /**
- * 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- * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- java.util.Map- * 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- * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
- java.util.Map- * 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.Listrepeated 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 element to return.
- * @return 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.GeneratedMessageLite<
- AdvertisementData, AdvertisementData.Builder> implements
- // @@protoc_insertion_point(message_implements:AdvertisementData)
- AdvertisementDataOrBuilder {
- private AdvertisementData() {
- localName_ = "";
- serviceUuids_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
- }
- public static final int LOCAL_NAME_FIELD_NUMBER = 1;
- private java.lang.String localName_;
- /**
- * string local_name = 1;
- * @return The localName.
- */
- @java.lang.Override
- public java.lang.String getLocalName() {
- return localName_;
- }
- /**
- * string local_name = 1;
- * @return The bytes for localName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getLocalNameBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(localName_);
- }
- /**
- * string local_name = 1;
- * @param value The localName to set.
- */
- private void setLocalName(
- java.lang.String value) {
- value.getClass();
-
- localName_ = value;
- }
- /**
- * string local_name = 1;
- */
- private void clearLocalName() {
-
- localName_ = getDefaultInstance().getLocalName();
- }
- /**
- * string local_name = 1;
- * @param value The bytes for localName to set.
- */
- private void setLocalNameBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- localName_ = value.toStringUtf8();
-
- }
-
- public static final int TX_POWER_LEVEL_FIELD_NUMBER = 2;
- private com.pauldemarco.flutter_blue.Protos.Int32Value txPowerLevel_;
- /**
- * .Int32Value tx_power_level = 2;
- */
- @java.lang.Override
- public boolean hasTxPowerLevel() {
- return txPowerLevel_ != null;
- }
- /**
- * .Int32Value tx_power_level = 2;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.Int32Value getTxPowerLevel() {
- return txPowerLevel_ == null ? com.pauldemarco.flutter_blue.Protos.Int32Value.getDefaultInstance() : txPowerLevel_;
- }
- /**
- * .Int32Value tx_power_level = 2;
- */
- private void setTxPowerLevel(com.pauldemarco.flutter_blue.Protos.Int32Value value) {
- value.getClass();
- txPowerLevel_ = value;
-
- }
- /**
- * .Int32Value tx_power_level = 2;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeTxPowerLevel(com.pauldemarco.flutter_blue.Protos.Int32Value value) {
- value.getClass();
- if (txPowerLevel_ != null &&
- txPowerLevel_ != com.pauldemarco.flutter_blue.Protos.Int32Value.getDefaultInstance()) {
- txPowerLevel_ =
- com.pauldemarco.flutter_blue.Protos.Int32Value.newBuilder(txPowerLevel_).mergeFrom(value).buildPartial();
- } else {
- txPowerLevel_ = value;
- }
-
- }
- /**
- * .Int32Value tx_power_level = 2;
- */
- private void clearTxPowerLevel() { txPowerLevel_ = null;
-
- }
-
- public static final int CONNECTABLE_FIELD_NUMBER = 3;
- private boolean connectable_;
- /**
- * bool connectable = 3;
- * @return The connectable.
- */
- @java.lang.Override
- public boolean getConnectable() {
- return connectable_;
- }
- /**
- * bool connectable = 3;
- * @param value The connectable to set.
- */
- private void setConnectable(boolean value) {
-
- connectable_ = value;
- }
- /**
- * bool connectable = 3;
- */
- private void clearConnectable() {
-
- connectable_ = false;
- }
-
- public static final int MANUFACTURER_DATA_FIELD_NUMBER = 4;
- private static final class ManufacturerDataDefaultEntryHolder {
- static final com.google.protobuf.MapEntryLite<
- java.lang.Integer, com.google.protobuf.ByteString> defaultEntry =
- com.google.protobuf.MapEntryLite
- .- * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- @java.lang.Override
-
- public boolean containsManufacturerData(
- int key) {
-
- return internalGetManufacturerData().containsKey(key);
- }
- /**
- * Use {@link #getManufacturerDataMap()} instead.
- */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map- * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- @java.lang.Override
-
- public java.util.Map- * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- @java.lang.Override
-
- public com.google.protobuf.ByteString getManufacturerDataOrDefault(
- int key,
- com.google.protobuf.ByteString defaultValue) {
-
- java.util.Map- * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- @java.lang.Override
-
- public com.google.protobuf.ByteString getManufacturerDataOrThrow(
- int key) {
-
- java.util.Map- * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- private java.util.Map- * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
- @java.lang.Override
-
- public boolean containsServiceData(
- java.lang.String key) {
- key.getClass();
- return internalGetServiceData().containsKey(key);
- }
- /**
- * Use {@link #getServiceDataMap()} instead.
- */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map- * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
- @java.lang.Override
-
- public java.util.Map- * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
- @java.lang.Override
-
- public com.google.protobuf.ByteString getServiceDataOrDefault(
- java.lang.String key,
- com.google.protobuf.ByteString defaultValue) {
- key.getClass();
- java.util.Map- * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
- @java.lang.Override
-
- public com.google.protobuf.ByteString getServiceDataOrThrow(
- java.lang.String key) {
- key.getClass();
- java.util.Map- * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
- private java.util.Maprepeated string service_uuids = 6;
- * @return A list containing the serviceUuids.
- */
- @java.lang.Override
- public java.util.Listrepeated string service_uuids = 6;
- * @return The count of serviceUuids.
- */
- @java.lang.Override
- 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.
- */
- @java.lang.Override
- 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.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidsBytes(int index) {
- return com.google.protobuf.ByteString.copyFromUtf8(
- serviceUuids_.get(index));
- }
- private void ensureServiceUuidsIsMutable() {
- if (!serviceUuids_.isModifiable()) {
- serviceUuids_ =
- com.google.protobuf.GeneratedMessageLite.mutableCopy(serviceUuids_);
- }
- }
- /**
- * repeated string service_uuids = 6;
- * @param index The index to set the value at.
- * @param value The serviceUuids to set.
- */
- private void setServiceUuids(
- int index, java.lang.String value) {
- value.getClass();
- ensureServiceUuidsIsMutable();
- serviceUuids_.set(index, value);
- }
- /**
- * repeated string service_uuids = 6;
- * @param value The serviceUuids to add.
- */
- private void addServiceUuids(
- java.lang.String value) {
- value.getClass();
- ensureServiceUuidsIsMutable();
- serviceUuids_.add(value);
- }
- /**
- * repeated string service_uuids = 6;
- * @param values The serviceUuids to add.
- */
- private void addAllServiceUuids(
- java.lang.Iterablerepeated string service_uuids = 6;
- */
- private void clearServiceUuids() {
- serviceUuids_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
- }
- /**
- * repeated string service_uuids = 6;
- * @param value The bytes of the serviceUuids to add.
- */
- private void addServiceUuidsBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- ensureServiceUuidsIsMutable();
- serviceUuids_.add(value.toStringUtf8());
- }
-
- public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.AdvertisementData parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.AdvertisementData prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code AdvertisementData}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.AdvertisementData, Builder> implements
- // @@protoc_insertion_point(builder_implements:AdvertisementData)
- com.pauldemarco.flutter_blue.Protos.AdvertisementDataOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.AdvertisementData.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string local_name = 1;
- * @return The localName.
- */
- @java.lang.Override
- public java.lang.String getLocalName() {
- return instance.getLocalName();
- }
- /**
- * string local_name = 1;
- * @return The bytes for localName.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getLocalNameBytes() {
- return instance.getLocalNameBytes();
- }
- /**
- * string local_name = 1;
- * @param value The localName to set.
- * @return This builder for chaining.
- */
- public Builder setLocalName(
- java.lang.String value) {
- copyOnWrite();
- instance.setLocalName(value);
- return this;
- }
- /**
- * string local_name = 1;
- * @return This builder for chaining.
- */
- public Builder clearLocalName() {
- copyOnWrite();
- instance.clearLocalName();
- 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) {
- copyOnWrite();
- instance.setLocalNameBytes(value);
- return this;
- }
-
- /**
- * .Int32Value tx_power_level = 2;
- */
- @java.lang.Override
- public boolean hasTxPowerLevel() {
- return instance.hasTxPowerLevel();
- }
- /**
- * .Int32Value tx_power_level = 2;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.Int32Value getTxPowerLevel() {
- return instance.getTxPowerLevel();
- }
- /**
- * .Int32Value tx_power_level = 2;
- */
- public Builder setTxPowerLevel(com.pauldemarco.flutter_blue.Protos.Int32Value value) {
- copyOnWrite();
- instance.setTxPowerLevel(value);
- return this;
- }
- /**
- * .Int32Value tx_power_level = 2;
- */
- public Builder setTxPowerLevel(
- com.pauldemarco.flutter_blue.Protos.Int32Value.Builder builderForValue) {
- copyOnWrite();
- instance.setTxPowerLevel(builderForValue.build());
- return this;
- }
- /**
- * .Int32Value tx_power_level = 2;
- */
- public Builder mergeTxPowerLevel(com.pauldemarco.flutter_blue.Protos.Int32Value value) {
- copyOnWrite();
- instance.mergeTxPowerLevel(value);
- return this;
- }
- /**
- * .Int32Value tx_power_level = 2;
- */
- public Builder clearTxPowerLevel() { copyOnWrite();
- instance.clearTxPowerLevel();
- return this;
- }
-
- /**
- * bool connectable = 3;
- * @return The connectable.
- */
- @java.lang.Override
- public boolean getConnectable() {
- return instance.getConnectable();
- }
- /**
- * bool connectable = 3;
- * @param value The connectable to set.
- * @return This builder for chaining.
- */
- public Builder setConnectable(boolean value) {
- copyOnWrite();
- instance.setConnectable(value);
- return this;
- }
- /**
- * bool connectable = 3;
- * @return This builder for chaining.
- */
- public Builder clearConnectable() {
- copyOnWrite();
- instance.clearConnectable();
- return this;
- }
-
- @java.lang.Override
-
- public int getManufacturerDataCount() {
- return instance.getManufacturerDataMap().size();
- }
- /**
- * - * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- @java.lang.Override
-
- public boolean containsManufacturerData(
- int key) {
-
- return instance.getManufacturerDataMap().containsKey(key);
- }
-
- public Builder clearManufacturerData() {
- copyOnWrite();
- instance.getMutableManufacturerDataMap().clear();
- return this;
- }
- /**
- * - * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
-
- public Builder removeManufacturerData(
- int key) {
-
- copyOnWrite();
- instance.getMutableManufacturerDataMap().remove(key);
- return this;
- }
- /**
- * Use {@link #getManufacturerDataMap()} instead.
- */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map- * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- @java.lang.Override
- public java.util.Map- * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- @java.lang.Override
-
- public com.google.protobuf.ByteString getManufacturerDataOrDefault(
- int key,
- com.google.protobuf.ByteString defaultValue) {
-
- java.util.Map- * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- @java.lang.Override
-
- public com.google.protobuf.ByteString getManufacturerDataOrThrow(
- int key) {
-
- java.util.Map- * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- public Builder putManufacturerData(
- int key,
- com.google.protobuf.ByteString value) {
-
- value.getClass();
- copyOnWrite();
- instance.getMutableManufacturerDataMap().put(key, value);
- return this;
- }
- /**
- * - * Map of manufacturers to their data - *- * - *
map<int32, bytes> manufacturer_data = 4;
- */
- public Builder putAllManufacturerData(
- java.util.Map- * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
- @java.lang.Override
-
- public boolean containsServiceData(
- java.lang.String key) {
- key.getClass();
- return instance.getServiceDataMap().containsKey(key);
- }
-
- public Builder clearServiceData() {
- copyOnWrite();
- instance.getMutableServiceDataMap().clear();
- return this;
- }
- /**
- * - * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
-
- public Builder removeServiceData(
- java.lang.String key) {
- key.getClass();
- copyOnWrite();
- instance.getMutableServiceDataMap().remove(key);
- return this;
- }
- /**
- * Use {@link #getServiceDataMap()} instead.
- */
- @java.lang.Override
- @java.lang.Deprecated
- public java.util.Map- * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
- @java.lang.Override
- public java.util.Map- * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
- @java.lang.Override
-
- public com.google.protobuf.ByteString getServiceDataOrDefault(
- java.lang.String key,
- com.google.protobuf.ByteString defaultValue) {
- key.getClass();
- java.util.Map- * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
- @java.lang.Override
-
- public com.google.protobuf.ByteString getServiceDataOrThrow(
- java.lang.String key) {
- key.getClass();
- java.util.Map- * 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) {
- key.getClass();
- value.getClass();
- copyOnWrite();
- instance.getMutableServiceDataMap().put(key, value);
- return this;
- }
- /**
- * - * Map of service UUIDs to their data. - *- * - *
map<string, bytes> service_data = 5;
- */
- public Builder putAllServiceData(
- java.util.Maprepeated string service_uuids = 6;
- * @return A list containing the serviceUuids.
- */
- @java.lang.Override
- public java.util.Listrepeated string service_uuids = 6;
- * @return The count of serviceUuids.
- */
- @java.lang.Override
- public int getServiceUuidsCount() {
- return instance.getServiceUuidsCount();
- }
- /**
- * repeated string service_uuids = 6;
- * @param index The index of the element to return.
- * @return The serviceUuids at the given index.
- */
- @java.lang.Override
- public java.lang.String getServiceUuids(int index) {
- return instance.getServiceUuids(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.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidsBytes(int index) {
- return instance.getServiceUuidsBytes(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) {
- copyOnWrite();
- instance.setServiceUuids(index, value);
- 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) {
- copyOnWrite();
- instance.addServiceUuids(value);
- return this;
- }
- /**
- * repeated string service_uuids = 6;
- * @param values The serviceUuids to add.
- * @return This builder for chaining.
- */
- public Builder addAllServiceUuids(
- java.lang.Iterablerepeated string service_uuids = 6;
- * @return This builder for chaining.
- */
- public Builder clearServiceUuids() {
- copyOnWrite();
- instance.clearServiceUuids();
- 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) {
- copyOnWrite();
- instance.addServiceUuidsBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:AdvertisementData)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.AdvertisementData();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "localName_",
- "txPowerLevel_",
- "connectable_",
- "manufacturerData_",
- ManufacturerDataDefaultEntryHolder.defaultEntry,
- "serviceData_",
- ServiceDataDefaultEntryHolder.defaultEntry,
- "serviceUuids_",
- };
- java.lang.String info =
- "\u0000\u0006\u0000\u0000\u0001\u0006\u0006\u0002\u0001\u0000\u0001\u0208\u0002\t" +
- "\u0003\u0007\u00042\u00052\u0006\u021a";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserint32 android_scan_mode = 1;
- * @return The androidScanMode.
- */
- int getAndroidScanMode();
-
- /**
- * repeated string service_uuids = 2;
- * @return A list containing the serviceUuids.
- */
- java.util.Listrepeated 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 element to return.
- * @return 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.GeneratedMessageLite<
- ScanSettings, ScanSettings.Builder> implements
- // @@protoc_insertion_point(message_implements:ScanSettings)
- ScanSettingsOrBuilder {
- private ScanSettings() {
- serviceUuids_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
- }
- public static final int ANDROID_SCAN_MODE_FIELD_NUMBER = 1;
- private int androidScanMode_;
- /**
- * int32 android_scan_mode = 1;
- * @return The androidScanMode.
- */
- @java.lang.Override
- public int getAndroidScanMode() {
- return androidScanMode_;
- }
- /**
- * int32 android_scan_mode = 1;
- * @param value The androidScanMode to set.
- */
- private void setAndroidScanMode(int value) {
-
- androidScanMode_ = value;
- }
- /**
- * int32 android_scan_mode = 1;
- */
- private void clearAndroidScanMode() {
-
- androidScanMode_ = 0;
- }
-
- public static final int SERVICE_UUIDS_FIELD_NUMBER = 2;
- private com.google.protobuf.Internal.ProtobufListrepeated string service_uuids = 2;
- * @return A list containing the serviceUuids.
- */
- @java.lang.Override
- public java.util.Listrepeated string service_uuids = 2;
- * @return The count of serviceUuids.
- */
- @java.lang.Override
- 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.
- */
- @java.lang.Override
- 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.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidsBytes(int index) {
- return com.google.protobuf.ByteString.copyFromUtf8(
- serviceUuids_.get(index));
- }
- private void ensureServiceUuidsIsMutable() {
- if (!serviceUuids_.isModifiable()) {
- serviceUuids_ =
- com.google.protobuf.GeneratedMessageLite.mutableCopy(serviceUuids_);
- }
- }
- /**
- * repeated string service_uuids = 2;
- * @param index The index to set the value at.
- * @param value The serviceUuids to set.
- */
- private void setServiceUuids(
- int index, java.lang.String value) {
- value.getClass();
- ensureServiceUuidsIsMutable();
- serviceUuids_.set(index, value);
- }
- /**
- * repeated string service_uuids = 2;
- * @param value The serviceUuids to add.
- */
- private void addServiceUuids(
- java.lang.String value) {
- value.getClass();
- ensureServiceUuidsIsMutable();
- serviceUuids_.add(value);
- }
- /**
- * repeated string service_uuids = 2;
- * @param values The serviceUuids to add.
- */
- private void addAllServiceUuids(
- java.lang.Iterablerepeated string service_uuids = 2;
- */
- private void clearServiceUuids() {
- serviceUuids_ = com.google.protobuf.GeneratedMessageLite.emptyProtobufList();
- }
- /**
- * repeated string service_uuids = 2;
- * @param value The bytes of the serviceUuids to add.
- */
- private void addServiceUuidsBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- ensureServiceUuidsIsMutable();
- serviceUuids_.add(value.toStringUtf8());
- }
-
- public static final int ALLOW_DUPLICATES_FIELD_NUMBER = 3;
- private boolean allowDuplicates_;
- /**
- * bool allow_duplicates = 3;
- * @return The allowDuplicates.
- */
- @java.lang.Override
- public boolean getAllowDuplicates() {
- return allowDuplicates_;
- }
- /**
- * bool allow_duplicates = 3;
- * @param value The allowDuplicates to set.
- */
- private void setAllowDuplicates(boolean value) {
-
- allowDuplicates_ = value;
- }
- /**
- * bool allow_duplicates = 3;
- */
- private void clearAllowDuplicates() {
-
- allowDuplicates_ = false;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanSettings parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ScanSettings prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code ScanSettings}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.ScanSettings, Builder> implements
- // @@protoc_insertion_point(builder_implements:ScanSettings)
- com.pauldemarco.flutter_blue.Protos.ScanSettingsOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.ScanSettings.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * int32 android_scan_mode = 1;
- * @return The androidScanMode.
- */
- @java.lang.Override
- public int getAndroidScanMode() {
- return instance.getAndroidScanMode();
- }
- /**
- * int32 android_scan_mode = 1;
- * @param value The androidScanMode to set.
- * @return This builder for chaining.
- */
- public Builder setAndroidScanMode(int value) {
- copyOnWrite();
- instance.setAndroidScanMode(value);
- return this;
- }
- /**
- * int32 android_scan_mode = 1;
- * @return This builder for chaining.
- */
- public Builder clearAndroidScanMode() {
- copyOnWrite();
- instance.clearAndroidScanMode();
- return this;
- }
-
- /**
- * repeated string service_uuids = 2;
- * @return A list containing the serviceUuids.
- */
- @java.lang.Override
- public java.util.Listrepeated string service_uuids = 2;
- * @return The count of serviceUuids.
- */
- @java.lang.Override
- public int getServiceUuidsCount() {
- return instance.getServiceUuidsCount();
- }
- /**
- * repeated string service_uuids = 2;
- * @param index The index of the element to return.
- * @return The serviceUuids at the given index.
- */
- @java.lang.Override
- public java.lang.String getServiceUuids(int index) {
- return instance.getServiceUuids(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.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidsBytes(int index) {
- return instance.getServiceUuidsBytes(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) {
- copyOnWrite();
- instance.setServiceUuids(index, value);
- 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) {
- copyOnWrite();
- instance.addServiceUuids(value);
- return this;
- }
- /**
- * repeated string service_uuids = 2;
- * @param values The serviceUuids to add.
- * @return This builder for chaining.
- */
- public Builder addAllServiceUuids(
- java.lang.Iterablerepeated string service_uuids = 2;
- * @return This builder for chaining.
- */
- public Builder clearServiceUuids() {
- copyOnWrite();
- instance.clearServiceUuids();
- 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) {
- copyOnWrite();
- instance.addServiceUuidsBytes(value);
- return this;
- }
-
- /**
- * bool allow_duplicates = 3;
- * @return The allowDuplicates.
- */
- @java.lang.Override
- public boolean getAllowDuplicates() {
- return instance.getAllowDuplicates();
- }
- /**
- * bool allow_duplicates = 3;
- * @param value The allowDuplicates to set.
- * @return This builder for chaining.
- */
- public Builder setAllowDuplicates(boolean value) {
- copyOnWrite();
- instance.setAllowDuplicates(value);
- return this;
- }
- /**
- * bool allow_duplicates = 3;
- * @return This builder for chaining.
- */
- public Builder clearAllowDuplicates() {
- copyOnWrite();
- instance.clearAllowDuplicates();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:ScanSettings)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.ScanSettings();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "androidScanMode_",
- "serviceUuids_",
- "allowDuplicates_",
- };
- java.lang.String info =
- "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0001\u0000\u0001\u0004\u0002\u021a" +
- "\u0003\u0007";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser- * 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();
-
- /**
- * .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();
-
- /**
- * int32 rssi = 3;
- * @return The rssi.
- */
- int getRssi();
- }
- /**
- * Protobuf type {@code ScanResult}
- */
- public static final class ScanResult extends
- com.google.protobuf.GeneratedMessageLite<
- ScanResult, ScanResult.Builder> implements
- // @@protoc_insertion_point(message_implements:ScanResult)
- ScanResultOrBuilder {
- private ScanResult() {
- }
- public static final int DEVICE_FIELD_NUMBER = 1;
- private com.pauldemarco.flutter_blue.Protos.BluetoothDevice device_;
- /**
- * - * The received peer's ID. - *- * - *
.BluetoothDevice device = 1;
- */
- @java.lang.Override
- public boolean hasDevice() {
- return device_ != null;
- }
- /**
- * - * The received peer's ID. - *- * - *
.BluetoothDevice device = 1;
- */
- @java.lang.Override
- 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;
- */
- private void setDevice(com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
- value.getClass();
- device_ = value;
-
- }
- /**
- * - * The received peer's ID. - *- * - *
.BluetoothDevice device = 1;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeDevice(com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
- value.getClass();
- if (device_ != null &&
- device_ != com.pauldemarco.flutter_blue.Protos.BluetoothDevice.getDefaultInstance()) {
- device_ =
- com.pauldemarco.flutter_blue.Protos.BluetoothDevice.newBuilder(device_).mergeFrom(value).buildPartial();
- } else {
- device_ = value;
- }
-
- }
- /**
- * - * The received peer's ID. - *- * - *
.BluetoothDevice device = 1;
- */
- private void clearDevice() { device_ = null;
-
- }
-
- public static final int ADVERTISEMENT_DATA_FIELD_NUMBER = 2;
- private com.pauldemarco.flutter_blue.Protos.AdvertisementData advertisementData_;
- /**
- * .AdvertisementData advertisement_data = 2;
- */
- @java.lang.Override
- public boolean hasAdvertisementData() {
- return advertisementData_ != null;
- }
- /**
- * .AdvertisementData advertisement_data = 2;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.AdvertisementData getAdvertisementData() {
- return advertisementData_ == null ? com.pauldemarco.flutter_blue.Protos.AdvertisementData.getDefaultInstance() : advertisementData_;
- }
- /**
- * .AdvertisementData advertisement_data = 2;
- */
- private void setAdvertisementData(com.pauldemarco.flutter_blue.Protos.AdvertisementData value) {
- value.getClass();
- advertisementData_ = value;
-
- }
- /**
- * .AdvertisementData advertisement_data = 2;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeAdvertisementData(com.pauldemarco.flutter_blue.Protos.AdvertisementData value) {
- value.getClass();
- if (advertisementData_ != null &&
- advertisementData_ != com.pauldemarco.flutter_blue.Protos.AdvertisementData.getDefaultInstance()) {
- advertisementData_ =
- com.pauldemarco.flutter_blue.Protos.AdvertisementData.newBuilder(advertisementData_).mergeFrom(value).buildPartial();
- } else {
- advertisementData_ = value;
- }
-
- }
- /**
- * .AdvertisementData advertisement_data = 2;
- */
- private void clearAdvertisementData() { advertisementData_ = null;
-
- }
-
- public static final int RSSI_FIELD_NUMBER = 3;
- private int rssi_;
- /**
- * int32 rssi = 3;
- * @return The rssi.
- */
- @java.lang.Override
- public int getRssi() {
- return rssi_;
- }
- /**
- * int32 rssi = 3;
- * @param value The rssi to set.
- */
- private void setRssi(int value) {
-
- rssi_ = value;
- }
- /**
- * int32 rssi = 3;
- */
- private void clearRssi() {
-
- rssi_ = 0;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanResult parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanResult parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ScanResult parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ScanResult prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code ScanResult}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.ScanResult, Builder> implements
- // @@protoc_insertion_point(builder_implements:ScanResult)
- com.pauldemarco.flutter_blue.Protos.ScanResultOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.ScanResult.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * - * The received peer's ID. - *- * - *
.BluetoothDevice device = 1;
- */
- @java.lang.Override
- public boolean hasDevice() {
- return instance.hasDevice();
- }
- /**
- * - * The received peer's ID. - *- * - *
.BluetoothDevice device = 1;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevice() {
- return instance.getDevice();
- }
- /**
- * - * The received peer's ID. - *- * - *
.BluetoothDevice device = 1;
- */
- public Builder setDevice(com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
- copyOnWrite();
- instance.setDevice(value);
- return this;
- }
- /**
- * - * The received peer's ID. - *- * - *
.BluetoothDevice device = 1;
- */
- public Builder setDevice(
- com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder builderForValue) {
- copyOnWrite();
- instance.setDevice(builderForValue.build());
- return this;
- }
- /**
- * - * The received peer's ID. - *- * - *
.BluetoothDevice device = 1;
- */
- public Builder mergeDevice(com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
- copyOnWrite();
- instance.mergeDevice(value);
- return this;
- }
- /**
- * - * The received peer's ID. - *- * - *
.BluetoothDevice device = 1;
- */
- public Builder clearDevice() { copyOnWrite();
- instance.clearDevice();
- return this;
- }
-
- /**
- * .AdvertisementData advertisement_data = 2;
- */
- @java.lang.Override
- public boolean hasAdvertisementData() {
- return instance.hasAdvertisementData();
- }
- /**
- * .AdvertisementData advertisement_data = 2;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.AdvertisementData getAdvertisementData() {
- return instance.getAdvertisementData();
- }
- /**
- * .AdvertisementData advertisement_data = 2;
- */
- public Builder setAdvertisementData(com.pauldemarco.flutter_blue.Protos.AdvertisementData value) {
- copyOnWrite();
- instance.setAdvertisementData(value);
- return this;
- }
- /**
- * .AdvertisementData advertisement_data = 2;
- */
- public Builder setAdvertisementData(
- com.pauldemarco.flutter_blue.Protos.AdvertisementData.Builder builderForValue) {
- copyOnWrite();
- instance.setAdvertisementData(builderForValue.build());
- return this;
- }
- /**
- * .AdvertisementData advertisement_data = 2;
- */
- public Builder mergeAdvertisementData(com.pauldemarco.flutter_blue.Protos.AdvertisementData value) {
- copyOnWrite();
- instance.mergeAdvertisementData(value);
- return this;
- }
- /**
- * .AdvertisementData advertisement_data = 2;
- */
- public Builder clearAdvertisementData() { copyOnWrite();
- instance.clearAdvertisementData();
- return this;
- }
-
- /**
- * int32 rssi = 3;
- * @return The rssi.
- */
- @java.lang.Override
- public int getRssi() {
- return instance.getRssi();
- }
- /**
- * int32 rssi = 3;
- * @param value The rssi to set.
- * @return This builder for chaining.
- */
- public Builder setRssi(int value) {
- copyOnWrite();
- instance.setRssi(value);
- return this;
- }
- /**
- * int32 rssi = 3;
- * @return This builder for chaining.
- */
- public Builder clearRssi() {
- copyOnWrite();
- instance.clearRssi();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:ScanResult)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.ScanResult();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "device_",
- "advertisementData_",
- "rssi_",
- };
- java.lang.String info =
- "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\t\u0002\t\u0003" +
- "\u0004";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.GeneratedMessageLite<
- ConnectRequest, ConnectRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:ConnectRequest)
- ConnectRequestOrBuilder {
- private ConnectRequest() {
- remoteId_ = "";
- }
- public static final int REMOTE_ID_FIELD_NUMBER = 1;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int ANDROID_AUTO_CONNECT_FIELD_NUMBER = 2;
- private boolean androidAutoConnect_;
- /**
- * bool android_auto_connect = 2;
- * @return The androidAutoConnect.
- */
- @java.lang.Override
- public boolean getAndroidAutoConnect() {
- return androidAutoConnect_;
- }
- /**
- * bool android_auto_connect = 2;
- * @param value The androidAutoConnect to set.
- */
- private void setAndroidAutoConnect(boolean value) {
-
- androidAutoConnect_ = value;
- }
- /**
- * bool android_auto_connect = 2;
- */
- private void clearAndroidAutoConnect() {
-
- androidAutoConnect_ = false;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ConnectRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code ConnectRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.ConnectRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:ConnectRequest)
- com.pauldemarco.flutter_blue.Protos.ConnectRequestOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.ConnectRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * bool android_auto_connect = 2;
- * @return The androidAutoConnect.
- */
- @java.lang.Override
- public boolean getAndroidAutoConnect() {
- return instance.getAndroidAutoConnect();
- }
- /**
- * bool android_auto_connect = 2;
- * @param value The androidAutoConnect to set.
- * @return This builder for chaining.
- */
- public Builder setAndroidAutoConnect(boolean value) {
- copyOnWrite();
- instance.setAndroidAutoConnect(value);
- return this;
- }
- /**
- * bool android_auto_connect = 2;
- * @return This builder for chaining.
- */
- public Builder clearAndroidAutoConnect() {
- copyOnWrite();
- instance.clearAndroidAutoConnect();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:ConnectRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.ConnectRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "androidAutoConnect_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\u0007" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.GeneratedMessageLite<
- BluetoothDevice, BluetoothDevice.Builder> implements
- // @@protoc_insertion_point(message_implements:BluetoothDevice)
- BluetoothDeviceOrBuilder {
- private BluetoothDevice() {
- remoteId_ = "";
- name_ = "";
- }
- /**
- * Protobuf enum {@code BluetoothDevice.Type}
- */
- public enum Type
- implements com.google.protobuf.Internal.EnumLite {
- /**
- * 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;
-
-
- @java.lang.Override
- 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 number of the enum to look for.
- * @return The enum associated with the given number.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static Type valueOf(int value) {
- return forNumber(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.EnumLiteMapstring remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int NAME_FIELD_NUMBER = 2;
- private java.lang.String name_;
- /**
- * string name = 2;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- return name_;
- }
- /**
- * string name = 2;
- * @return The bytes for name.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getNameBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(name_);
- }
- /**
- * string name = 2;
- * @param value The name to set.
- */
- private void setName(
- java.lang.String value) {
- value.getClass();
-
- name_ = value;
- }
- /**
- * string name = 2;
- */
- private void clearName() {
-
- name_ = getDefaultInstance().getName();
- }
- /**
- * string name = 2;
- * @param value The bytes for name to set.
- */
- private void setNameBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- name_ = value.toStringUtf8();
-
- }
-
- 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.
- */
- @java.lang.Override
- public int getTypeValue() {
- return type_;
- }
- /**
- * .BluetoothDevice.Type type = 3;
- * @return The type.
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type getType() {
- com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type result = com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type.forNumber(type_);
- return result == null ? com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type.UNRECOGNIZED : result;
- }
- /**
- * .BluetoothDevice.Type type = 3;
- * @param value The enum numeric value on the wire for type to set.
- */
- private void setTypeValue(int value) {
- type_ = value;
- }
- /**
- * .BluetoothDevice.Type type = 3;
- * @param value The type to set.
- */
- private void setType(com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type value) {
- type_ = value.getNumber();
-
- }
- /**
- * .BluetoothDevice.Type type = 3;
- */
- private void clearType() {
-
- type_ = 0;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDevice parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.BluetoothDevice prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code BluetoothDevice}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.BluetoothDevice, Builder> implements
- // @@protoc_insertion_point(builder_implements:BluetoothDevice)
- com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.BluetoothDevice.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * string name = 2;
- * @return The name.
- */
- @java.lang.Override
- public java.lang.String getName() {
- return instance.getName();
- }
- /**
- * string name = 2;
- * @return The bytes for name.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getNameBytes() {
- return instance.getNameBytes();
- }
- /**
- * string name = 2;
- * @param value The name to set.
- * @return This builder for chaining.
- */
- public Builder setName(
- java.lang.String value) {
- copyOnWrite();
- instance.setName(value);
- return this;
- }
- /**
- * string name = 2;
- * @return This builder for chaining.
- */
- public Builder clearName() {
- copyOnWrite();
- instance.clearName();
- 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) {
- copyOnWrite();
- instance.setNameBytes(value);
- return this;
- }
-
- /**
- * .BluetoothDevice.Type type = 3;
- * @return The enum numeric value on the wire for type.
- */
- @java.lang.Override
- public int getTypeValue() {
- return instance.getTypeValue();
- }
- /**
- * .BluetoothDevice.Type type = 3;
- * @param value The type to set.
- * @return This builder for chaining.
- */
- public Builder setTypeValue(int value) {
- copyOnWrite();
- instance.setTypeValue(value);
- return this;
- }
- /**
- * .BluetoothDevice.Type type = 3;
- * @return The type.
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type getType() {
- return instance.getType();
- }
- /**
- * .BluetoothDevice.Type type = 3;
- * @param value The enum numeric value on the wire for type to set.
- * @return This builder for chaining.
- */
- public Builder setType(com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Type value) {
- copyOnWrite();
- instance.setType(value);
- return this;
- }
- /**
- * .BluetoothDevice.Type type = 3;
- * @return This builder for chaining.
- */
- public Builder clearType() {
- copyOnWrite();
- instance.clearType();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:BluetoothDevice)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.BluetoothDevice();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "name_",
- "type_",
- };
- java.lang.String info =
- "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
- "\u0003\f";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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- * 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 included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- java.util.List- * 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();
- }
- /**
- * Protobuf type {@code BluetoothService}
- */
- public static final class BluetoothService extends
- com.google.protobuf.GeneratedMessageLite<
- BluetoothService, BluetoothService.Builder> implements
- // @@protoc_insertion_point(message_implements:BluetoothService)
- BluetoothServiceOrBuilder {
- private BluetoothService() {
- uuid_ = "";
- remoteId_ = "";
- characteristics_ = emptyProtobufList();
- includedServices_ = emptyProtobufList();
- }
- public static final int UUID_FIELD_NUMBER = 1;
- private java.lang.String uuid_;
- /**
- * string uuid = 1;
- * @return The uuid.
- */
- @java.lang.Override
- public java.lang.String getUuid() {
- return uuid_;
- }
- /**
- * string uuid = 1;
- * @return The bytes for uuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(uuid_);
- }
- /**
- * string uuid = 1;
- * @param value The uuid to set.
- */
- private void setUuid(
- java.lang.String value) {
- value.getClass();
-
- uuid_ = value;
- }
- /**
- * string uuid = 1;
- */
- private void clearUuid() {
-
- uuid_ = getDefaultInstance().getUuid();
- }
- /**
- * string uuid = 1;
- * @param value The bytes for uuid to set.
- */
- private void setUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- uuid_ = value.toStringUtf8();
-
- }
-
- public static final int REMOTE_ID_FIELD_NUMBER = 2;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 2;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 2;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 2;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 2;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 2;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- 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.
- */
- @java.lang.Override
- 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.
- */
- private void setIsPrimary(boolean value) {
-
- isPrimary_ = value;
- }
- /**
- * - * Indicates whether the type of service is primary or secondary. - *- * - *
bool is_primary = 3;
- */
- private void clearIsPrimary() {
-
- isPrimary_ = false;
- }
-
- public static final int CHARACTERISTICS_FIELD_NUMBER = 4;
- private com.google.protobuf.Internal.ProtobufList- * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- @java.lang.Override
- public java.util.List- * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- public java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder>
- getCharacteristicsOrBuilderList() {
- return characteristics_;
- }
- /**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- @java.lang.Override
- public int getCharacteristicsCount() {
- return characteristics_.size();
- }
- /**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- @java.lang.Override
- 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);
- }
- private void ensureCharacteristicsIsMutable() {
- if (!characteristics_.isModifiable()) {
- characteristics_ =
- com.google.protobuf.GeneratedMessageLite.mutableCopy(characteristics_);
- }
- }
-
- /**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- private void setCharacteristics(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- value.getClass();
- ensureCharacteristicsIsMutable();
- characteristics_.set(index, value);
- }
- /**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- private void addCharacteristics(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- value.getClass();
- ensureCharacteristicsIsMutable();
- characteristics_.add(value);
- }
- /**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- private void addCharacteristics(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- value.getClass();
- ensureCharacteristicsIsMutable();
- characteristics_.add(index, value);
- }
- /**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- private void addAllCharacteristics(
- java.lang.Iterable extends com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic> values) {
- ensureCharacteristicsIsMutable();
- com.google.protobuf.AbstractMessageLite.addAll(
- values, characteristics_);
- }
- /**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- private void clearCharacteristics() {
- characteristics_ = emptyProtobufList();
- }
- /**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- private void removeCharacteristics(int index) {
- ensureCharacteristicsIsMutable();
- characteristics_.remove(index);
- }
-
- public static final int INCLUDED_SERVICES_FIELD_NUMBER = 5;
- private com.google.protobuf.Internal.ProtobufList- * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- @java.lang.Override
- public java.util.List- * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- public java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder>
- getIncludedServicesOrBuilderList() {
- return includedServices_;
- }
- /**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- @java.lang.Override
- public int getIncludedServicesCount() {
- return includedServices_.size();
- }
- /**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- @java.lang.Override
- 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 void ensureIncludedServicesIsMutable() {
- if (!includedServices_.isModifiable()) {
- includedServices_ =
- com.google.protobuf.GeneratedMessageLite.mutableCopy(includedServices_);
- }
- }
-
- /**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- private void setIncludedServices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
- value.getClass();
- ensureIncludedServicesIsMutable();
- includedServices_.set(index, value);
- }
- /**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- private void addIncludedServices(com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
- value.getClass();
- ensureIncludedServicesIsMutable();
- includedServices_.add(value);
- }
- /**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- private void addIncludedServices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
- value.getClass();
- ensureIncludedServicesIsMutable();
- includedServices_.add(index, value);
- }
- /**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- private void addAllIncludedServices(
- java.lang.Iterable extends com.pauldemarco.flutter_blue.Protos.BluetoothService> values) {
- ensureIncludedServicesIsMutable();
- com.google.protobuf.AbstractMessageLite.addAll(
- values, includedServices_);
- }
- /**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- private void clearIncludedServices() {
- includedServices_ = emptyProtobufList();
- }
- /**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- private void removeIncludedServices(int index) {
- ensureIncludedServicesIsMutable();
- includedServices_.remove(index);
- }
-
- public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothService parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.BluetoothService prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code BluetoothService}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.BluetoothService, Builder> implements
- // @@protoc_insertion_point(builder_implements:BluetoothService)
- com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.BluetoothService.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string uuid = 1;
- * @return The uuid.
- */
- @java.lang.Override
- public java.lang.String getUuid() {
- return instance.getUuid();
- }
- /**
- * string uuid = 1;
- * @return The bytes for uuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUuidBytes() {
- return instance.getUuidBytes();
- }
- /**
- * string uuid = 1;
- * @param value The uuid to set.
- * @return This builder for chaining.
- */
- public Builder setUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setUuid(value);
- return this;
- }
- /**
- * string uuid = 1;
- * @return This builder for chaining.
- */
- public Builder clearUuid() {
- copyOnWrite();
- instance.clearUuid();
- 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) {
- copyOnWrite();
- instance.setUuidBytes(value);
- return this;
- }
-
- /**
- * string remote_id = 2;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 2;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 2;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 2;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * - * Indicates whether the type of service is primary or secondary. - *- * - *
bool is_primary = 3;
- * @return The isPrimary.
- */
- @java.lang.Override
- public boolean getIsPrimary() {
- return instance.getIsPrimary();
- }
- /**
- * - * 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) {
- copyOnWrite();
- instance.setIsPrimary(value);
- return this;
- }
- /**
- * - * Indicates whether the type of service is primary or secondary. - *- * - *
bool is_primary = 3;
- * @return This builder for chaining.
- */
- public Builder clearIsPrimary() {
- copyOnWrite();
- instance.clearIsPrimary();
- return this;
- }
-
- /**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- @java.lang.Override
- public java.util.List- * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- @java.lang.Override
- public int getCharacteristicsCount() {
- return instance.getCharacteristicsCount();
- }/**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristics(int index) {
- return instance.getCharacteristics(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) {
- copyOnWrite();
- instance.setCharacteristics(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) {
- copyOnWrite();
- instance.setCharacteristics(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) {
- copyOnWrite();
- instance.addCharacteristics(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) {
- copyOnWrite();
- instance.addCharacteristics(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) {
- copyOnWrite();
- instance.addCharacteristics(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) {
- copyOnWrite();
- instance.addCharacteristics(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 extends com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic> values) {
- copyOnWrite();
- instance.addAllCharacteristics(values);
- return this;
- }
- /**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- public Builder clearCharacteristics() {
- copyOnWrite();
- instance.clearCharacteristics();
- return this;
- }
- /**
- * - * A list of characteristics that have been discovered in this service. - *- * - *
repeated .BluetoothCharacteristic characteristics = 4;
- */
- public Builder removeCharacteristics(int index) {
- copyOnWrite();
- instance.removeCharacteristics(index);
- return this;
- }
-
- /**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- @java.lang.Override
- public java.util.List- * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- @java.lang.Override
- public int getIncludedServicesCount() {
- return instance.getIncludedServicesCount();
- }/**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothService getIncludedServices(int index) {
- return instance.getIncludedServices(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) {
- copyOnWrite();
- instance.setIncludedServices(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) {
- copyOnWrite();
- instance.setIncludedServices(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) {
- copyOnWrite();
- instance.addIncludedServices(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) {
- copyOnWrite();
- instance.addIncludedServices(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) {
- copyOnWrite();
- instance.addIncludedServices(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) {
- copyOnWrite();
- instance.addIncludedServices(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 extends com.pauldemarco.flutter_blue.Protos.BluetoothService> values) {
- copyOnWrite();
- instance.addAllIncludedServices(values);
- return this;
- }
- /**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- public Builder clearIncludedServices() {
- copyOnWrite();
- instance.clearIncludedServices();
- return this;
- }
- /**
- * - * A list of included services that have been discovered in this service. - *- * - *
repeated .BluetoothService included_services = 5;
- */
- public Builder removeIncludedServices(int index) {
- copyOnWrite();
- instance.removeIncludedServices(index);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:BluetoothService)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.BluetoothService();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "uuid_",
- "remoteId_",
- "isPrimary_",
- "characteristics_",
- com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.class,
- "includedServices_",
- com.pauldemarco.flutter_blue.Protos.BluetoothService.class,
- };
- java.lang.String info =
- "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0002\u0000\u0001\u0208\u0002\u0208" +
- "\u0003\u0007\u0004\u001b\u0005\u001b";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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- * 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();
-
- /**
- * - * 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();
-
- /**
- * bytes value = 7;
- * @return The value.
- */
- com.google.protobuf.ByteString getValue();
- }
- /**
- * Protobuf type {@code BluetoothCharacteristic}
- */
- public static final class BluetoothCharacteristic extends
- com.google.protobuf.GeneratedMessageLite<
- BluetoothCharacteristic, BluetoothCharacteristic.Builder> implements
- // @@protoc_insertion_point(message_implements:BluetoothCharacteristic)
- BluetoothCharacteristicOrBuilder {
- private BluetoothCharacteristic() {
- uuid_ = "";
- remoteId_ = "";
- serviceUuid_ = "";
- secondaryServiceUuid_ = "";
- descriptors_ = emptyProtobufList();
- value_ = com.google.protobuf.ByteString.EMPTY;
- }
- public static final int UUID_FIELD_NUMBER = 1;
- private java.lang.String uuid_;
- /**
- * string uuid = 1;
- * @return The uuid.
- */
- @java.lang.Override
- public java.lang.String getUuid() {
- return uuid_;
- }
- /**
- * string uuid = 1;
- * @return The bytes for uuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(uuid_);
- }
- /**
- * string uuid = 1;
- * @param value The uuid to set.
- */
- private void setUuid(
- java.lang.String value) {
- value.getClass();
-
- uuid_ = value;
- }
- /**
- * string uuid = 1;
- */
- private void clearUuid() {
-
- uuid_ = getDefaultInstance().getUuid();
- }
- /**
- * string uuid = 1;
- * @param value The bytes for uuid to set.
- */
- private void setUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- uuid_ = value.toStringUtf8();
-
- }
-
- public static final int REMOTE_ID_FIELD_NUMBER = 2;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 2;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 2;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 2;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 2;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 2;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int SERVICEUUID_FIELD_NUMBER = 3;
- private java.lang.String serviceUuid_;
- /**
- * - * The service that this characteristic belongs to. - *- * - *
string serviceUuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return serviceUuid_;
- }
- /**
- * - * The service that this characteristic belongs to. - *- * - *
string serviceUuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(serviceUuid_);
- }
- /**
- * - * The service that this characteristic belongs to. - *- * - *
string serviceUuid = 3;
- * @param value The serviceUuid to set.
- */
- private void setServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- serviceUuid_ = value;
- }
- /**
- * - * The service that this characteristic belongs to. - *- * - *
string serviceUuid = 3;
- */
- private void clearServiceUuid() {
-
- serviceUuid_ = getDefaultInstance().getServiceUuid();
- }
- /**
- * - * The service that this characteristic belongs to. - *- * - *
string serviceUuid = 3;
- * @param value The bytes for serviceUuid to set.
- */
- private void setServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- serviceUuid_ = value.toStringUtf8();
-
- }
-
- public static final int SECONDARYSERVICEUUID_FIELD_NUMBER = 4;
- private java.lang.String secondaryServiceUuid_;
- /**
- * - * The secondary service if nested - *- * - *
string secondaryServiceUuid = 4;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return secondaryServiceUuid_;
- }
- /**
- * - * The secondary service if nested - *- * - *
string secondaryServiceUuid = 4;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(secondaryServiceUuid_);
- }
- /**
- * - * The secondary service if nested - *- * - *
string secondaryServiceUuid = 4;
- * @param value The secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- secondaryServiceUuid_ = value;
- }
- /**
- * - * The secondary service if nested - *- * - *
string secondaryServiceUuid = 4;
- */
- private void clearSecondaryServiceUuid() {
-
- secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid();
- }
- /**
- * - * The secondary service if nested - *- * - *
string secondaryServiceUuid = 4;
- * @param value The bytes for secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- secondaryServiceUuid_ = value.toStringUtf8();
-
- }
-
- public static final int DESCRIPTORS_FIELD_NUMBER = 5;
- private com.google.protobuf.Internal.ProtobufList- * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- @java.lang.Override
- public java.util.List- * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- public java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder>
- getDescriptorsOrBuilderList() {
- return descriptors_;
- }
- /**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- @java.lang.Override
- public int getDescriptorsCount() {
- return descriptors_.size();
- }
- /**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- @java.lang.Override
- 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);
- }
- private void ensureDescriptorsIsMutable() {
- if (!descriptors_.isModifiable()) {
- descriptors_ =
- com.google.protobuf.GeneratedMessageLite.mutableCopy(descriptors_);
- }
- }
-
- /**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- private void setDescriptors(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor value) {
- value.getClass();
- ensureDescriptorsIsMutable();
- descriptors_.set(index, value);
- }
- /**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- private void addDescriptors(com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor value) {
- value.getClass();
- ensureDescriptorsIsMutable();
- descriptors_.add(value);
- }
- /**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- private void addDescriptors(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor value) {
- value.getClass();
- ensureDescriptorsIsMutable();
- descriptors_.add(index, value);
- }
- /**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- private void addAllDescriptors(
- java.lang.Iterable extends com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor> values) {
- ensureDescriptorsIsMutable();
- com.google.protobuf.AbstractMessageLite.addAll(
- values, descriptors_);
- }
- /**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- private void clearDescriptors() {
- descriptors_ = emptyProtobufList();
- }
- /**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- private void removeDescriptors(int index) {
- ensureDescriptorsIsMutable();
- descriptors_.remove(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;
- */
- @java.lang.Override
- public boolean hasProperties() {
- return properties_ != null;
- }
- /**
- * - * The properties of the characteristic. - *- * - *
.CharacteristicProperties properties = 6;
- */
- @java.lang.Override
- 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;
- */
- private void setProperties(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties value) {
- value.getClass();
- properties_ = value;
-
- }
- /**
- * - * The properties of the characteristic. - *- * - *
.CharacteristicProperties properties = 6;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeProperties(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties value) {
- value.getClass();
- if (properties_ != null &&
- properties_ != com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.getDefaultInstance()) {
- properties_ =
- com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.newBuilder(properties_).mergeFrom(value).buildPartial();
- } else {
- properties_ = value;
- }
-
- }
- /**
- * - * The properties of the characteristic. - *- * - *
.CharacteristicProperties properties = 6;
- */
- private void clearProperties() { properties_ = null;
-
- }
-
- public static final int VALUE_FIELD_NUMBER = 7;
- private com.google.protobuf.ByteString value_;
- /**
- * bytes value = 7;
- * @return The value.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getValue() {
- return value_;
- }
- /**
- * bytes value = 7;
- * @param value The value to set.
- */
- private void setValue(com.google.protobuf.ByteString value) {
- value.getClass();
-
- value_ = value;
- }
- /**
- * bytes value = 7;
- */
- private void clearValue() {
-
- value_ = getDefaultInstance().getValue();
- }
-
- public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code BluetoothCharacteristic}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, Builder> implements
- // @@protoc_insertion_point(builder_implements:BluetoothCharacteristic)
- com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string uuid = 1;
- * @return The uuid.
- */
- @java.lang.Override
- public java.lang.String getUuid() {
- return instance.getUuid();
- }
- /**
- * string uuid = 1;
- * @return The bytes for uuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUuidBytes() {
- return instance.getUuidBytes();
- }
- /**
- * string uuid = 1;
- * @param value The uuid to set.
- * @return This builder for chaining.
- */
- public Builder setUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setUuid(value);
- return this;
- }
- /**
- * string uuid = 1;
- * @return This builder for chaining.
- */
- public Builder clearUuid() {
- copyOnWrite();
- instance.clearUuid();
- 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) {
- copyOnWrite();
- instance.setUuidBytes(value);
- return this;
- }
-
- /**
- * string remote_id = 2;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 2;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 2;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 2;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * - * The service that this characteristic belongs to. - *- * - *
string serviceUuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return instance.getServiceUuid();
- }
- /**
- * - * The service that this characteristic belongs to. - *- * - *
string serviceUuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return instance.getServiceUuidBytes();
- }
- /**
- * - * 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) {
- copyOnWrite();
- instance.setServiceUuid(value);
- return this;
- }
- /**
- * - * The service that this characteristic belongs to. - *- * - *
string serviceUuid = 3;
- * @return This builder for chaining.
- */
- public Builder clearServiceUuid() {
- copyOnWrite();
- instance.clearServiceUuid();
- 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) {
- copyOnWrite();
- instance.setServiceUuidBytes(value);
- return this;
- }
-
- /**
- * - * The secondary service if nested - *- * - *
string secondaryServiceUuid = 4;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return instance.getSecondaryServiceUuid();
- }
- /**
- * - * The secondary service if nested - *- * - *
string secondaryServiceUuid = 4;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return instance.getSecondaryServiceUuidBytes();
- }
- /**
- * - * 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) {
- copyOnWrite();
- instance.setSecondaryServiceUuid(value);
- return this;
- }
- /**
- * - * The secondary service if nested - *- * - *
string secondaryServiceUuid = 4;
- * @return This builder for chaining.
- */
- public Builder clearSecondaryServiceUuid() {
- copyOnWrite();
- instance.clearSecondaryServiceUuid();
- 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) {
- copyOnWrite();
- instance.setSecondaryServiceUuidBytes(value);
- return this;
- }
-
- /**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- @java.lang.Override
- public java.util.List- * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- @java.lang.Override
- public int getDescriptorsCount() {
- return instance.getDescriptorsCount();
- }/**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor getDescriptors(int index) {
- return instance.getDescriptors(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) {
- copyOnWrite();
- instance.setDescriptors(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) {
- copyOnWrite();
- instance.setDescriptors(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) {
- copyOnWrite();
- instance.addDescriptors(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) {
- copyOnWrite();
- instance.addDescriptors(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) {
- copyOnWrite();
- instance.addDescriptors(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) {
- copyOnWrite();
- instance.addDescriptors(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 extends com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor> values) {
- copyOnWrite();
- instance.addAllDescriptors(values);
- return this;
- }
- /**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- public Builder clearDescriptors() {
- copyOnWrite();
- instance.clearDescriptors();
- return this;
- }
- /**
- * - * A list of descriptors that have been discovered in this characteristic. - *- * - *
repeated .BluetoothDescriptor descriptors = 5;
- */
- public Builder removeDescriptors(int index) {
- copyOnWrite();
- instance.removeDescriptors(index);
- return this;
- }
-
- /**
- * - * The properties of the characteristic. - *- * - *
.CharacteristicProperties properties = 6;
- */
- @java.lang.Override
- public boolean hasProperties() {
- return instance.hasProperties();
- }
- /**
- * - * The properties of the characteristic. - *- * - *
.CharacteristicProperties properties = 6;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties getProperties() {
- return instance.getProperties();
- }
- /**
- * - * The properties of the characteristic. - *- * - *
.CharacteristicProperties properties = 6;
- */
- public Builder setProperties(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties value) {
- copyOnWrite();
- instance.setProperties(value);
- return this;
- }
- /**
- * - * The properties of the characteristic. - *- * - *
.CharacteristicProperties properties = 6;
- */
- public Builder setProperties(
- com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder builderForValue) {
- copyOnWrite();
- instance.setProperties(builderForValue.build());
- return this;
- }
- /**
- * - * The properties of the characteristic. - *- * - *
.CharacteristicProperties properties = 6;
- */
- public Builder mergeProperties(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties value) {
- copyOnWrite();
- instance.mergeProperties(value);
- return this;
- }
- /**
- * - * The properties of the characteristic. - *- * - *
.CharacteristicProperties properties = 6;
- */
- public Builder clearProperties() { copyOnWrite();
- instance.clearProperties();
- return this;
- }
-
- /**
- * bytes value = 7;
- * @return The value.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getValue() {
- return instance.getValue();
- }
- /**
- * bytes value = 7;
- * @param value The value to set.
- * @return This builder for chaining.
- */
- public Builder setValue(com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setValue(value);
- return this;
- }
- /**
- * bytes value = 7;
- * @return This builder for chaining.
- */
- public Builder clearValue() {
- copyOnWrite();
- instance.clearValue();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:BluetoothCharacteristic)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "uuid_",
- "remoteId_",
- "serviceUuid_",
- "secondaryServiceUuid_",
- "descriptors_",
- com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.class,
- "properties_",
- "value_",
- };
- java.lang.String info =
- "\u0000\u0007\u0000\u0000\u0001\u0007\u0007\u0000\u0001\u0000\u0001\u0208\u0002\u0208" +
- "\u0003\u0208\u0004\u0208\u0005\u001b\u0006\t\u0007\n";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.GeneratedMessageLite<
- BluetoothDescriptor, BluetoothDescriptor.Builder> implements
- // @@protoc_insertion_point(message_implements:BluetoothDescriptor)
- BluetoothDescriptorOrBuilder {
- private BluetoothDescriptor() {
- uuid_ = "";
- remoteId_ = "";
- serviceUuid_ = "";
- characteristicUuid_ = "";
- value_ = com.google.protobuf.ByteString.EMPTY;
- }
- public static final int UUID_FIELD_NUMBER = 1;
- private java.lang.String uuid_;
- /**
- * string uuid = 1;
- * @return The uuid.
- */
- @java.lang.Override
- public java.lang.String getUuid() {
- return uuid_;
- }
- /**
- * string uuid = 1;
- * @return The bytes for uuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(uuid_);
- }
- /**
- * string uuid = 1;
- * @param value The uuid to set.
- */
- private void setUuid(
- java.lang.String value) {
- value.getClass();
-
- uuid_ = value;
- }
- /**
- * string uuid = 1;
- */
- private void clearUuid() {
-
- uuid_ = getDefaultInstance().getUuid();
- }
- /**
- * string uuid = 1;
- * @param value The bytes for uuid to set.
- */
- private void setUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- uuid_ = value.toStringUtf8();
-
- }
-
- public static final int REMOTE_ID_FIELD_NUMBER = 2;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 2;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 2;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 2;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 2;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 2;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int SERVICEUUID_FIELD_NUMBER = 3;
- private java.lang.String serviceUuid_;
- /**
- * - * The service that this descriptor belongs to. - *- * - *
string serviceUuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return serviceUuid_;
- }
- /**
- * - * The service that this descriptor belongs to. - *- * - *
string serviceUuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(serviceUuid_);
- }
- /**
- * - * The service that this descriptor belongs to. - *- * - *
string serviceUuid = 3;
- * @param value The serviceUuid to set.
- */
- private void setServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- serviceUuid_ = value;
- }
- /**
- * - * The service that this descriptor belongs to. - *- * - *
string serviceUuid = 3;
- */
- private void clearServiceUuid() {
-
- serviceUuid_ = getDefaultInstance().getServiceUuid();
- }
- /**
- * - * The service that this descriptor belongs to. - *- * - *
string serviceUuid = 3;
- * @param value The bytes for serviceUuid to set.
- */
- private void setServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- serviceUuid_ = value.toStringUtf8();
-
- }
-
- public static final int CHARACTERISTICUUID_FIELD_NUMBER = 4;
- private java.lang.String characteristicUuid_;
- /**
- * - * The characteristic that this descriptor belongs to. - *- * - *
string characteristicUuid = 4;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return characteristicUuid_;
- }
- /**
- * - * The characteristic that this descriptor belongs to. - *- * - *
string characteristicUuid = 4;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(characteristicUuid_);
- }
- /**
- * - * The characteristic that this descriptor belongs to. - *- * - *
string characteristicUuid = 4;
- * @param value The characteristicUuid to set.
- */
- private void setCharacteristicUuid(
- java.lang.String value) {
- value.getClass();
-
- characteristicUuid_ = value;
- }
- /**
- * - * The characteristic that this descriptor belongs to. - *- * - *
string characteristicUuid = 4;
- */
- private void clearCharacteristicUuid() {
-
- characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
- }
- /**
- * - * The characteristic that this descriptor belongs to. - *- * - *
string characteristicUuid = 4;
- * @param value The bytes for characteristicUuid to set.
- */
- private void setCharacteristicUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- characteristicUuid_ = value.toStringUtf8();
-
- }
-
- public static final int VALUE_FIELD_NUMBER = 5;
- private com.google.protobuf.ByteString value_;
- /**
- * bytes value = 5;
- * @return The value.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getValue() {
- return value_;
- }
- /**
- * bytes value = 5;
- * @param value The value to set.
- */
- private void setValue(com.google.protobuf.ByteString value) {
- value.getClass();
-
- value_ = value;
- }
- /**
- * bytes value = 5;
- */
- private void clearValue() {
-
- value_ = getDefaultInstance().getValue();
- }
-
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code BluetoothDescriptor}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor, Builder> implements
- // @@protoc_insertion_point(builder_implements:BluetoothDescriptor)
- com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string uuid = 1;
- * @return The uuid.
- */
- @java.lang.Override
- public java.lang.String getUuid() {
- return instance.getUuid();
- }
- /**
- * string uuid = 1;
- * @return The bytes for uuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getUuidBytes() {
- return instance.getUuidBytes();
- }
- /**
- * string uuid = 1;
- * @param value The uuid to set.
- * @return This builder for chaining.
- */
- public Builder setUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setUuid(value);
- return this;
- }
- /**
- * string uuid = 1;
- * @return This builder for chaining.
- */
- public Builder clearUuid() {
- copyOnWrite();
- instance.clearUuid();
- 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) {
- copyOnWrite();
- instance.setUuidBytes(value);
- return this;
- }
-
- /**
- * string remote_id = 2;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 2;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 2;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 2;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * - * The service that this descriptor belongs to. - *- * - *
string serviceUuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return instance.getServiceUuid();
- }
- /**
- * - * The service that this descriptor belongs to. - *- * - *
string serviceUuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return instance.getServiceUuidBytes();
- }
- /**
- * - * 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) {
- copyOnWrite();
- instance.setServiceUuid(value);
- return this;
- }
- /**
- * - * The service that this descriptor belongs to. - *- * - *
string serviceUuid = 3;
- * @return This builder for chaining.
- */
- public Builder clearServiceUuid() {
- copyOnWrite();
- instance.clearServiceUuid();
- 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) {
- copyOnWrite();
- instance.setServiceUuidBytes(value);
- return this;
- }
-
- /**
- * - * The characteristic that this descriptor belongs to. - *- * - *
string characteristicUuid = 4;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return instance.getCharacteristicUuid();
- }
- /**
- * - * The characteristic that this descriptor belongs to. - *- * - *
string characteristicUuid = 4;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return instance.getCharacteristicUuidBytes();
- }
- /**
- * - * 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) {
- copyOnWrite();
- instance.setCharacteristicUuid(value);
- return this;
- }
- /**
- * - * The characteristic that this descriptor belongs to. - *- * - *
string characteristicUuid = 4;
- * @return This builder for chaining.
- */
- public Builder clearCharacteristicUuid() {
- copyOnWrite();
- instance.clearCharacteristicUuid();
- 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) {
- copyOnWrite();
- instance.setCharacteristicUuidBytes(value);
- return this;
- }
-
- /**
- * bytes value = 5;
- * @return The value.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getValue() {
- return instance.getValue();
- }
- /**
- * bytes value = 5;
- * @param value The value to set.
- * @return This builder for chaining.
- */
- public Builder setValue(com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setValue(value);
- return this;
- }
- /**
- * bytes value = 5;
- * @return This builder for chaining.
- */
- public Builder clearValue() {
- copyOnWrite();
- instance.clearValue();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:BluetoothDescriptor)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "uuid_",
- "remoteId_",
- "serviceUuid_",
- "characteristicUuid_",
- "value_",
- };
- java.lang.String info =
- "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
- "\u0003\u0208\u0004\u0208\u0005\n";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserbool 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.GeneratedMessageLite<
- CharacteristicProperties, CharacteristicProperties.Builder> implements
- // @@protoc_insertion_point(message_implements:CharacteristicProperties)
- CharacteristicPropertiesOrBuilder {
- private CharacteristicProperties() {
- }
- public static final int BROADCAST_FIELD_NUMBER = 1;
- private boolean broadcast_;
- /**
- * bool broadcast = 1;
- * @return The broadcast.
- */
- @java.lang.Override
- public boolean getBroadcast() {
- return broadcast_;
- }
- /**
- * bool broadcast = 1;
- * @param value The broadcast to set.
- */
- private void setBroadcast(boolean value) {
-
- broadcast_ = value;
- }
- /**
- * bool broadcast = 1;
- */
- private void clearBroadcast() {
-
- broadcast_ = false;
- }
-
- public static final int READ_FIELD_NUMBER = 2;
- private boolean read_;
- /**
- * bool read = 2;
- * @return The read.
- */
- @java.lang.Override
- public boolean getRead() {
- return read_;
- }
- /**
- * bool read = 2;
- * @param value The read to set.
- */
- private void setRead(boolean value) {
-
- read_ = value;
- }
- /**
- * bool read = 2;
- */
- private void clearRead() {
-
- read_ = false;
- }
-
- public static final int WRITE_WITHOUT_RESPONSE_FIELD_NUMBER = 3;
- private boolean writeWithoutResponse_;
- /**
- * bool write_without_response = 3;
- * @return The writeWithoutResponse.
- */
- @java.lang.Override
- public boolean getWriteWithoutResponse() {
- return writeWithoutResponse_;
- }
- /**
- * bool write_without_response = 3;
- * @param value The writeWithoutResponse to set.
- */
- private void setWriteWithoutResponse(boolean value) {
-
- writeWithoutResponse_ = value;
- }
- /**
- * bool write_without_response = 3;
- */
- private void clearWriteWithoutResponse() {
-
- writeWithoutResponse_ = false;
- }
-
- public static final int WRITE_FIELD_NUMBER = 4;
- private boolean write_;
- /**
- * bool write = 4;
- * @return The write.
- */
- @java.lang.Override
- public boolean getWrite() {
- return write_;
- }
- /**
- * bool write = 4;
- * @param value The write to set.
- */
- private void setWrite(boolean value) {
-
- write_ = value;
- }
- /**
- * bool write = 4;
- */
- private void clearWrite() {
-
- write_ = false;
- }
-
- public static final int NOTIFY_FIELD_NUMBER = 5;
- private boolean notify_;
- /**
- * bool notify = 5;
- * @return The notify.
- */
- @java.lang.Override
- public boolean getNotify() {
- return notify_;
- }
- /**
- * bool notify = 5;
- * @param value The notify to set.
- */
- private void setNotify(boolean value) {
-
- notify_ = value;
- }
- /**
- * bool notify = 5;
- */
- private void clearNotify() {
-
- notify_ = false;
- }
-
- public static final int INDICATE_FIELD_NUMBER = 6;
- private boolean indicate_;
- /**
- * bool indicate = 6;
- * @return The indicate.
- */
- @java.lang.Override
- public boolean getIndicate() {
- return indicate_;
- }
- /**
- * bool indicate = 6;
- * @param value The indicate to set.
- */
- private void setIndicate(boolean value) {
-
- indicate_ = value;
- }
- /**
- * bool indicate = 6;
- */
- private void clearIndicate() {
-
- indicate_ = false;
- }
-
- public static final int AUTHENTICATED_SIGNED_WRITES_FIELD_NUMBER = 7;
- private boolean authenticatedSignedWrites_;
- /**
- * bool authenticated_signed_writes = 7;
- * @return The authenticatedSignedWrites.
- */
- @java.lang.Override
- public boolean getAuthenticatedSignedWrites() {
- return authenticatedSignedWrites_;
- }
- /**
- * bool authenticated_signed_writes = 7;
- * @param value The authenticatedSignedWrites to set.
- */
- private void setAuthenticatedSignedWrites(boolean value) {
-
- authenticatedSignedWrites_ = value;
- }
- /**
- * bool authenticated_signed_writes = 7;
- */
- private void clearAuthenticatedSignedWrites() {
-
- authenticatedSignedWrites_ = false;
- }
-
- public static final int EXTENDED_PROPERTIES_FIELD_NUMBER = 8;
- private boolean extendedProperties_;
- /**
- * bool extended_properties = 8;
- * @return The extendedProperties.
- */
- @java.lang.Override
- public boolean getExtendedProperties() {
- return extendedProperties_;
- }
- /**
- * bool extended_properties = 8;
- * @param value The extendedProperties to set.
- */
- private void setExtendedProperties(boolean value) {
-
- extendedProperties_ = value;
- }
- /**
- * bool extended_properties = 8;
- */
- private void clearExtendedProperties() {
-
- extendedProperties_ = false;
- }
-
- public static final int NOTIFY_ENCRYPTION_REQUIRED_FIELD_NUMBER = 9;
- private boolean notifyEncryptionRequired_;
- /**
- * bool notify_encryption_required = 9;
- * @return The notifyEncryptionRequired.
- */
- @java.lang.Override
- public boolean getNotifyEncryptionRequired() {
- return notifyEncryptionRequired_;
- }
- /**
- * bool notify_encryption_required = 9;
- * @param value The notifyEncryptionRequired to set.
- */
- private void setNotifyEncryptionRequired(boolean value) {
-
- notifyEncryptionRequired_ = value;
- }
- /**
- * bool notify_encryption_required = 9;
- */
- private void clearNotifyEncryptionRequired() {
-
- notifyEncryptionRequired_ = false;
- }
-
- public static final int INDICATE_ENCRYPTION_REQUIRED_FIELD_NUMBER = 10;
- private boolean indicateEncryptionRequired_;
- /**
- * bool indicate_encryption_required = 10;
- * @return The indicateEncryptionRequired.
- */
- @java.lang.Override
- public boolean getIndicateEncryptionRequired() {
- return indicateEncryptionRequired_;
- }
- /**
- * bool indicate_encryption_required = 10;
- * @param value The indicateEncryptionRequired to set.
- */
- private void setIndicateEncryptionRequired(boolean value) {
-
- indicateEncryptionRequired_ = value;
- }
- /**
- * bool indicate_encryption_required = 10;
- */
- private void clearIndicateEncryptionRequired() {
-
- indicateEncryptionRequired_ = false;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code CharacteristicProperties}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.CharacteristicProperties, Builder> implements
- // @@protoc_insertion_point(builder_implements:CharacteristicProperties)
- com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * bool broadcast = 1;
- * @return The broadcast.
- */
- @java.lang.Override
- public boolean getBroadcast() {
- return instance.getBroadcast();
- }
- /**
- * bool broadcast = 1;
- * @param value The broadcast to set.
- * @return This builder for chaining.
- */
- public Builder setBroadcast(boolean value) {
- copyOnWrite();
- instance.setBroadcast(value);
- return this;
- }
- /**
- * bool broadcast = 1;
- * @return This builder for chaining.
- */
- public Builder clearBroadcast() {
- copyOnWrite();
- instance.clearBroadcast();
- return this;
- }
-
- /**
- * bool read = 2;
- * @return The read.
- */
- @java.lang.Override
- public boolean getRead() {
- return instance.getRead();
- }
- /**
- * bool read = 2;
- * @param value The read to set.
- * @return This builder for chaining.
- */
- public Builder setRead(boolean value) {
- copyOnWrite();
- instance.setRead(value);
- return this;
- }
- /**
- * bool read = 2;
- * @return This builder for chaining.
- */
- public Builder clearRead() {
- copyOnWrite();
- instance.clearRead();
- return this;
- }
-
- /**
- * bool write_without_response = 3;
- * @return The writeWithoutResponse.
- */
- @java.lang.Override
- public boolean getWriteWithoutResponse() {
- return instance.getWriteWithoutResponse();
- }
- /**
- * bool write_without_response = 3;
- * @param value The writeWithoutResponse to set.
- * @return This builder for chaining.
- */
- public Builder setWriteWithoutResponse(boolean value) {
- copyOnWrite();
- instance.setWriteWithoutResponse(value);
- return this;
- }
- /**
- * bool write_without_response = 3;
- * @return This builder for chaining.
- */
- public Builder clearWriteWithoutResponse() {
- copyOnWrite();
- instance.clearWriteWithoutResponse();
- return this;
- }
-
- /**
- * bool write = 4;
- * @return The write.
- */
- @java.lang.Override
- public boolean getWrite() {
- return instance.getWrite();
- }
- /**
- * bool write = 4;
- * @param value The write to set.
- * @return This builder for chaining.
- */
- public Builder setWrite(boolean value) {
- copyOnWrite();
- instance.setWrite(value);
- return this;
- }
- /**
- * bool write = 4;
- * @return This builder for chaining.
- */
- public Builder clearWrite() {
- copyOnWrite();
- instance.clearWrite();
- return this;
- }
-
- /**
- * bool notify = 5;
- * @return The notify.
- */
- @java.lang.Override
- public boolean getNotify() {
- return instance.getNotify();
- }
- /**
- * bool notify = 5;
- * @param value The notify to set.
- * @return This builder for chaining.
- */
- public Builder setNotify(boolean value) {
- copyOnWrite();
- instance.setNotify(value);
- return this;
- }
- /**
- * bool notify = 5;
- * @return This builder for chaining.
- */
- public Builder clearNotify() {
- copyOnWrite();
- instance.clearNotify();
- return this;
- }
-
- /**
- * bool indicate = 6;
- * @return The indicate.
- */
- @java.lang.Override
- public boolean getIndicate() {
- return instance.getIndicate();
- }
- /**
- * bool indicate = 6;
- * @param value The indicate to set.
- * @return This builder for chaining.
- */
- public Builder setIndicate(boolean value) {
- copyOnWrite();
- instance.setIndicate(value);
- return this;
- }
- /**
- * bool indicate = 6;
- * @return This builder for chaining.
- */
- public Builder clearIndicate() {
- copyOnWrite();
- instance.clearIndicate();
- return this;
- }
-
- /**
- * bool authenticated_signed_writes = 7;
- * @return The authenticatedSignedWrites.
- */
- @java.lang.Override
- public boolean getAuthenticatedSignedWrites() {
- return instance.getAuthenticatedSignedWrites();
- }
- /**
- * bool authenticated_signed_writes = 7;
- * @param value The authenticatedSignedWrites to set.
- * @return This builder for chaining.
- */
- public Builder setAuthenticatedSignedWrites(boolean value) {
- copyOnWrite();
- instance.setAuthenticatedSignedWrites(value);
- return this;
- }
- /**
- * bool authenticated_signed_writes = 7;
- * @return This builder for chaining.
- */
- public Builder clearAuthenticatedSignedWrites() {
- copyOnWrite();
- instance.clearAuthenticatedSignedWrites();
- return this;
- }
-
- /**
- * bool extended_properties = 8;
- * @return The extendedProperties.
- */
- @java.lang.Override
- public boolean getExtendedProperties() {
- return instance.getExtendedProperties();
- }
- /**
- * bool extended_properties = 8;
- * @param value The extendedProperties to set.
- * @return This builder for chaining.
- */
- public Builder setExtendedProperties(boolean value) {
- copyOnWrite();
- instance.setExtendedProperties(value);
- return this;
- }
- /**
- * bool extended_properties = 8;
- * @return This builder for chaining.
- */
- public Builder clearExtendedProperties() {
- copyOnWrite();
- instance.clearExtendedProperties();
- return this;
- }
-
- /**
- * bool notify_encryption_required = 9;
- * @return The notifyEncryptionRequired.
- */
- @java.lang.Override
- public boolean getNotifyEncryptionRequired() {
- return instance.getNotifyEncryptionRequired();
- }
- /**
- * bool notify_encryption_required = 9;
- * @param value The notifyEncryptionRequired to set.
- * @return This builder for chaining.
- */
- public Builder setNotifyEncryptionRequired(boolean value) {
- copyOnWrite();
- instance.setNotifyEncryptionRequired(value);
- return this;
- }
- /**
- * bool notify_encryption_required = 9;
- * @return This builder for chaining.
- */
- public Builder clearNotifyEncryptionRequired() {
- copyOnWrite();
- instance.clearNotifyEncryptionRequired();
- return this;
- }
-
- /**
- * bool indicate_encryption_required = 10;
- * @return The indicateEncryptionRequired.
- */
- @java.lang.Override
- public boolean getIndicateEncryptionRequired() {
- return instance.getIndicateEncryptionRequired();
- }
- /**
- * bool indicate_encryption_required = 10;
- * @param value The indicateEncryptionRequired to set.
- * @return This builder for chaining.
- */
- public Builder setIndicateEncryptionRequired(boolean value) {
- copyOnWrite();
- instance.setIndicateEncryptionRequired(value);
- return this;
- }
- /**
- * bool indicate_encryption_required = 10;
- * @return This builder for chaining.
- */
- public Builder clearIndicateEncryptionRequired() {
- copyOnWrite();
- instance.clearIndicateEncryptionRequired();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:CharacteristicProperties)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.CharacteristicProperties();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "broadcast_",
- "read_",
- "writeWithoutResponse_",
- "write_",
- "notify_",
- "indicate_",
- "authenticatedSignedWrites_",
- "extendedProperties_",
- "notifyEncryptionRequired_",
- "indicateEncryptionRequired_",
- };
- java.lang.String info =
- "\u0000\n\u0000\u0000\u0001\n\n\u0000\u0000\u0000\u0001\u0007\u0002\u0007\u0003\u0007" +
- "\u0004\u0007\u0005\u0007\u0006\u0007\u0007\u0007\b\u0007\t\u0007\n\u0007";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.Listrepeated .BluetoothService services = 2;
- */
- com.pauldemarco.flutter_blue.Protos.BluetoothService getServices(int index);
- /**
- * repeated .BluetoothService services = 2;
- */
- int getServicesCount();
- }
- /**
- * Protobuf type {@code DiscoverServicesResult}
- */
- public static final class DiscoverServicesResult extends
- com.google.protobuf.GeneratedMessageLite<
- DiscoverServicesResult, DiscoverServicesResult.Builder> implements
- // @@protoc_insertion_point(message_implements:DiscoverServicesResult)
- DiscoverServicesResultOrBuilder {
- private DiscoverServicesResult() {
- remoteId_ = "";
- services_ = emptyProtobufList();
- }
- public static final int REMOTE_ID_FIELD_NUMBER = 1;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int SERVICES_FIELD_NUMBER = 2;
- private com.google.protobuf.Internal.ProtobufListrepeated .BluetoothService services = 2;
- */
- @java.lang.Override
- public java.util.Listrepeated .BluetoothService services = 2;
- */
- public java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder>
- getServicesOrBuilderList() {
- return services_;
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- @java.lang.Override
- public int getServicesCount() {
- return services_.size();
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- @java.lang.Override
- 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 void ensureServicesIsMutable() {
- if (!services_.isModifiable()) {
- services_ =
- com.google.protobuf.GeneratedMessageLite.mutableCopy(services_);
- }
- }
-
- /**
- * repeated .BluetoothService services = 2;
- */
- private void setServices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
- value.getClass();
- ensureServicesIsMutable();
- services_.set(index, value);
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- private void addServices(com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
- value.getClass();
- ensureServicesIsMutable();
- services_.add(value);
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- private void addServices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
- value.getClass();
- ensureServicesIsMutable();
- services_.add(index, value);
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- private void addAllServices(
- java.lang.Iterable extends com.pauldemarco.flutter_blue.Protos.BluetoothService> values) {
- ensureServicesIsMutable();
- com.google.protobuf.AbstractMessageLite.addAll(
- values, services_);
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- private void clearServices() {
- services_ = emptyProtobufList();
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- private void removeServices(int index) {
- ensureServicesIsMutable();
- services_.remove(index);
- }
-
- public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code DiscoverServicesResult}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult, Builder> implements
- // @@protoc_insertion_point(builder_implements:DiscoverServicesResult)
- com.pauldemarco.flutter_blue.Protos.DiscoverServicesResultOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * repeated .BluetoothService services = 2;
- */
- @java.lang.Override
- public java.util.Listrepeated .BluetoothService services = 2;
- */
- @java.lang.Override
- public int getServicesCount() {
- return instance.getServicesCount();
- }/**
- * repeated .BluetoothService services = 2;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothService getServices(int index) {
- return instance.getServices(index);
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- public Builder setServices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
- copyOnWrite();
- instance.setServices(index, value);
- return this;
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- public Builder setServices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) {
- copyOnWrite();
- instance.setServices(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- public Builder addServices(com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
- copyOnWrite();
- instance.addServices(value);
- return this;
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- public Builder addServices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
- copyOnWrite();
- instance.addServices(index, value);
- return this;
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- public Builder addServices(
- com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) {
- copyOnWrite();
- instance.addServices(builderForValue.build());
- return this;
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- public Builder addServices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) {
- copyOnWrite();
- instance.addServices(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- public Builder addAllServices(
- java.lang.Iterable extends com.pauldemarco.flutter_blue.Protos.BluetoothService> values) {
- copyOnWrite();
- instance.addAllServices(values);
- return this;
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- public Builder clearServices() {
- copyOnWrite();
- instance.clearServices();
- return this;
- }
- /**
- * repeated .BluetoothService services = 2;
- */
- public Builder removeServices(int index) {
- copyOnWrite();
- instance.removeServices(index);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:DiscoverServicesResult)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "services_",
- com.pauldemarco.flutter_blue.Protos.BluetoothService.class,
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u0208\u0002\u001b" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.GeneratedMessageLite<
- ReadCharacteristicRequest, ReadCharacteristicRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:ReadCharacteristicRequest)
- ReadCharacteristicRequestOrBuilder {
- private ReadCharacteristicRequest() {
- remoteId_ = "";
- characteristicUuid_ = "";
- serviceUuid_ = "";
- secondaryServiceUuid_ = "";
- }
- public static final int REMOTE_ID_FIELD_NUMBER = 1;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 2;
- private java.lang.String characteristicUuid_;
- /**
- * string characteristic_uuid = 2;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return characteristicUuid_;
- }
- /**
- * string characteristic_uuid = 2;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(characteristicUuid_);
- }
- /**
- * string characteristic_uuid = 2;
- * @param value The characteristicUuid to set.
- */
- private void setCharacteristicUuid(
- java.lang.String value) {
- value.getClass();
-
- characteristicUuid_ = value;
- }
- /**
- * string characteristic_uuid = 2;
- */
- private void clearCharacteristicUuid() {
-
- characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
- }
- /**
- * string characteristic_uuid = 2;
- * @param value The bytes for characteristicUuid to set.
- */
- private void setCharacteristicUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- characteristicUuid_ = value.toStringUtf8();
-
- }
-
- public static final int SERVICE_UUID_FIELD_NUMBER = 3;
- private java.lang.String serviceUuid_;
- /**
- * string service_uuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return serviceUuid_;
- }
- /**
- * string service_uuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(serviceUuid_);
- }
- /**
- * string service_uuid = 3;
- * @param value The serviceUuid to set.
- */
- private void setServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- serviceUuid_ = value;
- }
- /**
- * string service_uuid = 3;
- */
- private void clearServiceUuid() {
-
- serviceUuid_ = getDefaultInstance().getServiceUuid();
- }
- /**
- * string service_uuid = 3;
- * @param value The bytes for serviceUuid to set.
- */
- private void setServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- serviceUuid_ = value.toStringUtf8();
-
- }
-
- public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4;
- private java.lang.String secondaryServiceUuid_;
- /**
- * string secondary_service_uuid = 4;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return secondaryServiceUuid_;
- }
- /**
- * string secondary_service_uuid = 4;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(secondaryServiceUuid_);
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- secondaryServiceUuid_ = value;
- }
- /**
- * string secondary_service_uuid = 4;
- */
- private void clearSecondaryServiceUuid() {
-
- secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid();
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The bytes for secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- secondaryServiceUuid_ = value.toStringUtf8();
-
- }
-
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code ReadCharacteristicRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:ReadCharacteristicRequest)
- com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequestOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * string characteristic_uuid = 2;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return instance.getCharacteristicUuid();
- }
- /**
- * string characteristic_uuid = 2;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return instance.getCharacteristicUuidBytes();
- }
- /**
- * string characteristic_uuid = 2;
- * @param value The characteristicUuid to set.
- * @return This builder for chaining.
- */
- public Builder setCharacteristicUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setCharacteristicUuid(value);
- return this;
- }
- /**
- * string characteristic_uuid = 2;
- * @return This builder for chaining.
- */
- public Builder clearCharacteristicUuid() {
- copyOnWrite();
- instance.clearCharacteristicUuid();
- 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) {
- copyOnWrite();
- instance.setCharacteristicUuidBytes(value);
- return this;
- }
-
- /**
- * string service_uuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return instance.getServiceUuid();
- }
- /**
- * string service_uuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return instance.getServiceUuidBytes();
- }
- /**
- * string service_uuid = 3;
- * @param value The serviceUuid to set.
- * @return This builder for chaining.
- */
- public Builder setServiceUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setServiceUuid(value);
- return this;
- }
- /**
- * string service_uuid = 3;
- * @return This builder for chaining.
- */
- public Builder clearServiceUuid() {
- copyOnWrite();
- instance.clearServiceUuid();
- 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) {
- copyOnWrite();
- instance.setServiceUuidBytes(value);
- return this;
- }
-
- /**
- * string secondary_service_uuid = 4;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return instance.getSecondaryServiceUuid();
- }
- /**
- * string secondary_service_uuid = 4;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return instance.getSecondaryServiceUuidBytes();
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The secondaryServiceUuid to set.
- * @return This builder for chaining.
- */
- public Builder setSecondaryServiceUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setSecondaryServiceUuid(value);
- return this;
- }
- /**
- * string secondary_service_uuid = 4;
- * @return This builder for chaining.
- */
- public Builder clearSecondaryServiceUuid() {
- copyOnWrite();
- instance.clearSecondaryServiceUuid();
- 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) {
- copyOnWrite();
- instance.setSecondaryServiceUuidBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:ReadCharacteristicRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "characteristicUuid_",
- "serviceUuid_",
- "secondaryServiceUuid_",
- };
- java.lang.String info =
- "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
- "\u0003\u0208\u0004\u0208";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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();
- }
- /**
- * Protobuf type {@code ReadCharacteristicResponse}
- */
- public static final class ReadCharacteristicResponse extends
- com.google.protobuf.GeneratedMessageLite<
- ReadCharacteristicResponse, ReadCharacteristicResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:ReadCharacteristicResponse)
- ReadCharacteristicResponseOrBuilder {
- private ReadCharacteristicResponse() {
- remoteId_ = "";
- }
- public static final int REMOTE_ID_FIELD_NUMBER = 1;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int CHARACTERISTIC_FIELD_NUMBER = 2;
- private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_;
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public boolean hasCharacteristic() {
- return characteristic_ != null;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
- return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- private void setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- value.getClass();
- characteristic_ = value;
-
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- value.getClass();
- if (characteristic_ != null &&
- characteristic_ != com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance()) {
- characteristic_ =
- com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.newBuilder(characteristic_).mergeFrom(value).buildPartial();
- } else {
- characteristic_ = value;
- }
-
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- private void clearCharacteristic() { characteristic_ = null;
-
- }
-
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code ReadCharacteristicResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:ReadCharacteristicResponse)
- com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponseOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public boolean hasCharacteristic() {
- return instance.hasCharacteristic();
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
- return instance.getCharacteristic();
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- copyOnWrite();
- instance.setCharacteristic(value);
- return this;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder setCharacteristic(
- com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) {
- copyOnWrite();
- instance.setCharacteristic(builderForValue.build());
- return this;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- copyOnWrite();
- instance.mergeCharacteristic(value);
- return this;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder clearCharacteristic() { copyOnWrite();
- instance.clearCharacteristic();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:ReadCharacteristicResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "characteristic_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\t" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.GeneratedMessageLite<
- ReadDescriptorRequest, ReadDescriptorRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:ReadDescriptorRequest)
- ReadDescriptorRequestOrBuilder {
- private ReadDescriptorRequest() {
- remoteId_ = "";
- descriptorUuid_ = "";
- serviceUuid_ = "";
- secondaryServiceUuid_ = "";
- characteristicUuid_ = "";
- }
- public static final int REMOTE_ID_FIELD_NUMBER = 1;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int DESCRIPTOR_UUID_FIELD_NUMBER = 2;
- private java.lang.String descriptorUuid_;
- /**
- * string descriptor_uuid = 2;
- * @return The descriptorUuid.
- */
- @java.lang.Override
- public java.lang.String getDescriptorUuid() {
- return descriptorUuid_;
- }
- /**
- * string descriptor_uuid = 2;
- * @return The bytes for descriptorUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getDescriptorUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(descriptorUuid_);
- }
- /**
- * string descriptor_uuid = 2;
- * @param value The descriptorUuid to set.
- */
- private void setDescriptorUuid(
- java.lang.String value) {
- value.getClass();
-
- descriptorUuid_ = value;
- }
- /**
- * string descriptor_uuid = 2;
- */
- private void clearDescriptorUuid() {
-
- descriptorUuid_ = getDefaultInstance().getDescriptorUuid();
- }
- /**
- * string descriptor_uuid = 2;
- * @param value The bytes for descriptorUuid to set.
- */
- private void setDescriptorUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- descriptorUuid_ = value.toStringUtf8();
-
- }
-
- public static final int SERVICE_UUID_FIELD_NUMBER = 3;
- private java.lang.String serviceUuid_;
- /**
- * string service_uuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return serviceUuid_;
- }
- /**
- * string service_uuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(serviceUuid_);
- }
- /**
- * string service_uuid = 3;
- * @param value The serviceUuid to set.
- */
- private void setServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- serviceUuid_ = value;
- }
- /**
- * string service_uuid = 3;
- */
- private void clearServiceUuid() {
-
- serviceUuid_ = getDefaultInstance().getServiceUuid();
- }
- /**
- * string service_uuid = 3;
- * @param value The bytes for serviceUuid to set.
- */
- private void setServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- serviceUuid_ = value.toStringUtf8();
-
- }
-
- public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4;
- private java.lang.String secondaryServiceUuid_;
- /**
- * string secondary_service_uuid = 4;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return secondaryServiceUuid_;
- }
- /**
- * string secondary_service_uuid = 4;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(secondaryServiceUuid_);
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- secondaryServiceUuid_ = value;
- }
- /**
- * string secondary_service_uuid = 4;
- */
- private void clearSecondaryServiceUuid() {
-
- secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid();
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The bytes for secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- secondaryServiceUuid_ = value.toStringUtf8();
-
- }
-
- public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 5;
- private java.lang.String characteristicUuid_;
- /**
- * string characteristic_uuid = 5;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return characteristicUuid_;
- }
- /**
- * string characteristic_uuid = 5;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(characteristicUuid_);
- }
- /**
- * string characteristic_uuid = 5;
- * @param value The characteristicUuid to set.
- */
- private void setCharacteristicUuid(
- java.lang.String value) {
- value.getClass();
-
- characteristicUuid_ = value;
- }
- /**
- * string characteristic_uuid = 5;
- */
- private void clearCharacteristicUuid() {
-
- characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
- }
- /**
- * string characteristic_uuid = 5;
- * @param value The bytes for characteristicUuid to set.
- */
- private void setCharacteristicUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- characteristicUuid_ = value.toStringUtf8();
-
- }
-
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code ReadDescriptorRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:ReadDescriptorRequest)
- com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * string descriptor_uuid = 2;
- * @return The descriptorUuid.
- */
- @java.lang.Override
- public java.lang.String getDescriptorUuid() {
- return instance.getDescriptorUuid();
- }
- /**
- * string descriptor_uuid = 2;
- * @return The bytes for descriptorUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getDescriptorUuidBytes() {
- return instance.getDescriptorUuidBytes();
- }
- /**
- * string descriptor_uuid = 2;
- * @param value The descriptorUuid to set.
- * @return This builder for chaining.
- */
- public Builder setDescriptorUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setDescriptorUuid(value);
- return this;
- }
- /**
- * string descriptor_uuid = 2;
- * @return This builder for chaining.
- */
- public Builder clearDescriptorUuid() {
- copyOnWrite();
- instance.clearDescriptorUuid();
- 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) {
- copyOnWrite();
- instance.setDescriptorUuidBytes(value);
- return this;
- }
-
- /**
- * string service_uuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return instance.getServiceUuid();
- }
- /**
- * string service_uuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return instance.getServiceUuidBytes();
- }
- /**
- * string service_uuid = 3;
- * @param value The serviceUuid to set.
- * @return This builder for chaining.
- */
- public Builder setServiceUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setServiceUuid(value);
- return this;
- }
- /**
- * string service_uuid = 3;
- * @return This builder for chaining.
- */
- public Builder clearServiceUuid() {
- copyOnWrite();
- instance.clearServiceUuid();
- 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) {
- copyOnWrite();
- instance.setServiceUuidBytes(value);
- return this;
- }
-
- /**
- * string secondary_service_uuid = 4;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return instance.getSecondaryServiceUuid();
- }
- /**
- * string secondary_service_uuid = 4;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return instance.getSecondaryServiceUuidBytes();
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The secondaryServiceUuid to set.
- * @return This builder for chaining.
- */
- public Builder setSecondaryServiceUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setSecondaryServiceUuid(value);
- return this;
- }
- /**
- * string secondary_service_uuid = 4;
- * @return This builder for chaining.
- */
- public Builder clearSecondaryServiceUuid() {
- copyOnWrite();
- instance.clearSecondaryServiceUuid();
- 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) {
- copyOnWrite();
- instance.setSecondaryServiceUuidBytes(value);
- return this;
- }
-
- /**
- * string characteristic_uuid = 5;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return instance.getCharacteristicUuid();
- }
- /**
- * string characteristic_uuid = 5;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return instance.getCharacteristicUuidBytes();
- }
- /**
- * string characteristic_uuid = 5;
- * @param value The characteristicUuid to set.
- * @return This builder for chaining.
- */
- public Builder setCharacteristicUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setCharacteristicUuid(value);
- return this;
- }
- /**
- * string characteristic_uuid = 5;
- * @return This builder for chaining.
- */
- public Builder clearCharacteristicUuid() {
- copyOnWrite();
- instance.clearCharacteristicUuid();
- 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) {
- copyOnWrite();
- instance.setCharacteristicUuidBytes(value);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:ReadDescriptorRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "descriptorUuid_",
- "serviceUuid_",
- "secondaryServiceUuid_",
- "characteristicUuid_",
- };
- java.lang.String info =
- "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
- "\u0003\u0208\u0004\u0208\u0005\u0208";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser.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();
-
- /**
- * bytes value = 2;
- * @return The value.
- */
- com.google.protobuf.ByteString getValue();
- }
- /**
- * Protobuf type {@code ReadDescriptorResponse}
- */
- public static final class ReadDescriptorResponse extends
- com.google.protobuf.GeneratedMessageLite<
- ReadDescriptorResponse, ReadDescriptorResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:ReadDescriptorResponse)
- ReadDescriptorResponseOrBuilder {
- private ReadDescriptorResponse() {
- value_ = com.google.protobuf.ByteString.EMPTY;
- }
- public static final int REQUEST_FIELD_NUMBER = 1;
- private com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest request_;
- /**
- * .ReadDescriptorRequest request = 1;
- */
- @java.lang.Override
- public boolean hasRequest() {
- return request_ != null;
- }
- /**
- * .ReadDescriptorRequest request = 1;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getRequest() {
- return request_ == null ? com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance() : request_;
- }
- /**
- * .ReadDescriptorRequest request = 1;
- */
- private void setRequest(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest value) {
- value.getClass();
- request_ = value;
-
- }
- /**
- * .ReadDescriptorRequest request = 1;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeRequest(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest value) {
- value.getClass();
- if (request_ != null &&
- request_ != com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance()) {
- request_ =
- com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.newBuilder(request_).mergeFrom(value).buildPartial();
- } else {
- request_ = value;
- }
-
- }
- /**
- * .ReadDescriptorRequest request = 1;
- */
- private void clearRequest() { request_ = null;
-
- }
-
- public static final int VALUE_FIELD_NUMBER = 2;
- private com.google.protobuf.ByteString value_;
- /**
- * bytes value = 2;
- * @return The value.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getValue() {
- return value_;
- }
- /**
- * bytes value = 2;
- * @param value The value to set.
- */
- private void setValue(com.google.protobuf.ByteString value) {
- value.getClass();
-
- value_ = value;
- }
- /**
- * bytes value = 2;
- */
- private void clearValue() {
-
- value_ = getDefaultInstance().getValue();
- }
-
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code ReadDescriptorResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:ReadDescriptorResponse)
- com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponseOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * .ReadDescriptorRequest request = 1;
- */
- @java.lang.Override
- public boolean hasRequest() {
- return instance.hasRequest();
- }
- /**
- * .ReadDescriptorRequest request = 1;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getRequest() {
- return instance.getRequest();
- }
- /**
- * .ReadDescriptorRequest request = 1;
- */
- public Builder setRequest(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest value) {
- copyOnWrite();
- instance.setRequest(value);
- return this;
- }
- /**
- * .ReadDescriptorRequest request = 1;
- */
- public Builder setRequest(
- com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder builderForValue) {
- copyOnWrite();
- instance.setRequest(builderForValue.build());
- return this;
- }
- /**
- * .ReadDescriptorRequest request = 1;
- */
- public Builder mergeRequest(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest value) {
- copyOnWrite();
- instance.mergeRequest(value);
- return this;
- }
- /**
- * .ReadDescriptorRequest request = 1;
- */
- public Builder clearRequest() { copyOnWrite();
- instance.clearRequest();
- return this;
- }
-
- /**
- * bytes value = 2;
- * @return The value.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getValue() {
- return instance.getValue();
- }
- /**
- * bytes value = 2;
- * @param value The value to set.
- * @return This builder for chaining.
- */
- public Builder setValue(com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setValue(value);
- return this;
- }
- /**
- * bytes value = 2;
- * @return This builder for chaining.
- */
- public Builder clearValue() {
- copyOnWrite();
- instance.clearValue();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:ReadDescriptorResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "request_",
- "value_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\n";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.GeneratedMessageLite<
- WriteCharacteristicRequest, WriteCharacteristicRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:WriteCharacteristicRequest)
- WriteCharacteristicRequestOrBuilder {
- private WriteCharacteristicRequest() {
- remoteId_ = "";
- characteristicUuid_ = "";
- serviceUuid_ = "";
- secondaryServiceUuid_ = "";
- value_ = com.google.protobuf.ByteString.EMPTY;
- }
- /**
- * Protobuf enum {@code WriteCharacteristicRequest.WriteType}
- */
- public enum WriteType
- implements com.google.protobuf.Internal.EnumLite {
- /**
- * 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;
-
-
- @java.lang.Override
- 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 number of the enum to look for.
- * @return The enum associated with the given number.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static WriteType valueOf(int value) {
- return forNumber(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.EnumLiteMapstring remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 2;
- private java.lang.String characteristicUuid_;
- /**
- * string characteristic_uuid = 2;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return characteristicUuid_;
- }
- /**
- * string characteristic_uuid = 2;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(characteristicUuid_);
- }
- /**
- * string characteristic_uuid = 2;
- * @param value The characteristicUuid to set.
- */
- private void setCharacteristicUuid(
- java.lang.String value) {
- value.getClass();
-
- characteristicUuid_ = value;
- }
- /**
- * string characteristic_uuid = 2;
- */
- private void clearCharacteristicUuid() {
-
- characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
- }
- /**
- * string characteristic_uuid = 2;
- * @param value The bytes for characteristicUuid to set.
- */
- private void setCharacteristicUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- characteristicUuid_ = value.toStringUtf8();
-
- }
-
- public static final int SERVICE_UUID_FIELD_NUMBER = 3;
- private java.lang.String serviceUuid_;
- /**
- * string service_uuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return serviceUuid_;
- }
- /**
- * string service_uuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(serviceUuid_);
- }
- /**
- * string service_uuid = 3;
- * @param value The serviceUuid to set.
- */
- private void setServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- serviceUuid_ = value;
- }
- /**
- * string service_uuid = 3;
- */
- private void clearServiceUuid() {
-
- serviceUuid_ = getDefaultInstance().getServiceUuid();
- }
- /**
- * string service_uuid = 3;
- * @param value The bytes for serviceUuid to set.
- */
- private void setServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- serviceUuid_ = value.toStringUtf8();
-
- }
-
- public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4;
- private java.lang.String secondaryServiceUuid_;
- /**
- * string secondary_service_uuid = 4;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return secondaryServiceUuid_;
- }
- /**
- * string secondary_service_uuid = 4;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(secondaryServiceUuid_);
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- secondaryServiceUuid_ = value;
- }
- /**
- * string secondary_service_uuid = 4;
- */
- private void clearSecondaryServiceUuid() {
-
- secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid();
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The bytes for secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- secondaryServiceUuid_ = value.toStringUtf8();
-
- }
-
- 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.
- */
- @java.lang.Override
- public int getWriteTypeValue() {
- return writeType_;
- }
- /**
- * .WriteCharacteristicRequest.WriteType write_type = 5;
- * @return The writeType.
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType getWriteType() {
- com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType result = com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.forNumber(writeType_);
- return result == null ? com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.UNRECOGNIZED : result;
- }
- /**
- * .WriteCharacteristicRequest.WriteType write_type = 5;
- * @param value The enum numeric value on the wire for writeType to set.
- */
- private void setWriteTypeValue(int value) {
- writeType_ = value;
- }
- /**
- * .WriteCharacteristicRequest.WriteType write_type = 5;
- * @param value The writeType to set.
- */
- private void setWriteType(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType value) {
- writeType_ = value.getNumber();
-
- }
- /**
- * .WriteCharacteristicRequest.WriteType write_type = 5;
- */
- private void clearWriteType() {
-
- writeType_ = 0;
- }
-
- public static final int VALUE_FIELD_NUMBER = 6;
- private com.google.protobuf.ByteString value_;
- /**
- * bytes value = 6;
- * @return The value.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getValue() {
- return value_;
- }
- /**
- * bytes value = 6;
- * @param value The value to set.
- */
- private void setValue(com.google.protobuf.ByteString value) {
- value.getClass();
-
- value_ = value;
- }
- /**
- * bytes value = 6;
- */
- private void clearValue() {
-
- value_ = getDefaultInstance().getValue();
- }
-
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code WriteCharacteristicRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:WriteCharacteristicRequest)
- com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * string characteristic_uuid = 2;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return instance.getCharacteristicUuid();
- }
- /**
- * string characteristic_uuid = 2;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return instance.getCharacteristicUuidBytes();
- }
- /**
- * string characteristic_uuid = 2;
- * @param value The characteristicUuid to set.
- * @return This builder for chaining.
- */
- public Builder setCharacteristicUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setCharacteristicUuid(value);
- return this;
- }
- /**
- * string characteristic_uuid = 2;
- * @return This builder for chaining.
- */
- public Builder clearCharacteristicUuid() {
- copyOnWrite();
- instance.clearCharacteristicUuid();
- 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) {
- copyOnWrite();
- instance.setCharacteristicUuidBytes(value);
- return this;
- }
-
- /**
- * string service_uuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return instance.getServiceUuid();
- }
- /**
- * string service_uuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return instance.getServiceUuidBytes();
- }
- /**
- * string service_uuid = 3;
- * @param value The serviceUuid to set.
- * @return This builder for chaining.
- */
- public Builder setServiceUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setServiceUuid(value);
- return this;
- }
- /**
- * string service_uuid = 3;
- * @return This builder for chaining.
- */
- public Builder clearServiceUuid() {
- copyOnWrite();
- instance.clearServiceUuid();
- 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) {
- copyOnWrite();
- instance.setServiceUuidBytes(value);
- return this;
- }
-
- /**
- * string secondary_service_uuid = 4;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return instance.getSecondaryServiceUuid();
- }
- /**
- * string secondary_service_uuid = 4;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return instance.getSecondaryServiceUuidBytes();
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The secondaryServiceUuid to set.
- * @return This builder for chaining.
- */
- public Builder setSecondaryServiceUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setSecondaryServiceUuid(value);
- return this;
- }
- /**
- * string secondary_service_uuid = 4;
- * @return This builder for chaining.
- */
- public Builder clearSecondaryServiceUuid() {
- copyOnWrite();
- instance.clearSecondaryServiceUuid();
- 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) {
- copyOnWrite();
- instance.setSecondaryServiceUuidBytes(value);
- return this;
- }
-
- /**
- * .WriteCharacteristicRequest.WriteType write_type = 5;
- * @return The enum numeric value on the wire for writeType.
- */
- @java.lang.Override
- public int getWriteTypeValue() {
- return instance.getWriteTypeValue();
- }
- /**
- * .WriteCharacteristicRequest.WriteType write_type = 5;
- * @param value The writeType to set.
- * @return This builder for chaining.
- */
- public Builder setWriteTypeValue(int value) {
- copyOnWrite();
- instance.setWriteTypeValue(value);
- return this;
- }
- /**
- * .WriteCharacteristicRequest.WriteType write_type = 5;
- * @return The writeType.
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType getWriteType() {
- return instance.getWriteType();
- }
- /**
- * .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 setWriteType(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType value) {
- copyOnWrite();
- instance.setWriteType(value);
- return this;
- }
- /**
- * .WriteCharacteristicRequest.WriteType write_type = 5;
- * @return This builder for chaining.
- */
- public Builder clearWriteType() {
- copyOnWrite();
- instance.clearWriteType();
- return this;
- }
-
- /**
- * bytes value = 6;
- * @return The value.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getValue() {
- return instance.getValue();
- }
- /**
- * bytes value = 6;
- * @param value The value to set.
- * @return This builder for chaining.
- */
- public Builder setValue(com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setValue(value);
- return this;
- }
- /**
- * bytes value = 6;
- * @return This builder for chaining.
- */
- public Builder clearValue() {
- copyOnWrite();
- instance.clearValue();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:WriteCharacteristicRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "characteristicUuid_",
- "serviceUuid_",
- "secondaryServiceUuid_",
- "writeType_",
- "value_",
- };
- java.lang.String info =
- "\u0000\u0006\u0000\u0000\u0001\u0006\u0006\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
- "\u0003\u0208\u0004\u0208\u0005\f\u0006\n";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser.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();
-
- /**
- * bool success = 2;
- * @return The success.
- */
- boolean getSuccess();
- }
- /**
- * Protobuf type {@code WriteCharacteristicResponse}
- */
- public static final class WriteCharacteristicResponse extends
- com.google.protobuf.GeneratedMessageLite<
- WriteCharacteristicResponse, WriteCharacteristicResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:WriteCharacteristicResponse)
- WriteCharacteristicResponseOrBuilder {
- private WriteCharacteristicResponse() {
- }
- public static final int REQUEST_FIELD_NUMBER = 1;
- private com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest request_;
- /**
- * .WriteCharacteristicRequest request = 1;
- */
- @java.lang.Override
- public boolean hasRequest() {
- return request_ != null;
- }
- /**
- * .WriteCharacteristicRequest request = 1;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getRequest() {
- return request_ == null ? com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance() : request_;
- }
- /**
- * .WriteCharacteristicRequest request = 1;
- */
- private void setRequest(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest value) {
- value.getClass();
- request_ = value;
-
- }
- /**
- * .WriteCharacteristicRequest request = 1;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeRequest(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest value) {
- value.getClass();
- if (request_ != null &&
- request_ != com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance()) {
- request_ =
- com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.newBuilder(request_).mergeFrom(value).buildPartial();
- } else {
- request_ = value;
- }
-
- }
- /**
- * .WriteCharacteristicRequest request = 1;
- */
- private void clearRequest() { request_ = null;
-
- }
-
- public static final int SUCCESS_FIELD_NUMBER = 2;
- private boolean success_;
- /**
- * bool success = 2;
- * @return The success.
- */
- @java.lang.Override
- public boolean getSuccess() {
- return success_;
- }
- /**
- * bool success = 2;
- * @param value The success to set.
- */
- private void setSuccess(boolean value) {
-
- success_ = value;
- }
- /**
- * bool success = 2;
- */
- private void clearSuccess() {
-
- success_ = false;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code WriteCharacteristicResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:WriteCharacteristicResponse)
- com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponseOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * .WriteCharacteristicRequest request = 1;
- */
- @java.lang.Override
- public boolean hasRequest() {
- return instance.hasRequest();
- }
- /**
- * .WriteCharacteristicRequest request = 1;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getRequest() {
- return instance.getRequest();
- }
- /**
- * .WriteCharacteristicRequest request = 1;
- */
- public Builder setRequest(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest value) {
- copyOnWrite();
- instance.setRequest(value);
- return this;
- }
- /**
- * .WriteCharacteristicRequest request = 1;
- */
- public Builder setRequest(
- com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder builderForValue) {
- copyOnWrite();
- instance.setRequest(builderForValue.build());
- return this;
- }
- /**
- * .WriteCharacteristicRequest request = 1;
- */
- public Builder mergeRequest(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest value) {
- copyOnWrite();
- instance.mergeRequest(value);
- return this;
- }
- /**
- * .WriteCharacteristicRequest request = 1;
- */
- public Builder clearRequest() { copyOnWrite();
- instance.clearRequest();
- return this;
- }
-
- /**
- * bool success = 2;
- * @return The success.
- */
- @java.lang.Override
- public boolean getSuccess() {
- return instance.getSuccess();
- }
- /**
- * bool success = 2;
- * @param value The success to set.
- * @return This builder for chaining.
- */
- public Builder setSuccess(boolean value) {
- copyOnWrite();
- instance.setSuccess(value);
- return this;
- }
- /**
- * bool success = 2;
- * @return This builder for chaining.
- */
- public Builder clearSuccess() {
- copyOnWrite();
- instance.clearSuccess();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:WriteCharacteristicResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "request_",
- "success_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\u0007" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.GeneratedMessageLite<
- WriteDescriptorRequest, WriteDescriptorRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:WriteDescriptorRequest)
- WriteDescriptorRequestOrBuilder {
- private WriteDescriptorRequest() {
- remoteId_ = "";
- descriptorUuid_ = "";
- serviceUuid_ = "";
- secondaryServiceUuid_ = "";
- characteristicUuid_ = "";
- value_ = com.google.protobuf.ByteString.EMPTY;
- }
- public static final int REMOTE_ID_FIELD_NUMBER = 1;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int DESCRIPTOR_UUID_FIELD_NUMBER = 2;
- private java.lang.String descriptorUuid_;
- /**
- * string descriptor_uuid = 2;
- * @return The descriptorUuid.
- */
- @java.lang.Override
- public java.lang.String getDescriptorUuid() {
- return descriptorUuid_;
- }
- /**
- * string descriptor_uuid = 2;
- * @return The bytes for descriptorUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getDescriptorUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(descriptorUuid_);
- }
- /**
- * string descriptor_uuid = 2;
- * @param value The descriptorUuid to set.
- */
- private void setDescriptorUuid(
- java.lang.String value) {
- value.getClass();
-
- descriptorUuid_ = value;
- }
- /**
- * string descriptor_uuid = 2;
- */
- private void clearDescriptorUuid() {
-
- descriptorUuid_ = getDefaultInstance().getDescriptorUuid();
- }
- /**
- * string descriptor_uuid = 2;
- * @param value The bytes for descriptorUuid to set.
- */
- private void setDescriptorUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- descriptorUuid_ = value.toStringUtf8();
-
- }
-
- public static final int SERVICE_UUID_FIELD_NUMBER = 3;
- private java.lang.String serviceUuid_;
- /**
- * string service_uuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return serviceUuid_;
- }
- /**
- * string service_uuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(serviceUuid_);
- }
- /**
- * string service_uuid = 3;
- * @param value The serviceUuid to set.
- */
- private void setServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- serviceUuid_ = value;
- }
- /**
- * string service_uuid = 3;
- */
- private void clearServiceUuid() {
-
- serviceUuid_ = getDefaultInstance().getServiceUuid();
- }
- /**
- * string service_uuid = 3;
- * @param value The bytes for serviceUuid to set.
- */
- private void setServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- serviceUuid_ = value.toStringUtf8();
-
- }
-
- public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4;
- private java.lang.String secondaryServiceUuid_;
- /**
- * string secondary_service_uuid = 4;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return secondaryServiceUuid_;
- }
- /**
- * string secondary_service_uuid = 4;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(secondaryServiceUuid_);
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- secondaryServiceUuid_ = value;
- }
- /**
- * string secondary_service_uuid = 4;
- */
- private void clearSecondaryServiceUuid() {
-
- secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid();
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The bytes for secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- secondaryServiceUuid_ = value.toStringUtf8();
-
- }
-
- public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 5;
- private java.lang.String characteristicUuid_;
- /**
- * string characteristic_uuid = 5;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return characteristicUuid_;
- }
- /**
- * string characteristic_uuid = 5;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(characteristicUuid_);
- }
- /**
- * string characteristic_uuid = 5;
- * @param value The characteristicUuid to set.
- */
- private void setCharacteristicUuid(
- java.lang.String value) {
- value.getClass();
-
- characteristicUuid_ = value;
- }
- /**
- * string characteristic_uuid = 5;
- */
- private void clearCharacteristicUuid() {
-
- characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
- }
- /**
- * string characteristic_uuid = 5;
- * @param value The bytes for characteristicUuid to set.
- */
- private void setCharacteristicUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- characteristicUuid_ = value.toStringUtf8();
-
- }
-
- public static final int VALUE_FIELD_NUMBER = 6;
- private com.google.protobuf.ByteString value_;
- /**
- * bytes value = 6;
- * @return The value.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getValue() {
- return value_;
- }
- /**
- * bytes value = 6;
- * @param value The value to set.
- */
- private void setValue(com.google.protobuf.ByteString value) {
- value.getClass();
-
- value_ = value;
- }
- /**
- * bytes value = 6;
- */
- private void clearValue() {
-
- value_ = getDefaultInstance().getValue();
- }
-
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code WriteDescriptorRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:WriteDescriptorRequest)
- com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * string descriptor_uuid = 2;
- * @return The descriptorUuid.
- */
- @java.lang.Override
- public java.lang.String getDescriptorUuid() {
- return instance.getDescriptorUuid();
- }
- /**
- * string descriptor_uuid = 2;
- * @return The bytes for descriptorUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getDescriptorUuidBytes() {
- return instance.getDescriptorUuidBytes();
- }
- /**
- * string descriptor_uuid = 2;
- * @param value The descriptorUuid to set.
- * @return This builder for chaining.
- */
- public Builder setDescriptorUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setDescriptorUuid(value);
- return this;
- }
- /**
- * string descriptor_uuid = 2;
- * @return This builder for chaining.
- */
- public Builder clearDescriptorUuid() {
- copyOnWrite();
- instance.clearDescriptorUuid();
- 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) {
- copyOnWrite();
- instance.setDescriptorUuidBytes(value);
- return this;
- }
-
- /**
- * string service_uuid = 3;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return instance.getServiceUuid();
- }
- /**
- * string service_uuid = 3;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return instance.getServiceUuidBytes();
- }
- /**
- * string service_uuid = 3;
- * @param value The serviceUuid to set.
- * @return This builder for chaining.
- */
- public Builder setServiceUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setServiceUuid(value);
- return this;
- }
- /**
- * string service_uuid = 3;
- * @return This builder for chaining.
- */
- public Builder clearServiceUuid() {
- copyOnWrite();
- instance.clearServiceUuid();
- 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) {
- copyOnWrite();
- instance.setServiceUuidBytes(value);
- return this;
- }
-
- /**
- * string secondary_service_uuid = 4;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return instance.getSecondaryServiceUuid();
- }
- /**
- * string secondary_service_uuid = 4;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return instance.getSecondaryServiceUuidBytes();
- }
- /**
- * string secondary_service_uuid = 4;
- * @param value The secondaryServiceUuid to set.
- * @return This builder for chaining.
- */
- public Builder setSecondaryServiceUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setSecondaryServiceUuid(value);
- return this;
- }
- /**
- * string secondary_service_uuid = 4;
- * @return This builder for chaining.
- */
- public Builder clearSecondaryServiceUuid() {
- copyOnWrite();
- instance.clearSecondaryServiceUuid();
- 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) {
- copyOnWrite();
- instance.setSecondaryServiceUuidBytes(value);
- return this;
- }
-
- /**
- * string characteristic_uuid = 5;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return instance.getCharacteristicUuid();
- }
- /**
- * string characteristic_uuid = 5;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return instance.getCharacteristicUuidBytes();
- }
- /**
- * string characteristic_uuid = 5;
- * @param value The characteristicUuid to set.
- * @return This builder for chaining.
- */
- public Builder setCharacteristicUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setCharacteristicUuid(value);
- return this;
- }
- /**
- * string characteristic_uuid = 5;
- * @return This builder for chaining.
- */
- public Builder clearCharacteristicUuid() {
- copyOnWrite();
- instance.clearCharacteristicUuid();
- 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) {
- copyOnWrite();
- instance.setCharacteristicUuidBytes(value);
- return this;
- }
-
- /**
- * bytes value = 6;
- * @return The value.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString getValue() {
- return instance.getValue();
- }
- /**
- * bytes value = 6;
- * @param value The value to set.
- * @return This builder for chaining.
- */
- public Builder setValue(com.google.protobuf.ByteString value) {
- copyOnWrite();
- instance.setValue(value);
- return this;
- }
- /**
- * bytes value = 6;
- * @return This builder for chaining.
- */
- public Builder clearValue() {
- copyOnWrite();
- instance.clearValue();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:WriteDescriptorRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "descriptorUuid_",
- "serviceUuid_",
- "secondaryServiceUuid_",
- "characteristicUuid_",
- "value_",
- };
- java.lang.String info =
- "\u0000\u0006\u0000\u0000\u0001\u0006\u0006\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
- "\u0003\u0208\u0004\u0208\u0005\u0208\u0006\n";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser.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();
-
- /**
- * bool success = 2;
- * @return The success.
- */
- boolean getSuccess();
- }
- /**
- * Protobuf type {@code WriteDescriptorResponse}
- */
- public static final class WriteDescriptorResponse extends
- com.google.protobuf.GeneratedMessageLite<
- WriteDescriptorResponse, WriteDescriptorResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:WriteDescriptorResponse)
- WriteDescriptorResponseOrBuilder {
- private WriteDescriptorResponse() {
- }
- public static final int REQUEST_FIELD_NUMBER = 1;
- private com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest request_;
- /**
- * .WriteDescriptorRequest request = 1;
- */
- @java.lang.Override
- public boolean hasRequest() {
- return request_ != null;
- }
- /**
- * .WriteDescriptorRequest request = 1;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getRequest() {
- return request_ == null ? com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance() : request_;
- }
- /**
- * .WriteDescriptorRequest request = 1;
- */
- private void setRequest(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest value) {
- value.getClass();
- request_ = value;
-
- }
- /**
- * .WriteDescriptorRequest request = 1;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeRequest(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest value) {
- value.getClass();
- if (request_ != null &&
- request_ != com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance()) {
- request_ =
- com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.newBuilder(request_).mergeFrom(value).buildPartial();
- } else {
- request_ = value;
- }
-
- }
- /**
- * .WriteDescriptorRequest request = 1;
- */
- private void clearRequest() { request_ = null;
-
- }
-
- public static final int SUCCESS_FIELD_NUMBER = 2;
- private boolean success_;
- /**
- * bool success = 2;
- * @return The success.
- */
- @java.lang.Override
- public boolean getSuccess() {
- return success_;
- }
- /**
- * bool success = 2;
- * @param value The success to set.
- */
- private void setSuccess(boolean value) {
-
- success_ = value;
- }
- /**
- * bool success = 2;
- */
- private void clearSuccess() {
-
- success_ = false;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code WriteDescriptorResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:WriteDescriptorResponse)
- com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponseOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * .WriteDescriptorRequest request = 1;
- */
- @java.lang.Override
- public boolean hasRequest() {
- return instance.hasRequest();
- }
- /**
- * .WriteDescriptorRequest request = 1;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getRequest() {
- return instance.getRequest();
- }
- /**
- * .WriteDescriptorRequest request = 1;
- */
- public Builder setRequest(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest value) {
- copyOnWrite();
- instance.setRequest(value);
- return this;
- }
- /**
- * .WriteDescriptorRequest request = 1;
- */
- public Builder setRequest(
- com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder builderForValue) {
- copyOnWrite();
- instance.setRequest(builderForValue.build());
- return this;
- }
- /**
- * .WriteDescriptorRequest request = 1;
- */
- public Builder mergeRequest(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest value) {
- copyOnWrite();
- instance.mergeRequest(value);
- return this;
- }
- /**
- * .WriteDescriptorRequest request = 1;
- */
- public Builder clearRequest() { copyOnWrite();
- instance.clearRequest();
- return this;
- }
-
- /**
- * bool success = 2;
- * @return The success.
- */
- @java.lang.Override
- public boolean getSuccess() {
- return instance.getSuccess();
- }
- /**
- * bool success = 2;
- * @param value The success to set.
- * @return This builder for chaining.
- */
- public Builder setSuccess(boolean value) {
- copyOnWrite();
- instance.setSuccess(value);
- return this;
- }
- /**
- * bool success = 2;
- * @return This builder for chaining.
- */
- public Builder clearSuccess() {
- copyOnWrite();
- instance.clearSuccess();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:WriteDescriptorResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "request_",
- "success_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\t\u0002\u0007" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.GeneratedMessageLite<
- SetNotificationRequest, SetNotificationRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:SetNotificationRequest)
- SetNotificationRequestOrBuilder {
- private SetNotificationRequest() {
- remoteId_ = "";
- serviceUuid_ = "";
- secondaryServiceUuid_ = "";
- characteristicUuid_ = "";
- }
- public static final int REMOTE_ID_FIELD_NUMBER = 1;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int SERVICE_UUID_FIELD_NUMBER = 2;
- private java.lang.String serviceUuid_;
- /**
- * string service_uuid = 2;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return serviceUuid_;
- }
- /**
- * string service_uuid = 2;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(serviceUuid_);
- }
- /**
- * string service_uuid = 2;
- * @param value The serviceUuid to set.
- */
- private void setServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- serviceUuid_ = value;
- }
- /**
- * string service_uuid = 2;
- */
- private void clearServiceUuid() {
-
- serviceUuid_ = getDefaultInstance().getServiceUuid();
- }
- /**
- * string service_uuid = 2;
- * @param value The bytes for serviceUuid to set.
- */
- private void setServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- serviceUuid_ = value.toStringUtf8();
-
- }
-
- public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 3;
- private java.lang.String secondaryServiceUuid_;
- /**
- * string secondary_service_uuid = 3;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return secondaryServiceUuid_;
- }
- /**
- * string secondary_service_uuid = 3;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(secondaryServiceUuid_);
- }
- /**
- * string secondary_service_uuid = 3;
- * @param value The secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuid(
- java.lang.String value) {
- value.getClass();
-
- secondaryServiceUuid_ = value;
- }
- /**
- * string secondary_service_uuid = 3;
- */
- private void clearSecondaryServiceUuid() {
-
- secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid();
- }
- /**
- * string secondary_service_uuid = 3;
- * @param value The bytes for secondaryServiceUuid to set.
- */
- private void setSecondaryServiceUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- secondaryServiceUuid_ = value.toStringUtf8();
-
- }
-
- public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 4;
- private java.lang.String characteristicUuid_;
- /**
- * string characteristic_uuid = 4;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return characteristicUuid_;
- }
- /**
- * string characteristic_uuid = 4;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(characteristicUuid_);
- }
- /**
- * string characteristic_uuid = 4;
- * @param value The characteristicUuid to set.
- */
- private void setCharacteristicUuid(
- java.lang.String value) {
- value.getClass();
-
- characteristicUuid_ = value;
- }
- /**
- * string characteristic_uuid = 4;
- */
- private void clearCharacteristicUuid() {
-
- characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
- }
- /**
- * string characteristic_uuid = 4;
- * @param value The bytes for characteristicUuid to set.
- */
- private void setCharacteristicUuidBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- characteristicUuid_ = value.toStringUtf8();
-
- }
-
- public static final int ENABLE_FIELD_NUMBER = 5;
- private boolean enable_;
- /**
- * bool enable = 5;
- * @return The enable.
- */
- @java.lang.Override
- public boolean getEnable() {
- return enable_;
- }
- /**
- * bool enable = 5;
- * @param value The enable to set.
- */
- private void setEnable(boolean value) {
-
- enable_ = value;
- }
- /**
- * bool enable = 5;
- */
- private void clearEnable() {
-
- enable_ = false;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.SetNotificationRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code SetNotificationRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.SetNotificationRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:SetNotificationRequest)
- com.pauldemarco.flutter_blue.Protos.SetNotificationRequestOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * string service_uuid = 2;
- * @return The serviceUuid.
- */
- @java.lang.Override
- public java.lang.String getServiceUuid() {
- return instance.getServiceUuid();
- }
- /**
- * string service_uuid = 2;
- * @return The bytes for serviceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getServiceUuidBytes() {
- return instance.getServiceUuidBytes();
- }
- /**
- * string service_uuid = 2;
- * @param value The serviceUuid to set.
- * @return This builder for chaining.
- */
- public Builder setServiceUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setServiceUuid(value);
- return this;
- }
- /**
- * string service_uuid = 2;
- * @return This builder for chaining.
- */
- public Builder clearServiceUuid() {
- copyOnWrite();
- instance.clearServiceUuid();
- 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) {
- copyOnWrite();
- instance.setServiceUuidBytes(value);
- return this;
- }
-
- /**
- * string secondary_service_uuid = 3;
- * @return The secondaryServiceUuid.
- */
- @java.lang.Override
- public java.lang.String getSecondaryServiceUuid() {
- return instance.getSecondaryServiceUuid();
- }
- /**
- * string secondary_service_uuid = 3;
- * @return The bytes for secondaryServiceUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getSecondaryServiceUuidBytes() {
- return instance.getSecondaryServiceUuidBytes();
- }
- /**
- * string secondary_service_uuid = 3;
- * @param value The secondaryServiceUuid to set.
- * @return This builder for chaining.
- */
- public Builder setSecondaryServiceUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setSecondaryServiceUuid(value);
- return this;
- }
- /**
- * string secondary_service_uuid = 3;
- * @return This builder for chaining.
- */
- public Builder clearSecondaryServiceUuid() {
- copyOnWrite();
- instance.clearSecondaryServiceUuid();
- 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) {
- copyOnWrite();
- instance.setSecondaryServiceUuidBytes(value);
- return this;
- }
-
- /**
- * string characteristic_uuid = 4;
- * @return The characteristicUuid.
- */
- @java.lang.Override
- public java.lang.String getCharacteristicUuid() {
- return instance.getCharacteristicUuid();
- }
- /**
- * string characteristic_uuid = 4;
- * @return The bytes for characteristicUuid.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getCharacteristicUuidBytes() {
- return instance.getCharacteristicUuidBytes();
- }
- /**
- * string characteristic_uuid = 4;
- * @param value The characteristicUuid to set.
- * @return This builder for chaining.
- */
- public Builder setCharacteristicUuid(
- java.lang.String value) {
- copyOnWrite();
- instance.setCharacteristicUuid(value);
- return this;
- }
- /**
- * string characteristic_uuid = 4;
- * @return This builder for chaining.
- */
- public Builder clearCharacteristicUuid() {
- copyOnWrite();
- instance.clearCharacteristicUuid();
- 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) {
- copyOnWrite();
- instance.setCharacteristicUuidBytes(value);
- return this;
- }
-
- /**
- * bool enable = 5;
- * @return The enable.
- */
- @java.lang.Override
- public boolean getEnable() {
- return instance.getEnable();
- }
- /**
- * bool enable = 5;
- * @param value The enable to set.
- * @return This builder for chaining.
- */
- public Builder setEnable(boolean value) {
- copyOnWrite();
- instance.setEnable(value);
- return this;
- }
- /**
- * bool enable = 5;
- * @return This builder for chaining.
- */
- public Builder clearEnable() {
- copyOnWrite();
- instance.clearEnable();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:SetNotificationRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.SetNotificationRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "serviceUuid_",
- "secondaryServiceUuid_",
- "characteristicUuid_",
- "enable_",
- };
- java.lang.String info =
- "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
- "\u0003\u0208\u0004\u0208\u0005\u0007";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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();
-
- /**
- * bool success = 3;
- * @return The success.
- */
- boolean getSuccess();
- }
- /**
- * Protobuf type {@code SetNotificationResponse}
- */
- public static final class SetNotificationResponse extends
- com.google.protobuf.GeneratedMessageLite<
- SetNotificationResponse, SetNotificationResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:SetNotificationResponse)
- SetNotificationResponseOrBuilder {
- private SetNotificationResponse() {
- remoteId_ = "";
- }
- public static final int REMOTE_ID_FIELD_NUMBER = 1;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int CHARACTERISTIC_FIELD_NUMBER = 2;
- private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_;
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public boolean hasCharacteristic() {
- return characteristic_ != null;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
- return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- private void setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- value.getClass();
- characteristic_ = value;
-
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- value.getClass();
- if (characteristic_ != null &&
- characteristic_ != com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance()) {
- characteristic_ =
- com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.newBuilder(characteristic_).mergeFrom(value).buildPartial();
- } else {
- characteristic_ = value;
- }
-
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- private void clearCharacteristic() { characteristic_ = null;
-
- }
-
- public static final int SUCCESS_FIELD_NUMBER = 3;
- private boolean success_;
- /**
- * bool success = 3;
- * @return The success.
- */
- @java.lang.Override
- public boolean getSuccess() {
- return success_;
- }
- /**
- * bool success = 3;
- * @param value The success to set.
- */
- private void setSuccess(boolean value) {
-
- success_ = value;
- }
- /**
- * bool success = 3;
- */
- private void clearSuccess() {
-
- success_ = false;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.SetNotificationResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code SetNotificationResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.SetNotificationResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:SetNotificationResponse)
- com.pauldemarco.flutter_blue.Protos.SetNotificationResponseOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public boolean hasCharacteristic() {
- return instance.hasCharacteristic();
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
- return instance.getCharacteristic();
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- copyOnWrite();
- instance.setCharacteristic(value);
- return this;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder setCharacteristic(
- com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) {
- copyOnWrite();
- instance.setCharacteristic(builderForValue.build());
- return this;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- copyOnWrite();
- instance.mergeCharacteristic(value);
- return this;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder clearCharacteristic() { copyOnWrite();
- instance.clearCharacteristic();
- return this;
- }
-
- /**
- * bool success = 3;
- * @return The success.
- */
- @java.lang.Override
- public boolean getSuccess() {
- return instance.getSuccess();
- }
- /**
- * bool success = 3;
- * @param value The success to set.
- * @return This builder for chaining.
- */
- public Builder setSuccess(boolean value) {
- copyOnWrite();
- instance.setSuccess(value);
- return this;
- }
- /**
- * bool success = 3;
- * @return This builder for chaining.
- */
- public Builder clearSuccess() {
- copyOnWrite();
- instance.clearSuccess();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:SetNotificationResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.SetNotificationResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "characteristic_",
- "success_",
- };
- java.lang.String info =
- "\u0000\u0003\u0000\u0000\u0001\u0003\u0003\u0000\u0000\u0000\u0001\u0208\u0002\t" +
- "\u0003\u0007";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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();
- }
- /**
- * Protobuf type {@code OnCharacteristicChanged}
- */
- public static final class OnCharacteristicChanged extends
- com.google.protobuf.GeneratedMessageLite<
- OnCharacteristicChanged, OnCharacteristicChanged.Builder> implements
- // @@protoc_insertion_point(message_implements:OnCharacteristicChanged)
- OnCharacteristicChangedOrBuilder {
- private OnCharacteristicChanged() {
- remoteId_ = "";
- }
- public static final int REMOTE_ID_FIELD_NUMBER = 1;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int CHARACTERISTIC_FIELD_NUMBER = 2;
- private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_;
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public boolean hasCharacteristic() {
- return characteristic_ != null;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
- return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- private void setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- value.getClass();
- characteristic_ = value;
-
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.SuppressWarnings({"ReferenceEquality"})
- private void mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- value.getClass();
- if (characteristic_ != null &&
- characteristic_ != com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance()) {
- characteristic_ =
- com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.newBuilder(characteristic_).mergeFrom(value).buildPartial();
- } else {
- characteristic_ = value;
- }
-
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- private void clearCharacteristic() { characteristic_ = null;
-
- }
-
- public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code OnCharacteristicChanged}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged, Builder> implements
- // @@protoc_insertion_point(builder_implements:OnCharacteristicChanged)
- com.pauldemarco.flutter_blue.Protos.OnCharacteristicChangedOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public boolean hasCharacteristic() {
- return instance.hasCharacteristic();
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
- return instance.getCharacteristic();
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- copyOnWrite();
- instance.setCharacteristic(value);
- return this;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder setCharacteristic(
- com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) {
- copyOnWrite();
- instance.setCharacteristic(builderForValue.build());
- return this;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
- copyOnWrite();
- instance.mergeCharacteristic(value);
- return this;
- }
- /**
- * .BluetoothCharacteristic characteristic = 2;
- */
- public Builder clearCharacteristic() { copyOnWrite();
- instance.clearCharacteristic();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:OnCharacteristicChanged)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "characteristic_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\t" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.GeneratedMessageLite<
- DeviceStateResponse, DeviceStateResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:DeviceStateResponse)
- DeviceStateResponseOrBuilder {
- private DeviceStateResponse() {
- remoteId_ = "";
- }
- /**
- * Protobuf enum {@code DeviceStateResponse.BluetoothDeviceState}
- */
- public enum BluetoothDeviceState
- implements com.google.protobuf.Internal.EnumLite {
- /**
- * 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;
-
-
- @java.lang.Override
- 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 number of the enum to look for.
- * @return The enum associated with the given number.
- * @deprecated Use {@link #forNumber(int)} instead.
- */
- @java.lang.Deprecated
- public static BluetoothDeviceState valueOf(int value) {
- return forNumber(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.EnumLiteMapstring remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- 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.
- */
- @java.lang.Override
- public int getStateValue() {
- return state_;
- }
- /**
- * .DeviceStateResponse.BluetoothDeviceState state = 2;
- * @return The state.
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState getState() {
- com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState result = com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.forNumber(state_);
- return result == null ? com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.UNRECOGNIZED : result;
- }
- /**
- * .DeviceStateResponse.BluetoothDeviceState state = 2;
- * @param value The enum numeric value on the wire for state to set.
- */
- private void setStateValue(int value) {
- state_ = value;
- }
- /**
- * .DeviceStateResponse.BluetoothDeviceState state = 2;
- * @param value The state to set.
- */
- private void setState(com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState value) {
- state_ = value.getNumber();
-
- }
- /**
- * .DeviceStateResponse.BluetoothDeviceState state = 2;
- */
- private void clearState() {
-
- state_ = 0;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.DeviceStateResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code DeviceStateResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.DeviceStateResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:DeviceStateResponse)
- com.pauldemarco.flutter_blue.Protos.DeviceStateResponseOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * .DeviceStateResponse.BluetoothDeviceState state = 2;
- * @return The enum numeric value on the wire for state.
- */
- @java.lang.Override
- public int getStateValue() {
- return instance.getStateValue();
- }
- /**
- * .DeviceStateResponse.BluetoothDeviceState state = 2;
- * @param value The state to set.
- * @return This builder for chaining.
- */
- public Builder setStateValue(int value) {
- copyOnWrite();
- instance.setStateValue(value);
- return this;
- }
- /**
- * .DeviceStateResponse.BluetoothDeviceState state = 2;
- * @return The state.
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState getState() {
- return instance.getState();
- }
- /**
- * .DeviceStateResponse.BluetoothDeviceState state = 2;
- * @param value The enum numeric value on the wire for state to set.
- * @return This builder for chaining.
- */
- public Builder setState(com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState value) {
- copyOnWrite();
- instance.setState(value);
- return this;
- }
- /**
- * .DeviceStateResponse.BluetoothDeviceState state = 2;
- * @return This builder for chaining.
- */
- public Builder clearState() {
- copyOnWrite();
- instance.clearState();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:DeviceStateResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.DeviceStateResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "state_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\f" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserrepeated .BluetoothDevice devices = 1;
- */
- java.util.Listrepeated .BluetoothDevice devices = 1;
- */
- com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevices(int index);
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- int getDevicesCount();
- }
- /**
- * Protobuf type {@code ConnectedDevicesResponse}
- */
- public static final class ConnectedDevicesResponse extends
- com.google.protobuf.GeneratedMessageLite<
- ConnectedDevicesResponse, ConnectedDevicesResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:ConnectedDevicesResponse)
- ConnectedDevicesResponseOrBuilder {
- private ConnectedDevicesResponse() {
- devices_ = emptyProtobufList();
- }
- public static final int DEVICES_FIELD_NUMBER = 1;
- private com.google.protobuf.Internal.ProtobufListrepeated .BluetoothDevice devices = 1;
- */
- @java.lang.Override
- public java.util.Listrepeated .BluetoothDevice devices = 1;
- */
- public java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder>
- getDevicesOrBuilderList() {
- return devices_;
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- @java.lang.Override
- public int getDevicesCount() {
- return devices_.size();
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- @java.lang.Override
- 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 void ensureDevicesIsMutable() {
- if (!devices_.isModifiable()) {
- devices_ =
- com.google.protobuf.GeneratedMessageLite.mutableCopy(devices_);
- }
- }
-
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- private void setDevices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
- value.getClass();
- ensureDevicesIsMutable();
- devices_.set(index, value);
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- private void addDevices(com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
- value.getClass();
- ensureDevicesIsMutable();
- devices_.add(value);
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- private void addDevices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
- value.getClass();
- ensureDevicesIsMutable();
- devices_.add(index, value);
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- private void addAllDevices(
- java.lang.Iterable extends com.pauldemarco.flutter_blue.Protos.BluetoothDevice> values) {
- ensureDevicesIsMutable();
- com.google.protobuf.AbstractMessageLite.addAll(
- values, devices_);
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- private void clearDevices() {
- devices_ = emptyProtobufList();
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- private void removeDevices(int index) {
- ensureDevicesIsMutable();
- devices_.remove(index);
- }
-
- public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code ConnectedDevicesResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:ConnectedDevicesResponse)
- com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponseOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- @java.lang.Override
- public java.util.Listrepeated .BluetoothDevice devices = 1;
- */
- @java.lang.Override
- public int getDevicesCount() {
- return instance.getDevicesCount();
- }/**
- * repeated .BluetoothDevice devices = 1;
- */
- @java.lang.Override
- public com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevices(int index) {
- return instance.getDevices(index);
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- public Builder setDevices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
- copyOnWrite();
- instance.setDevices(index, value);
- return this;
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- public Builder setDevices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder builderForValue) {
- copyOnWrite();
- instance.setDevices(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- public Builder addDevices(com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
- copyOnWrite();
- instance.addDevices(value);
- return this;
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- public Builder addDevices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
- copyOnWrite();
- instance.addDevices(index, value);
- return this;
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- public Builder addDevices(
- com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder builderForValue) {
- copyOnWrite();
- instance.addDevices(builderForValue.build());
- return this;
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- public Builder addDevices(
- int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder builderForValue) {
- copyOnWrite();
- instance.addDevices(index,
- builderForValue.build());
- return this;
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- public Builder addAllDevices(
- java.lang.Iterable extends com.pauldemarco.flutter_blue.Protos.BluetoothDevice> values) {
- copyOnWrite();
- instance.addAllDevices(values);
- return this;
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- public Builder clearDevices() {
- copyOnWrite();
- instance.clearDevices();
- return this;
- }
- /**
- * repeated .BluetoothDevice devices = 1;
- */
- public Builder removeDevices(int index) {
- copyOnWrite();
- instance.removeDevices(index);
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:ConnectedDevicesResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "devices_",
- com.pauldemarco.flutter_blue.Protos.BluetoothDevice.class,
- };
- java.lang.String info =
- "\u0000\u0001\u0000\u0000\u0001\u0001\u0001\u0000\u0001\u0000\u0001\u001b";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.GeneratedMessageLite<
- MtuSizeRequest, MtuSizeRequest.Builder> implements
- // @@protoc_insertion_point(message_implements:MtuSizeRequest)
- MtuSizeRequestOrBuilder {
- private MtuSizeRequest() {
- remoteId_ = "";
- }
- public static final int REMOTE_ID_FIELD_NUMBER = 1;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int MTU_FIELD_NUMBER = 2;
- private int mtu_;
- /**
- * uint32 mtu = 2;
- * @return The mtu.
- */
- @java.lang.Override
- public int getMtu() {
- return mtu_;
- }
- /**
- * uint32 mtu = 2;
- * @param value The mtu to set.
- */
- private void setMtu(int value) {
-
- mtu_ = value;
- }
- /**
- * uint32 mtu = 2;
- */
- private void clearMtu() {
-
- mtu_ = 0;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.MtuSizeRequest prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code MtuSizeRequest}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.MtuSizeRequest, Builder> implements
- // @@protoc_insertion_point(builder_implements:MtuSizeRequest)
- com.pauldemarco.flutter_blue.Protos.MtuSizeRequestOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * uint32 mtu = 2;
- * @return The mtu.
- */
- @java.lang.Override
- public int getMtu() {
- return instance.getMtu();
- }
- /**
- * uint32 mtu = 2;
- * @param value The mtu to set.
- * @return This builder for chaining.
- */
- public Builder setMtu(int value) {
- copyOnWrite();
- instance.setMtu(value);
- return this;
- }
- /**
- * uint32 mtu = 2;
- * @return This builder for chaining.
- */
- public Builder clearMtu() {
- copyOnWrite();
- instance.clearMtu();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:MtuSizeRequest)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.MtuSizeRequest();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "mtu_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\u000b" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parserstring 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.GeneratedMessageLite<
- MtuSizeResponse, MtuSizeResponse.Builder> implements
- // @@protoc_insertion_point(message_implements:MtuSizeResponse)
- MtuSizeResponseOrBuilder {
- private MtuSizeResponse() {
- remoteId_ = "";
- }
- public static final int REMOTE_ID_FIELD_NUMBER = 1;
- private java.lang.String remoteId_;
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return remoteId_;
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return com.google.protobuf.ByteString.copyFromUtf8(remoteId_);
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- */
- private void setRemoteId(
- java.lang.String value) {
- value.getClass();
-
- remoteId_ = value;
- }
- /**
- * string remote_id = 1;
- */
- private void clearRemoteId() {
-
- remoteId_ = getDefaultInstance().getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @param value The bytes for remoteId to set.
- */
- private void setRemoteIdBytes(
- com.google.protobuf.ByteString value) {
- checkByteStringIsUtf8(value);
- remoteId_ = value.toStringUtf8();
-
- }
-
- public static final int MTU_FIELD_NUMBER = 2;
- private int mtu_;
- /**
- * uint32 mtu = 2;
- * @return The mtu.
- */
- @java.lang.Override
- public int getMtu() {
- return mtu_;
- }
- /**
- * uint32 mtu = 2;
- * @param value The mtu to set.
- */
- private void setMtu(int value) {
-
- mtu_ = value;
- }
- /**
- * uint32 mtu = 2;
- */
- private void clearMtu() {
-
- mtu_ = 0;
- }
-
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
- java.nio.ByteBuffer data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
- com.google.protobuf.ByteString data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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 com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(byte[] data)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
- byte[] data,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws com.google.protobuf.InvalidProtocolBufferException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, data, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(java.io.InputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseDelimitedFrom(java.io.InputStream input)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseDelimitedFrom(
- java.io.InputStream input,
- com.google.protobuf.ExtensionRegistryLite extensionRegistry)
- throws java.io.IOException {
- return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
- }
- public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
- com.google.protobuf.CodedInputStream input)
- throws java.io.IOException {
- return com.google.protobuf.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, 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.GeneratedMessageLite.parseFrom(
- DEFAULT_INSTANCE, input, extensionRegistry);
- }
-
- public static Builder newBuilder() {
- return (Builder) DEFAULT_INSTANCE.createBuilder();
- }
- public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.MtuSizeResponse prototype) {
- return (Builder) DEFAULT_INSTANCE.createBuilder(prototype);
- }
-
- /**
- * Protobuf type {@code MtuSizeResponse}
- */
- public static final class Builder extends
- com.google.protobuf.GeneratedMessageLite.Builder<
- com.pauldemarco.flutter_blue.Protos.MtuSizeResponse, Builder> implements
- // @@protoc_insertion_point(builder_implements:MtuSizeResponse)
- com.pauldemarco.flutter_blue.Protos.MtuSizeResponseOrBuilder {
- // Construct using com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.newBuilder()
- private Builder() {
- super(DEFAULT_INSTANCE);
- }
-
-
- /**
- * string remote_id = 1;
- * @return The remoteId.
- */
- @java.lang.Override
- public java.lang.String getRemoteId() {
- return instance.getRemoteId();
- }
- /**
- * string remote_id = 1;
- * @return The bytes for remoteId.
- */
- @java.lang.Override
- public com.google.protobuf.ByteString
- getRemoteIdBytes() {
- return instance.getRemoteIdBytes();
- }
- /**
- * string remote_id = 1;
- * @param value The remoteId to set.
- * @return This builder for chaining.
- */
- public Builder setRemoteId(
- java.lang.String value) {
- copyOnWrite();
- instance.setRemoteId(value);
- return this;
- }
- /**
- * string remote_id = 1;
- * @return This builder for chaining.
- */
- public Builder clearRemoteId() {
- copyOnWrite();
- instance.clearRemoteId();
- 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) {
- copyOnWrite();
- instance.setRemoteIdBytes(value);
- return this;
- }
-
- /**
- * uint32 mtu = 2;
- * @return The mtu.
- */
- @java.lang.Override
- public int getMtu() {
- return instance.getMtu();
- }
- /**
- * uint32 mtu = 2;
- * @param value The mtu to set.
- * @return This builder for chaining.
- */
- public Builder setMtu(int value) {
- copyOnWrite();
- instance.setMtu(value);
- return this;
- }
- /**
- * uint32 mtu = 2;
- * @return This builder for chaining.
- */
- public Builder clearMtu() {
- copyOnWrite();
- instance.clearMtu();
- return this;
- }
-
- // @@protoc_insertion_point(builder_scope:MtuSizeResponse)
- }
- @java.lang.Override
- @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
- protected final java.lang.Object dynamicMethod(
- com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
- java.lang.Object arg0, java.lang.Object arg1) {
- switch (method) {
- case NEW_MUTABLE_INSTANCE: {
- return new com.pauldemarco.flutter_blue.Protos.MtuSizeResponse();
- }
- case NEW_BUILDER: {
- return new Builder();
- }
- case BUILD_MESSAGE_INFO: {
- java.lang.Object[] objects = new java.lang.Object[] {
- "remoteId_",
- "mtu_",
- };
- java.lang.String info =
- "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001\u0208\u0002\u000b" +
- "";
- return newMessageInfo(DEFAULT_INSTANCE, info, objects);
- }
- // fall through
- case GET_DEFAULT_INSTANCE: {
- return DEFAULT_INSTANCE;
- }
- case GET_PARSER: {
- com.google.protobuf.Parser