getDescriptorsList() {
+ if (descriptorsBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(descriptors_);
+ } else {
+ return descriptorsBuilder_.getMessageList();
+ }
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public int getDescriptorsCount() {
+ if (descriptorsBuilder_ == null) {
+ return descriptors_.size();
+ } else {
+ return descriptorsBuilder_.getCount();
+ }
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor getDescriptors(int index) {
+ if (descriptorsBuilder_ == null) {
+ return descriptors_.get(index);
+ } else {
+ return descriptorsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public Builder setDescriptors(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor value) {
+ if (descriptorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDescriptorsIsMutable();
+ descriptors_.set(index, value);
+ onChanged();
+ } else {
+ descriptorsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public Builder setDescriptors(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder builderForValue) {
+ if (descriptorsBuilder_ == null) {
+ ensureDescriptorsIsMutable();
+ descriptors_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ descriptorsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public Builder addDescriptors(com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor value) {
+ if (descriptorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDescriptorsIsMutable();
+ descriptors_.add(value);
+ onChanged();
+ } else {
+ descriptorsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public Builder addDescriptors(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor value) {
+ if (descriptorsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDescriptorsIsMutable();
+ descriptors_.add(index, value);
+ onChanged();
+ } else {
+ descriptorsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public Builder addDescriptors(
+ com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder builderForValue) {
+ if (descriptorsBuilder_ == null) {
+ ensureDescriptorsIsMutable();
+ descriptors_.add(builderForValue.build());
+ onChanged();
+ } else {
+ descriptorsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public Builder addDescriptors(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder builderForValue) {
+ if (descriptorsBuilder_ == null) {
+ ensureDescriptorsIsMutable();
+ descriptors_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ descriptorsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public Builder addAllDescriptors(
+ java.lang.Iterable extends com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor> values) {
+ if (descriptorsBuilder_ == null) {
+ ensureDescriptorsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, descriptors_);
+ onChanged();
+ } else {
+ descriptorsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public Builder clearDescriptors() {
+ if (descriptorsBuilder_ == null) {
+ descriptors_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ descriptorsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public Builder removeDescriptors(int index) {
+ if (descriptorsBuilder_ == null) {
+ ensureDescriptorsIsMutable();
+ descriptors_.remove(index);
+ onChanged();
+ } else {
+ descriptorsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder getDescriptorsBuilder(
+ int index) {
+ return getDescriptorsFieldBuilder().getBuilder(index);
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder getDescriptorsOrBuilder(
+ int index) {
+ if (descriptorsBuilder_ == null) {
+ return descriptors_.get(index); } else {
+ return descriptorsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder>
+ getDescriptorsOrBuilderList() {
+ if (descriptorsBuilder_ != null) {
+ return descriptorsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(descriptors_);
+ }
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder addDescriptorsBuilder() {
+ return getDescriptorsFieldBuilder().addBuilder(
+ com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.getDefaultInstance());
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder addDescriptorsBuilder(
+ int index) {
+ return getDescriptorsFieldBuilder().addBuilder(
+ index, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.getDefaultInstance());
+ }
+ /**
+ *
+ * A list of descriptors that have been discovered in this characteristic.
+ *
+ *
+ * repeated .BluetoothDescriptor descriptors = 5;
+ */
+ public java.util.List
+ getDescriptorsBuilderList() {
+ return getDescriptorsFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder>
+ getDescriptorsFieldBuilder() {
+ if (descriptorsBuilder_ == null) {
+ descriptorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder>(
+ descriptors_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ descriptors_ = null;
+ }
+ return descriptorsBuilder_;
+ }
+
+ private com.pauldemarco.flutter_blue.Protos.CharacteristicProperties properties_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties, com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder, com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder> propertiesBuilder_;
+ /**
+ *
+ * The properties of the characteristic.
+ *
+ *
+ * .CharacteristicProperties properties = 6;
+ * @return Whether the properties field is set.
+ */
+ public boolean hasProperties() {
+ return propertiesBuilder_ != null || properties_ != null;
+ }
+ /**
+ *
+ * The properties of the characteristic.
+ *
+ *
+ * .CharacteristicProperties properties = 6;
+ * @return The properties.
+ */
+ public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties getProperties() {
+ if (propertiesBuilder_ == null) {
+ return properties_ == null ? com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.getDefaultInstance() : properties_;
+ } else {
+ return propertiesBuilder_.getMessage();
+ }
+ }
+ /**
+ *
+ * The properties of the characteristic.
+ *
+ *
+ * .CharacteristicProperties properties = 6;
+ */
+ public Builder setProperties(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties value) {
+ if (propertiesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ properties_ = value;
+ onChanged();
+ } else {
+ propertiesBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ * The properties of the characteristic.
+ *
+ *
+ * .CharacteristicProperties properties = 6;
+ */
+ public Builder setProperties(
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder builderForValue) {
+ if (propertiesBuilder_ == null) {
+ properties_ = builderForValue.build();
+ onChanged();
+ } else {
+ propertiesBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ *
+ * The properties of the characteristic.
+ *
+ *
+ * .CharacteristicProperties properties = 6;
+ */
+ public Builder mergeProperties(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties value) {
+ if (propertiesBuilder_ == null) {
+ if (properties_ != null) {
+ properties_ =
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.newBuilder(properties_).mergeFrom(value).buildPartial();
+ } else {
+ properties_ = value;
+ }
+ onChanged();
+ } else {
+ propertiesBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ *
+ * The properties of the characteristic.
+ *
+ *
+ * .CharacteristicProperties properties = 6;
+ */
+ public Builder clearProperties() {
+ if (propertiesBuilder_ == null) {
+ properties_ = null;
+ onChanged();
+ } else {
+ properties_ = null;
+ propertiesBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ *
+ * The properties of the characteristic.
+ *
+ *
+ * .CharacteristicProperties properties = 6;
+ */
+ public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder getPropertiesBuilder() {
+
+ onChanged();
+ return getPropertiesFieldBuilder().getBuilder();
+ }
+ /**
+ *
+ * The properties of the characteristic.
+ *
+ *
+ * .CharacteristicProperties properties = 6;
+ */
+ public com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder getPropertiesOrBuilder() {
+ if (propertiesBuilder_ != null) {
+ return propertiesBuilder_.getMessageOrBuilder();
+ } else {
+ return properties_ == null ?
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.getDefaultInstance() : properties_;
+ }
+ }
+ /**
+ *
+ * The properties of the characteristic.
+ *
+ *
+ * .CharacteristicProperties properties = 6;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties, com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder, com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder>
+ getPropertiesFieldBuilder() {
+ if (propertiesBuilder_ == null) {
+ propertiesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties, com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder, com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder>(
+ getProperties(),
+ getParentForChildren(),
+ isClean());
+ properties_ = null;
+ }
+ return propertiesBuilder_;
+ }
+
+ private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * bytes value = 7;
+ * @return The value.
+ */
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
+ /**
+ * bytes value = 7;
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes value = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:BluetoothCharacteristic)
+ }
+
+ // @@protoc_insertion_point(class_scope:BluetoothCharacteristic)
+ private static final com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BluetoothCharacteristic parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new BluetoothCharacteristic(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface BluetoothDescriptorOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:BluetoothDescriptor)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string uuid = 1;
+ * @return The uuid.
+ */
+ java.lang.String getUuid();
+ /**
+ * string uuid = 1;
+ * @return The bytes for uuid.
+ */
+ com.google.protobuf.ByteString
+ getUuidBytes();
+
+ /**
+ * string remote_id = 2;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 2;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ *
+ * The service that this descriptor belongs to.
+ *
+ *
+ * string serviceUuid = 3;
+ * @return The serviceUuid.
+ */
+ java.lang.String getServiceUuid();
+ /**
+ *
+ * The service that this descriptor belongs to.
+ *
+ *
+ * string serviceUuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ com.google.protobuf.ByteString
+ getServiceUuidBytes();
+
+ /**
+ *
+ * The characteristic that this descriptor belongs to.
+ *
+ *
+ * string characteristicUuid = 4;
+ * @return The characteristicUuid.
+ */
+ java.lang.String getCharacteristicUuid();
+ /**
+ *
+ * The characteristic that this descriptor belongs to.
+ *
+ *
+ * string characteristicUuid = 4;
+ * @return The bytes for characteristicUuid.
+ */
+ com.google.protobuf.ByteString
+ getCharacteristicUuidBytes();
+
+ /**
+ * bytes value = 5;
+ * @return The value.
+ */
+ com.google.protobuf.ByteString getValue();
+ }
+ /**
+ * Protobuf type {@code BluetoothDescriptor}
+ */
+ public static final class BluetoothDescriptor extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:BluetoothDescriptor)
+ BluetoothDescriptorOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BluetoothDescriptor.newBuilder() to construct.
+ private BluetoothDescriptor(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BluetoothDescriptor() {
+ uuid_ = "";
+ remoteId_ = "";
+ serviceUuid_ = "";
+ characteristicUuid_ = "";
+ value_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BluetoothDescriptor();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BluetoothDescriptor(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ uuid_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ serviceUuid_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ characteristicUuid_ = s;
+ break;
+ }
+ case 42: {
+
+ value_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDescriptor_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDescriptor_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.class, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder.class);
+ }
+
+ public static final int UUID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object uuid_;
+ /**
+ * string uuid = 1;
+ * @return The uuid.
+ */
+ public java.lang.String getUuid() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string uuid = 1;
+ * @return The bytes for uuid.
+ */
+ public com.google.protobuf.ByteString
+ getUuidBytes() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 2;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 2;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICEUUID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object serviceUuid_;
+ /**
+ *
+ * The service that this descriptor belongs to.
+ *
+ *
+ * string serviceUuid = 3;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ * The service that this descriptor belongs to.
+ *
+ *
+ * string serviceUuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHARACTERISTICUUID_FIELD_NUMBER = 4;
+ private volatile java.lang.Object characteristicUuid_;
+ /**
+ *
+ * The characteristic that this descriptor belongs to.
+ *
+ *
+ * string characteristicUuid = 4;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ *
+ * The characteristic that this descriptor belongs to.
+ *
+ *
+ * string characteristicUuid = 4;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 5;
+ private com.google.protobuf.ByteString value_;
+ /**
+ * bytes value = 5;
+ * @return The value.
+ */
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, uuid_);
+ }
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, remoteId_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceUuid_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, characteristicUuid_);
+ }
+ if (!value_.isEmpty()) {
+ output.writeBytes(5, value_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, uuid_);
+ }
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, remoteId_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceUuid_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, characteristicUuid_);
+ }
+ if (!value_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(5, value_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor other = (com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor) obj;
+
+ if (!getUuid()
+ .equals(other.getUuid())) return false;
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (!getServiceUuid()
+ .equals(other.getServiceUuid())) return false;
+ if (!getCharacteristicUuid()
+ .equals(other.getCharacteristicUuid())) return false;
+ if (!getValue()
+ .equals(other.getValue())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getUuid().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ hash = (37 * hash) + SERVICEUUID_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceUuid().hashCode();
+ hash = (37 * hash) + CHARACTERISTICUUID_FIELD_NUMBER;
+ hash = (53 * hash) + getCharacteristicUuid().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code BluetoothDescriptor}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:BluetoothDescriptor)
+ com.pauldemarco.flutter_blue.Protos.BluetoothDescriptorOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDescriptor_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDescriptor_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.class, com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ uuid_ = "";
+
+ remoteId_ = "";
+
+ serviceUuid_ = "";
+
+ characteristicUuid_ = "";
+
+ value_ = com.google.protobuf.ByteString.EMPTY;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_BluetoothDescriptor_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor build() {
+ com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor result = new com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor(this);
+ result.uuid_ = uuid_;
+ result.remoteId_ = remoteId_;
+ result.serviceUuid_ = serviceUuid_;
+ result.characteristicUuid_ = characteristicUuid_;
+ result.value_ = value_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor.getDefaultInstance()) return this;
+ if (!other.getUuid().isEmpty()) {
+ uuid_ = other.uuid_;
+ onChanged();
+ }
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (!other.getServiceUuid().isEmpty()) {
+ serviceUuid_ = other.serviceUuid_;
+ onChanged();
+ }
+ if (!other.getCharacteristicUuid().isEmpty()) {
+ characteristicUuid_ = other.characteristicUuid_;
+ onChanged();
+ }
+ if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
+ setValue(other.getValue());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object uuid_ = "";
+ /**
+ * string uuid = 1;
+ * @return The uuid.
+ */
+ public java.lang.String getUuid() {
+ java.lang.Object ref = uuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ uuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string uuid = 1;
+ * @return The bytes for uuid.
+ */
+ public com.google.protobuf.ByteString
+ getUuidBytes() {
+ java.lang.Object ref = uuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ uuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string uuid = 1;
+ * @param value The uuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ uuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string uuid = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearUuid() {
+
+ uuid_ = getDefaultInstance().getUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string uuid = 1;
+ * @param value The bytes for uuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ uuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 2;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 2;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 2;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 2;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceUuid_ = "";
+ /**
+ *
+ * The service that this descriptor belongs to.
+ *
+ *
+ * string serviceUuid = 3;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ * The service that this descriptor belongs to.
+ *
+ *
+ * string serviceUuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ * The service that this descriptor belongs to.
+ *
+ *
+ * string serviceUuid = 3;
+ * @param value The serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * The service that this descriptor belongs to.
+ *
+ *
+ * string serviceUuid = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceUuid() {
+
+ serviceUuid_ = getDefaultInstance().getServiceUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * The service that this descriptor belongs to.
+ *
+ *
+ * string serviceUuid = 3;
+ * @param value The bytes for serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object characteristicUuid_ = "";
+ /**
+ *
+ * The characteristic that this descriptor belongs to.
+ *
+ *
+ * string characteristicUuid = 4;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ *
+ * The characteristic that this descriptor belongs to.
+ *
+ *
+ * string characteristicUuid = 4;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ *
+ * The characteristic that this descriptor belongs to.
+ *
+ *
+ * string characteristicUuid = 4;
+ * @param value The characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * The characteristic that this descriptor belongs to.
+ *
+ *
+ * string characteristicUuid = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearCharacteristicUuid() {
+
+ characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ * The characteristic that this descriptor belongs to.
+ *
+ *
+ * string characteristicUuid = 4;
+ * @param value The bytes for characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * bytes value = 5;
+ * @return The value.
+ */
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
+ /**
+ * bytes value = 5;
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes value = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:BluetoothDescriptor)
+ }
+
+ // @@protoc_insertion_point(class_scope:BluetoothDescriptor)
+ private static final com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public BluetoothDescriptor parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new BluetoothDescriptor(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDescriptor getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface CharacteristicPropertiesOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:CharacteristicProperties)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * bool broadcast = 1;
+ * @return The broadcast.
+ */
+ boolean getBroadcast();
+
+ /**
+ * bool read = 2;
+ * @return The read.
+ */
+ boolean getRead();
+
+ /**
+ * bool write_without_response = 3;
+ * @return The writeWithoutResponse.
+ */
+ boolean getWriteWithoutResponse();
+
+ /**
+ * bool write = 4;
+ * @return The write.
+ */
+ boolean getWrite();
+
+ /**
+ * bool notify = 5;
+ * @return The notify.
+ */
+ boolean getNotify();
+
+ /**
+ * bool indicate = 6;
+ * @return The indicate.
+ */
+ boolean getIndicate();
+
+ /**
+ * bool authenticated_signed_writes = 7;
+ * @return The authenticatedSignedWrites.
+ */
+ boolean getAuthenticatedSignedWrites();
+
+ /**
+ * bool extended_properties = 8;
+ * @return The extendedProperties.
+ */
+ boolean getExtendedProperties();
+
+ /**
+ * bool notify_encryption_required = 9;
+ * @return The notifyEncryptionRequired.
+ */
+ boolean getNotifyEncryptionRequired();
+
+ /**
+ * bool indicate_encryption_required = 10;
+ * @return The indicateEncryptionRequired.
+ */
+ boolean getIndicateEncryptionRequired();
+ }
+ /**
+ * Protobuf type {@code CharacteristicProperties}
+ */
+ public static final class CharacteristicProperties extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:CharacteristicProperties)
+ CharacteristicPropertiesOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CharacteristicProperties.newBuilder() to construct.
+ private CharacteristicProperties(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private CharacteristicProperties() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CharacteristicProperties();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CharacteristicProperties(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ broadcast_ = input.readBool();
+ break;
+ }
+ case 16: {
+
+ read_ = input.readBool();
+ break;
+ }
+ case 24: {
+
+ writeWithoutResponse_ = input.readBool();
+ break;
+ }
+ case 32: {
+
+ write_ = input.readBool();
+ break;
+ }
+ case 40: {
+
+ notify_ = input.readBool();
+ break;
+ }
+ case 48: {
+
+ indicate_ = input.readBool();
+ break;
+ }
+ case 56: {
+
+ authenticatedSignedWrites_ = input.readBool();
+ break;
+ }
+ case 64: {
+
+ extendedProperties_ = input.readBool();
+ break;
+ }
+ case 72: {
+
+ notifyEncryptionRequired_ = input.readBool();
+ break;
+ }
+ case 80: {
+
+ indicateEncryptionRequired_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_CharacteristicProperties_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_CharacteristicProperties_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.class, com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder.class);
+ }
+
+ public static final int BROADCAST_FIELD_NUMBER = 1;
+ private boolean broadcast_;
+ /**
+ * bool broadcast = 1;
+ * @return The broadcast.
+ */
+ public boolean getBroadcast() {
+ return broadcast_;
+ }
+
+ public static final int READ_FIELD_NUMBER = 2;
+ private boolean read_;
+ /**
+ * bool read = 2;
+ * @return The read.
+ */
+ public boolean getRead() {
+ return read_;
+ }
+
+ public static final int WRITE_WITHOUT_RESPONSE_FIELD_NUMBER = 3;
+ private boolean writeWithoutResponse_;
+ /**
+ * bool write_without_response = 3;
+ * @return The writeWithoutResponse.
+ */
+ public boolean getWriteWithoutResponse() {
+ return writeWithoutResponse_;
+ }
+
+ public static final int WRITE_FIELD_NUMBER = 4;
+ private boolean write_;
+ /**
+ * bool write = 4;
+ * @return The write.
+ */
+ public boolean getWrite() {
+ return write_;
+ }
+
+ public static final int NOTIFY_FIELD_NUMBER = 5;
+ private boolean notify_;
+ /**
+ * bool notify = 5;
+ * @return The notify.
+ */
+ public boolean getNotify() {
+ return notify_;
+ }
+
+ public static final int INDICATE_FIELD_NUMBER = 6;
+ private boolean indicate_;
+ /**
+ * bool indicate = 6;
+ * @return The indicate.
+ */
+ public boolean getIndicate() {
+ return indicate_;
+ }
+
+ public static final int AUTHENTICATED_SIGNED_WRITES_FIELD_NUMBER = 7;
+ private boolean authenticatedSignedWrites_;
+ /**
+ * bool authenticated_signed_writes = 7;
+ * @return The authenticatedSignedWrites.
+ */
+ public boolean getAuthenticatedSignedWrites() {
+ return authenticatedSignedWrites_;
+ }
+
+ public static final int EXTENDED_PROPERTIES_FIELD_NUMBER = 8;
+ private boolean extendedProperties_;
+ /**
+ * bool extended_properties = 8;
+ * @return The extendedProperties.
+ */
+ public boolean getExtendedProperties() {
+ return extendedProperties_;
+ }
+
+ public static final int NOTIFY_ENCRYPTION_REQUIRED_FIELD_NUMBER = 9;
+ private boolean notifyEncryptionRequired_;
+ /**
+ * bool notify_encryption_required = 9;
+ * @return The notifyEncryptionRequired.
+ */
+ public boolean getNotifyEncryptionRequired() {
+ return notifyEncryptionRequired_;
+ }
+
+ public static final int INDICATE_ENCRYPTION_REQUIRED_FIELD_NUMBER = 10;
+ private boolean indicateEncryptionRequired_;
+ /**
+ * bool indicate_encryption_required = 10;
+ * @return The indicateEncryptionRequired.
+ */
+ public boolean getIndicateEncryptionRequired() {
+ return indicateEncryptionRequired_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (broadcast_ != false) {
+ output.writeBool(1, broadcast_);
+ }
+ if (read_ != false) {
+ output.writeBool(2, read_);
+ }
+ if (writeWithoutResponse_ != false) {
+ output.writeBool(3, writeWithoutResponse_);
+ }
+ if (write_ != false) {
+ output.writeBool(4, write_);
+ }
+ if (notify_ != false) {
+ output.writeBool(5, notify_);
+ }
+ if (indicate_ != false) {
+ output.writeBool(6, indicate_);
+ }
+ if (authenticatedSignedWrites_ != false) {
+ output.writeBool(7, authenticatedSignedWrites_);
+ }
+ if (extendedProperties_ != false) {
+ output.writeBool(8, extendedProperties_);
+ }
+ if (notifyEncryptionRequired_ != false) {
+ output.writeBool(9, notifyEncryptionRequired_);
+ }
+ if (indicateEncryptionRequired_ != false) {
+ output.writeBool(10, indicateEncryptionRequired_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (broadcast_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(1, broadcast_);
+ }
+ if (read_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, read_);
+ }
+ if (writeWithoutResponse_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, writeWithoutResponse_);
+ }
+ if (write_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(4, write_);
+ }
+ if (notify_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(5, notify_);
+ }
+ if (indicate_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(6, indicate_);
+ }
+ if (authenticatedSignedWrites_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(7, authenticatedSignedWrites_);
+ }
+ if (extendedProperties_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(8, extendedProperties_);
+ }
+ if (notifyEncryptionRequired_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(9, notifyEncryptionRequired_);
+ }
+ if (indicateEncryptionRequired_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(10, indicateEncryptionRequired_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.CharacteristicProperties)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties other = (com.pauldemarco.flutter_blue.Protos.CharacteristicProperties) obj;
+
+ if (getBroadcast()
+ != other.getBroadcast()) return false;
+ if (getRead()
+ != other.getRead()) return false;
+ if (getWriteWithoutResponse()
+ != other.getWriteWithoutResponse()) return false;
+ if (getWrite()
+ != other.getWrite()) return false;
+ if (getNotify()
+ != other.getNotify()) return false;
+ if (getIndicate()
+ != other.getIndicate()) return false;
+ if (getAuthenticatedSignedWrites()
+ != other.getAuthenticatedSignedWrites()) return false;
+ if (getExtendedProperties()
+ != other.getExtendedProperties()) return false;
+ if (getNotifyEncryptionRequired()
+ != other.getNotifyEncryptionRequired()) return false;
+ if (getIndicateEncryptionRequired()
+ != other.getIndicateEncryptionRequired()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + BROADCAST_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getBroadcast());
+ hash = (37 * hash) + READ_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getRead());
+ hash = (37 * hash) + WRITE_WITHOUT_RESPONSE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWriteWithoutResponse());
+ hash = (37 * hash) + WRITE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getWrite());
+ hash = (37 * hash) + NOTIFY_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getNotify());
+ hash = (37 * hash) + INDICATE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIndicate());
+ hash = (37 * hash) + AUTHENTICATED_SIGNED_WRITES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getAuthenticatedSignedWrites());
+ hash = (37 * hash) + EXTENDED_PROPERTIES_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getExtendedProperties());
+ hash = (37 * hash) + NOTIFY_ENCRYPTION_REQUIRED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getNotifyEncryptionRequired());
+ hash = (37 * hash) + INDICATE_ENCRYPTION_REQUIRED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getIndicateEncryptionRequired());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code CharacteristicProperties}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:CharacteristicProperties)
+ com.pauldemarco.flutter_blue.Protos.CharacteristicPropertiesOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_CharacteristicProperties_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_CharacteristicProperties_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.class, com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ broadcast_ = false;
+
+ read_ = false;
+
+ writeWithoutResponse_ = false;
+
+ write_ = false;
+
+ notify_ = false;
+
+ indicate_ = false;
+
+ authenticatedSignedWrites_ = false;
+
+ extendedProperties_ = false;
+
+ notifyEncryptionRequired_ = false;
+
+ indicateEncryptionRequired_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_CharacteristicProperties_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties build() {
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties result = new com.pauldemarco.flutter_blue.Protos.CharacteristicProperties(this);
+ result.broadcast_ = broadcast_;
+ result.read_ = read_;
+ result.writeWithoutResponse_ = writeWithoutResponse_;
+ result.write_ = write_;
+ result.notify_ = notify_;
+ result.indicate_ = indicate_;
+ result.authenticatedSignedWrites_ = authenticatedSignedWrites_;
+ result.extendedProperties_ = extendedProperties_;
+ result.notifyEncryptionRequired_ = notifyEncryptionRequired_;
+ result.indicateEncryptionRequired_ = indicateEncryptionRequired_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.CharacteristicProperties) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.CharacteristicProperties)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.CharacteristicProperties other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.CharacteristicProperties.getDefaultInstance()) return this;
+ if (other.getBroadcast() != false) {
+ setBroadcast(other.getBroadcast());
+ }
+ if (other.getRead() != false) {
+ setRead(other.getRead());
+ }
+ if (other.getWriteWithoutResponse() != false) {
+ setWriteWithoutResponse(other.getWriteWithoutResponse());
+ }
+ if (other.getWrite() != false) {
+ setWrite(other.getWrite());
+ }
+ if (other.getNotify() != false) {
+ setNotify(other.getNotify());
+ }
+ if (other.getIndicate() != false) {
+ setIndicate(other.getIndicate());
+ }
+ if (other.getAuthenticatedSignedWrites() != false) {
+ setAuthenticatedSignedWrites(other.getAuthenticatedSignedWrites());
+ }
+ if (other.getExtendedProperties() != false) {
+ setExtendedProperties(other.getExtendedProperties());
+ }
+ if (other.getNotifyEncryptionRequired() != false) {
+ setNotifyEncryptionRequired(other.getNotifyEncryptionRequired());
+ }
+ if (other.getIndicateEncryptionRequired() != false) {
+ setIndicateEncryptionRequired(other.getIndicateEncryptionRequired());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.CharacteristicProperties parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.CharacteristicProperties) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private boolean broadcast_ ;
+ /**
+ * bool broadcast = 1;
+ * @return The broadcast.
+ */
+ public boolean getBroadcast() {
+ return broadcast_;
+ }
+ /**
+ * bool broadcast = 1;
+ * @param value The broadcast to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBroadcast(boolean value) {
+
+ broadcast_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool broadcast = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBroadcast() {
+
+ broadcast_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean read_ ;
+ /**
+ * bool read = 2;
+ * @return The read.
+ */
+ public boolean getRead() {
+ return read_;
+ }
+ /**
+ * bool read = 2;
+ * @param value The read to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRead(boolean value) {
+
+ read_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool read = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearRead() {
+
+ read_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean writeWithoutResponse_ ;
+ /**
+ * bool write_without_response = 3;
+ * @return The writeWithoutResponse.
+ */
+ public boolean getWriteWithoutResponse() {
+ return writeWithoutResponse_;
+ }
+ /**
+ * bool write_without_response = 3;
+ * @param value The writeWithoutResponse to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWriteWithoutResponse(boolean value) {
+
+ writeWithoutResponse_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool write_without_response = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearWriteWithoutResponse() {
+
+ writeWithoutResponse_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean write_ ;
+ /**
+ * bool write = 4;
+ * @return The write.
+ */
+ public boolean getWrite() {
+ return write_;
+ }
+ /**
+ * bool write = 4;
+ * @param value The write to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWrite(boolean value) {
+
+ write_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool write = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearWrite() {
+
+ write_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean notify_ ;
+ /**
+ * bool notify = 5;
+ * @return The notify.
+ */
+ public boolean getNotify() {
+ return notify_;
+ }
+ /**
+ * bool notify = 5;
+ * @param value The notify to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNotify(boolean value) {
+
+ notify_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool notify = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearNotify() {
+
+ notify_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean indicate_ ;
+ /**
+ * bool indicate = 6;
+ * @return The indicate.
+ */
+ public boolean getIndicate() {
+ return indicate_;
+ }
+ /**
+ * bool indicate = 6;
+ * @param value The indicate to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIndicate(boolean value) {
+
+ indicate_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool indicate = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearIndicate() {
+
+ indicate_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean authenticatedSignedWrites_ ;
+ /**
+ * bool authenticated_signed_writes = 7;
+ * @return The authenticatedSignedWrites.
+ */
+ public boolean getAuthenticatedSignedWrites() {
+ return authenticatedSignedWrites_;
+ }
+ /**
+ * bool authenticated_signed_writes = 7;
+ * @param value The authenticatedSignedWrites to set.
+ * @return This builder for chaining.
+ */
+ public Builder setAuthenticatedSignedWrites(boolean value) {
+
+ authenticatedSignedWrites_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool authenticated_signed_writes = 7;
+ * @return This builder for chaining.
+ */
+ public Builder clearAuthenticatedSignedWrites() {
+
+ authenticatedSignedWrites_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean extendedProperties_ ;
+ /**
+ * bool extended_properties = 8;
+ * @return The extendedProperties.
+ */
+ public boolean getExtendedProperties() {
+ return extendedProperties_;
+ }
+ /**
+ * bool extended_properties = 8;
+ * @param value The extendedProperties to set.
+ * @return This builder for chaining.
+ */
+ public Builder setExtendedProperties(boolean value) {
+
+ extendedProperties_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool extended_properties = 8;
+ * @return This builder for chaining.
+ */
+ public Builder clearExtendedProperties() {
+
+ extendedProperties_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean notifyEncryptionRequired_ ;
+ /**
+ * bool notify_encryption_required = 9;
+ * @return The notifyEncryptionRequired.
+ */
+ public boolean getNotifyEncryptionRequired() {
+ return notifyEncryptionRequired_;
+ }
+ /**
+ * bool notify_encryption_required = 9;
+ * @param value The notifyEncryptionRequired to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNotifyEncryptionRequired(boolean value) {
+
+ notifyEncryptionRequired_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool notify_encryption_required = 9;
+ * @return This builder for chaining.
+ */
+ public Builder clearNotifyEncryptionRequired() {
+
+ notifyEncryptionRequired_ = false;
+ onChanged();
+ return this;
+ }
+
+ private boolean indicateEncryptionRequired_ ;
+ /**
+ * bool indicate_encryption_required = 10;
+ * @return The indicateEncryptionRequired.
+ */
+ public boolean getIndicateEncryptionRequired() {
+ return indicateEncryptionRequired_;
+ }
+ /**
+ * bool indicate_encryption_required = 10;
+ * @param value The indicateEncryptionRequired to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIndicateEncryptionRequired(boolean value) {
+
+ indicateEncryptionRequired_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool indicate_encryption_required = 10;
+ * @return This builder for chaining.
+ */
+ public Builder clearIndicateEncryptionRequired() {
+
+ indicateEncryptionRequired_ = false;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:CharacteristicProperties)
+ }
+
+ // @@protoc_insertion_point(class_scope:CharacteristicProperties)
+ private static final com.pauldemarco.flutter_blue.Protos.CharacteristicProperties DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.CharacteristicProperties();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.CharacteristicProperties getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public CharacteristicProperties parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new CharacteristicProperties(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.CharacteristicProperties getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface DiscoverServicesResultOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:DiscoverServicesResult)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ java.util.List
+ getServicesList();
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ com.pauldemarco.flutter_blue.Protos.BluetoothService getServices(int index);
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ int getServicesCount();
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder>
+ getServicesOrBuilderList();
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder getServicesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code DiscoverServicesResult}
+ */
+ public static final class DiscoverServicesResult extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:DiscoverServicesResult)
+ DiscoverServicesResultOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DiscoverServicesResult.newBuilder() to construct.
+ private DiscoverServicesResult(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DiscoverServicesResult() {
+ remoteId_ = "";
+ services_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DiscoverServicesResult();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DiscoverServicesResult(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ services_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ services_.add(
+ input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothService.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ services_ = java.util.Collections.unmodifiableList(services_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_DiscoverServicesResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_DiscoverServicesResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.class, com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.Builder.class);
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICES_FIELD_NUMBER = 2;
+ private java.util.List services_;
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public java.util.List getServicesList() {
+ return services_;
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder>
+ getServicesOrBuilderList() {
+ return services_;
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public int getServicesCount() {
+ return services_.size();
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothService getServices(int index) {
+ return services_.get(index);
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder getServicesOrBuilder(
+ int index) {
+ return services_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ for (int i = 0; i < services_.size(); i++) {
+ output.writeMessage(2, services_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ for (int i = 0; i < services_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, services_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult other = (com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (!getServicesList()
+ .equals(other.getServicesList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ if (getServicesCount() > 0) {
+ hash = (37 * hash) + SERVICES_FIELD_NUMBER;
+ hash = (53 * hash) + getServicesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code DiscoverServicesResult}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:DiscoverServicesResult)
+ com.pauldemarco.flutter_blue.Protos.DiscoverServicesResultOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_DiscoverServicesResult_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_DiscoverServicesResult_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.class, com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getServicesFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ if (servicesBuilder_ == null) {
+ services_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ servicesBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_DiscoverServicesResult_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult build() {
+ com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult result = new com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult(this);
+ int from_bitField0_ = bitField0_;
+ result.remoteId_ = remoteId_;
+ if (servicesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ services_ = java.util.Collections.unmodifiableList(services_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.services_ = services_;
+ } else {
+ result.services_ = servicesBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (servicesBuilder_ == null) {
+ if (!other.services_.isEmpty()) {
+ if (services_.isEmpty()) {
+ services_ = other.services_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureServicesIsMutable();
+ services_.addAll(other.services_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.services_.isEmpty()) {
+ if (servicesBuilder_.isEmpty()) {
+ servicesBuilder_.dispose();
+ servicesBuilder_ = null;
+ services_ = other.services_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ servicesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getServicesFieldBuilder() : null;
+ } else {
+ servicesBuilder_.addAllMessages(other.services_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.List services_ =
+ java.util.Collections.emptyList();
+ private void ensureServicesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ services_ = new java.util.ArrayList(services_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothService, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder> servicesBuilder_;
+
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public java.util.List getServicesList() {
+ if (servicesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(services_);
+ } else {
+ return servicesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public int getServicesCount() {
+ if (servicesBuilder_ == null) {
+ return services_.size();
+ } else {
+ return servicesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothService getServices(int index) {
+ if (servicesBuilder_ == null) {
+ return services_.get(index);
+ } else {
+ return servicesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public Builder setServices(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
+ if (servicesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServicesIsMutable();
+ services_.set(index, value);
+ onChanged();
+ } else {
+ servicesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public Builder setServices(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) {
+ if (servicesBuilder_ == null) {
+ ensureServicesIsMutable();
+ services_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ servicesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public Builder addServices(com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
+ if (servicesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServicesIsMutable();
+ services_.add(value);
+ onChanged();
+ } else {
+ servicesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public Builder addServices(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothService value) {
+ if (servicesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureServicesIsMutable();
+ services_.add(index, value);
+ onChanged();
+ } else {
+ servicesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public Builder addServices(
+ com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) {
+ if (servicesBuilder_ == null) {
+ ensureServicesIsMutable();
+ services_.add(builderForValue.build());
+ onChanged();
+ } else {
+ servicesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public Builder addServices(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder builderForValue) {
+ if (servicesBuilder_ == null) {
+ ensureServicesIsMutable();
+ services_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ servicesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public Builder addAllServices(
+ java.lang.Iterable extends com.pauldemarco.flutter_blue.Protos.BluetoothService> values) {
+ if (servicesBuilder_ == null) {
+ ensureServicesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, services_);
+ onChanged();
+ } else {
+ servicesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public Builder clearServices() {
+ if (servicesBuilder_ == null) {
+ services_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ servicesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public Builder removeServices(int index) {
+ if (servicesBuilder_ == null) {
+ ensureServicesIsMutable();
+ services_.remove(index);
+ onChanged();
+ } else {
+ servicesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder getServicesBuilder(
+ int index) {
+ return getServicesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder getServicesOrBuilder(
+ int index) {
+ if (servicesBuilder_ == null) {
+ return services_.get(index); } else {
+ return servicesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder>
+ getServicesOrBuilderList() {
+ if (servicesBuilder_ != null) {
+ return servicesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(services_);
+ }
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder addServicesBuilder() {
+ return getServicesFieldBuilder().addBuilder(
+ com.pauldemarco.flutter_blue.Protos.BluetoothService.getDefaultInstance());
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder addServicesBuilder(
+ int index) {
+ return getServicesFieldBuilder().addBuilder(
+ index, com.pauldemarco.flutter_blue.Protos.BluetoothService.getDefaultInstance());
+ }
+ /**
+ * repeated .BluetoothService services = 2;
+ */
+ public java.util.List
+ getServicesBuilderList() {
+ return getServicesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothService, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder>
+ getServicesFieldBuilder() {
+ if (servicesBuilder_ == null) {
+ servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothService, com.pauldemarco.flutter_blue.Protos.BluetoothService.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothServiceOrBuilder>(
+ services_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ services_ = null;
+ }
+ return servicesBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:DiscoverServicesResult)
+ }
+
+ // @@protoc_insertion_point(class_scope:DiscoverServicesResult)
+ private static final com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DiscoverServicesResult parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DiscoverServicesResult(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.DiscoverServicesResult getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ReadCharacteristicRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:ReadCharacteristicRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * string characteristic_uuid = 2;
+ * @return The characteristicUuid.
+ */
+ java.lang.String getCharacteristicUuid();
+ /**
+ * string characteristic_uuid = 2;
+ * @return The bytes for characteristicUuid.
+ */
+ com.google.protobuf.ByteString
+ getCharacteristicUuidBytes();
+
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ java.lang.String getServiceUuid();
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ com.google.protobuf.ByteString
+ getServiceUuidBytes();
+
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ java.lang.String getSecondaryServiceUuid();
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes();
+ }
+ /**
+ * Protobuf type {@code ReadCharacteristicRequest}
+ */
+ public static final class ReadCharacteristicRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ReadCharacteristicRequest)
+ ReadCharacteristicRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ReadCharacteristicRequest.newBuilder() to construct.
+ private ReadCharacteristicRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ReadCharacteristicRequest() {
+ remoteId_ = "";
+ characteristicUuid_ = "";
+ serviceUuid_ = "";
+ secondaryServiceUuid_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadCharacteristicRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadCharacteristicRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ characteristicUuid_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ serviceUuid_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ secondaryServiceUuid_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.class, com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.Builder.class);
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object characteristicUuid_;
+ /**
+ * string characteristic_uuid = 2;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string characteristic_uuid = 2;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICE_UUID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object serviceUuid_;
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4;
+ private volatile java.lang.Object secondaryServiceUuid_;
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ public java.lang.String getSecondaryServiceUuid() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secondaryServiceUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secondaryServiceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, characteristicUuid_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceUuid_);
+ }
+ if (!getSecondaryServiceUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secondaryServiceUuid_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, characteristicUuid_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceUuid_);
+ }
+ if (!getSecondaryServiceUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secondaryServiceUuid_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest other = (com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (!getCharacteristicUuid()
+ .equals(other.getCharacteristicUuid())) return false;
+ if (!getServiceUuid()
+ .equals(other.getServiceUuid())) return false;
+ if (!getSecondaryServiceUuid()
+ .equals(other.getSecondaryServiceUuid())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ hash = (37 * hash) + CHARACTERISTIC_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getCharacteristicUuid().hashCode();
+ hash = (37 * hash) + SERVICE_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceUuid().hashCode();
+ hash = (37 * hash) + SECONDARY_SERVICE_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getSecondaryServiceUuid().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ReadCharacteristicRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:ReadCharacteristicRequest)
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.class, com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ characteristicUuid_ = "";
+
+ serviceUuid_ = "";
+
+ secondaryServiceUuid_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest build() {
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest result = new com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest(this);
+ result.remoteId_ = remoteId_;
+ result.characteristicUuid_ = characteristicUuid_;
+ result.serviceUuid_ = serviceUuid_;
+ result.secondaryServiceUuid_ = secondaryServiceUuid_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (!other.getCharacteristicUuid().isEmpty()) {
+ characteristicUuid_ = other.characteristicUuid_;
+ onChanged();
+ }
+ if (!other.getServiceUuid().isEmpty()) {
+ serviceUuid_ = other.serviceUuid_;
+ onChanged();
+ }
+ if (!other.getSecondaryServiceUuid().isEmpty()) {
+ secondaryServiceUuid_ = other.secondaryServiceUuid_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object characteristicUuid_ = "";
+ /**
+ * string characteristic_uuid = 2;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string characteristic_uuid = 2;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string characteristic_uuid = 2;
+ * @param value The characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string characteristic_uuid = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCharacteristicUuid() {
+
+ characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string characteristic_uuid = 2;
+ * @param value The bytes for characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceUuid_ = "";
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @param value The serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string service_uuid = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceUuid() {
+
+ serviceUuid_ = getDefaultInstance().getServiceUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string service_uuid = 3;
+ * @param value The bytes for serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object secondaryServiceUuid_ = "";
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ public java.lang.String getSecondaryServiceUuid() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secondaryServiceUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secondaryServiceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @param value The secondaryServiceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecondaryServiceUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ secondaryServiceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearSecondaryServiceUuid() {
+
+ secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @param value The bytes for secondaryServiceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecondaryServiceUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ secondaryServiceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ReadCharacteristicRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:ReadCharacteristicRequest)
+ private static final com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ReadCharacteristicRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ReadCharacteristicRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ReadCharacteristicResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:ReadCharacteristicResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return Whether the characteristic field is set.
+ */
+ boolean hasCharacteristic();
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return The characteristic.
+ */
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic();
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder();
+ }
+ /**
+ * Protobuf type {@code ReadCharacteristicResponse}
+ */
+ public static final class ReadCharacteristicResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ReadCharacteristicResponse)
+ ReadCharacteristicResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ReadCharacteristicResponse.newBuilder() to construct.
+ private ReadCharacteristicResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ReadCharacteristicResponse() {
+ remoteId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadCharacteristicResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadCharacteristicResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 18: {
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder subBuilder = null;
+ if (characteristic_ != null) {
+ subBuilder = characteristic_.toBuilder();
+ }
+ characteristic_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(characteristic_);
+ characteristic_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.class, com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.Builder.class);
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHARACTERISTIC_FIELD_NUMBER = 2;
+ private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_;
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return Whether the characteristic field is set.
+ */
+ public boolean hasCharacteristic() {
+ return characteristic_ != null;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return The characteristic.
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
+ return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() {
+ return getCharacteristic();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ if (characteristic_ != null) {
+ output.writeMessage(2, getCharacteristic());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ if (characteristic_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getCharacteristic());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse other = (com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (hasCharacteristic() != other.hasCharacteristic()) return false;
+ if (hasCharacteristic()) {
+ if (!getCharacteristic()
+ .equals(other.getCharacteristic())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ if (hasCharacteristic()) {
+ hash = (37 * hash) + CHARACTERISTIC_FIELD_NUMBER;
+ hash = (53 * hash) + getCharacteristic().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ReadCharacteristicResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:ReadCharacteristicResponse)
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.class, com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ if (characteristicBuilder_ == null) {
+ characteristic_ = null;
+ } else {
+ characteristic_ = null;
+ characteristicBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadCharacteristicResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse build() {
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse result = new com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse(this);
+ result.remoteId_ = remoteId_;
+ if (characteristicBuilder_ == null) {
+ result.characteristic_ = characteristic_;
+ } else {
+ result.characteristic_ = characteristicBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (other.hasCharacteristic()) {
+ mergeCharacteristic(other.getCharacteristic());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder> characteristicBuilder_;
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return Whether the characteristic field is set.
+ */
+ public boolean hasCharacteristic() {
+ return characteristicBuilder_ != null || characteristic_ != null;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return The characteristic.
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
+ if (characteristicBuilder_ == null) {
+ return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
+ } else {
+ return characteristicBuilder_.getMessage();
+ }
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
+ if (characteristicBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ characteristic_ = value;
+ onChanged();
+ } else {
+ characteristicBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder setCharacteristic(
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) {
+ if (characteristicBuilder_ == null) {
+ characteristic_ = builderForValue.build();
+ onChanged();
+ } else {
+ characteristicBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
+ if (characteristicBuilder_ == null) {
+ if (characteristic_ != null) {
+ characteristic_ =
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.newBuilder(characteristic_).mergeFrom(value).buildPartial();
+ } else {
+ characteristic_ = value;
+ }
+ onChanged();
+ } else {
+ characteristicBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder clearCharacteristic() {
+ if (characteristicBuilder_ == null) {
+ characteristic_ = null;
+ onChanged();
+ } else {
+ characteristic_ = null;
+ characteristicBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder getCharacteristicBuilder() {
+
+ onChanged();
+ return getCharacteristicFieldBuilder().getBuilder();
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() {
+ if (characteristicBuilder_ != null) {
+ return characteristicBuilder_.getMessageOrBuilder();
+ } else {
+ return characteristic_ == null ?
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
+ }
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder>
+ getCharacteristicFieldBuilder() {
+ if (characteristicBuilder_ == null) {
+ characteristicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder>(
+ getCharacteristic(),
+ getParentForChildren(),
+ isClean());
+ characteristic_ = null;
+ }
+ return characteristicBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ReadCharacteristicResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:ReadCharacteristicResponse)
+ private static final com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ReadCharacteristicResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ReadCharacteristicResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadCharacteristicResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ReadDescriptorRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:ReadDescriptorRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * string descriptor_uuid = 2;
+ * @return The descriptorUuid.
+ */
+ java.lang.String getDescriptorUuid();
+ /**
+ * string descriptor_uuid = 2;
+ * @return The bytes for descriptorUuid.
+ */
+ com.google.protobuf.ByteString
+ getDescriptorUuidBytes();
+
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ java.lang.String getServiceUuid();
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ com.google.protobuf.ByteString
+ getServiceUuidBytes();
+
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ java.lang.String getSecondaryServiceUuid();
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes();
+
+ /**
+ * string characteristic_uuid = 5;
+ * @return The characteristicUuid.
+ */
+ java.lang.String getCharacteristicUuid();
+ /**
+ * string characteristic_uuid = 5;
+ * @return The bytes for characteristicUuid.
+ */
+ com.google.protobuf.ByteString
+ getCharacteristicUuidBytes();
+ }
+ /**
+ * Protobuf type {@code ReadDescriptorRequest}
+ */
+ public static final class ReadDescriptorRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ReadDescriptorRequest)
+ ReadDescriptorRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ReadDescriptorRequest.newBuilder() to construct.
+ private ReadDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ReadDescriptorRequest() {
+ remoteId_ = "";
+ descriptorUuid_ = "";
+ serviceUuid_ = "";
+ secondaryServiceUuid_ = "";
+ characteristicUuid_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadDescriptorRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadDescriptorRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ descriptorUuid_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ serviceUuid_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ secondaryServiceUuid_ = s;
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ characteristicUuid_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.class, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder.class);
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTOR_UUID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object descriptorUuid_;
+ /**
+ * string descriptor_uuid = 2;
+ * @return The descriptorUuid.
+ */
+ public java.lang.String getDescriptorUuid() {
+ java.lang.Object ref = descriptorUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ descriptorUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string descriptor_uuid = 2;
+ * @return The bytes for descriptorUuid.
+ */
+ public com.google.protobuf.ByteString
+ getDescriptorUuidBytes() {
+ java.lang.Object ref = descriptorUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ descriptorUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICE_UUID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object serviceUuid_;
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4;
+ private volatile java.lang.Object secondaryServiceUuid_;
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ public java.lang.String getSecondaryServiceUuid() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secondaryServiceUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secondaryServiceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 5;
+ private volatile java.lang.Object characteristicUuid_;
+ /**
+ * string characteristic_uuid = 5;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string characteristic_uuid = 5;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ if (!getDescriptorUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descriptorUuid_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceUuid_);
+ }
+ if (!getSecondaryServiceUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secondaryServiceUuid_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, characteristicUuid_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ if (!getDescriptorUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, descriptorUuid_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceUuid_);
+ }
+ if (!getSecondaryServiceUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secondaryServiceUuid_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, characteristicUuid_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest other = (com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (!getDescriptorUuid()
+ .equals(other.getDescriptorUuid())) return false;
+ if (!getServiceUuid()
+ .equals(other.getServiceUuid())) return false;
+ if (!getSecondaryServiceUuid()
+ .equals(other.getSecondaryServiceUuid())) return false;
+ if (!getCharacteristicUuid()
+ .equals(other.getCharacteristicUuid())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ hash = (37 * hash) + DESCRIPTOR_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getDescriptorUuid().hashCode();
+ hash = (37 * hash) + SERVICE_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceUuid().hashCode();
+ hash = (37 * hash) + SECONDARY_SERVICE_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getSecondaryServiceUuid().hashCode();
+ hash = (37 * hash) + CHARACTERISTIC_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getCharacteristicUuid().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ReadDescriptorRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:ReadDescriptorRequest)
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.class, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ descriptorUuid_ = "";
+
+ serviceUuid_ = "";
+
+ secondaryServiceUuid_ = "";
+
+ characteristicUuid_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest build() {
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest result = new com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest(this);
+ result.remoteId_ = remoteId_;
+ result.descriptorUuid_ = descriptorUuid_;
+ result.serviceUuid_ = serviceUuid_;
+ result.secondaryServiceUuid_ = secondaryServiceUuid_;
+ result.characteristicUuid_ = characteristicUuid_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (!other.getDescriptorUuid().isEmpty()) {
+ descriptorUuid_ = other.descriptorUuid_;
+ onChanged();
+ }
+ if (!other.getServiceUuid().isEmpty()) {
+ serviceUuid_ = other.serviceUuid_;
+ onChanged();
+ }
+ if (!other.getSecondaryServiceUuid().isEmpty()) {
+ secondaryServiceUuid_ = other.secondaryServiceUuid_;
+ onChanged();
+ }
+ if (!other.getCharacteristicUuid().isEmpty()) {
+ characteristicUuid_ = other.characteristicUuid_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object descriptorUuid_ = "";
+ /**
+ * string descriptor_uuid = 2;
+ * @return The descriptorUuid.
+ */
+ public java.lang.String getDescriptorUuid() {
+ java.lang.Object ref = descriptorUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ descriptorUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string descriptor_uuid = 2;
+ * @return The bytes for descriptorUuid.
+ */
+ public com.google.protobuf.ByteString
+ getDescriptorUuidBytes() {
+ java.lang.Object ref = descriptorUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ descriptorUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string descriptor_uuid = 2;
+ * @param value The descriptorUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptorUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ descriptorUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string descriptor_uuid = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearDescriptorUuid() {
+
+ descriptorUuid_ = getDefaultInstance().getDescriptorUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string descriptor_uuid = 2;
+ * @param value The bytes for descriptorUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptorUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ descriptorUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceUuid_ = "";
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @param value The serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string service_uuid = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceUuid() {
+
+ serviceUuid_ = getDefaultInstance().getServiceUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string service_uuid = 3;
+ * @param value The bytes for serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object secondaryServiceUuid_ = "";
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ public java.lang.String getSecondaryServiceUuid() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secondaryServiceUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secondaryServiceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @param value The secondaryServiceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecondaryServiceUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ secondaryServiceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearSecondaryServiceUuid() {
+
+ secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @param value The bytes for secondaryServiceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecondaryServiceUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ secondaryServiceUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object characteristicUuid_ = "";
+ /**
+ * string characteristic_uuid = 5;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string characteristic_uuid = 5;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string characteristic_uuid = 5;
+ * @param value The characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string characteristic_uuid = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearCharacteristicUuid() {
+
+ characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string characteristic_uuid = 5;
+ * @param value The bytes for characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ReadDescriptorRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:ReadDescriptorRequest)
+ private static final com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ReadDescriptorRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ReadDescriptorRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ReadDescriptorResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:ReadDescriptorResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .ReadDescriptorRequest request = 1;
+ * @return Whether the request field is set.
+ */
+ boolean hasRequest();
+ /**
+ * .ReadDescriptorRequest request = 1;
+ * @return The request.
+ */
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getRequest();
+ /**
+ * .ReadDescriptorRequest request = 1;
+ */
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder getRequestOrBuilder();
+
+ /**
+ * bytes value = 2;
+ * @return The value.
+ */
+ com.google.protobuf.ByteString getValue();
+ }
+ /**
+ * Protobuf type {@code ReadDescriptorResponse}
+ */
+ public static final class ReadDescriptorResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ReadDescriptorResponse)
+ ReadDescriptorResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ReadDescriptorResponse.newBuilder() to construct.
+ private ReadDescriptorResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ReadDescriptorResponse() {
+ value_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ReadDescriptorResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ReadDescriptorResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder subBuilder = null;
+ if (request_ != null) {
+ subBuilder = request_.toBuilder();
+ }
+ request_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(request_);
+ request_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+
+ value_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.class, com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.Builder.class);
+ }
+
+ public static final int REQUEST_FIELD_NUMBER = 1;
+ private com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest request_;
+ /**
+ * .ReadDescriptorRequest request = 1;
+ * @return Whether the request field is set.
+ */
+ public boolean hasRequest() {
+ return request_ != null;
+ }
+ /**
+ * .ReadDescriptorRequest request = 1;
+ * @return The request.
+ */
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getRequest() {
+ return request_ == null ? com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance() : request_;
+ }
+ /**
+ * .ReadDescriptorRequest request = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder getRequestOrBuilder() {
+ return getRequest();
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+ private com.google.protobuf.ByteString value_;
+ /**
+ * bytes value = 2;
+ * @return The value.
+ */
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (request_ != null) {
+ output.writeMessage(1, getRequest());
+ }
+ if (!value_.isEmpty()) {
+ output.writeBytes(2, value_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (request_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getRequest());
+ }
+ if (!value_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(2, value_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse other = (com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse) obj;
+
+ if (hasRequest() != other.hasRequest()) return false;
+ if (hasRequest()) {
+ if (!getRequest()
+ .equals(other.getRequest())) return false;
+ }
+ if (!getValue()
+ .equals(other.getValue())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasRequest()) {
+ hash = (37 * hash) + REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getRequest().hashCode();
+ }
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ReadDescriptorResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:ReadDescriptorResponse)
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.class, com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (requestBuilder_ == null) {
+ request_ = null;
+ } else {
+ request_ = null;
+ requestBuilder_ = null;
+ }
+ value_ = com.google.protobuf.ByteString.EMPTY;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ReadDescriptorResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse build() {
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse result = new com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse(this);
+ if (requestBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = requestBuilder_.build();
+ }
+ result.value_ = value_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse.getDefaultInstance()) return this;
+ if (other.hasRequest()) {
+ mergeRequest(other.getRequest());
+ }
+ if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
+ setValue(other.getValue());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest request_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder> requestBuilder_;
+ /**
+ * .ReadDescriptorRequest request = 1;
+ * @return Whether the request field is set.
+ */
+ public boolean hasRequest() {
+ return requestBuilder_ != null || request_ != null;
+ }
+ /**
+ * .ReadDescriptorRequest request = 1;
+ * @return The request.
+ */
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest getRequest() {
+ if (requestBuilder_ == null) {
+ return request_ == null ? com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance() : request_;
+ } else {
+ return requestBuilder_.getMessage();
+ }
+ }
+ /**
+ * .ReadDescriptorRequest request = 1;
+ */
+ public Builder setRequest(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest value) {
+ if (requestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ request_ = value;
+ onChanged();
+ } else {
+ requestBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .ReadDescriptorRequest request = 1;
+ */
+ public Builder setRequest(
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder builderForValue) {
+ if (requestBuilder_ == null) {
+ request_ = builderForValue.build();
+ onChanged();
+ } else {
+ requestBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .ReadDescriptorRequest request = 1;
+ */
+ public Builder mergeRequest(com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest value) {
+ if (requestBuilder_ == null) {
+ if (request_ != null) {
+ request_ =
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.newBuilder(request_).mergeFrom(value).buildPartial();
+ } else {
+ request_ = value;
+ }
+ onChanged();
+ } else {
+ requestBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .ReadDescriptorRequest request = 1;
+ */
+ public Builder clearRequest() {
+ if (requestBuilder_ == null) {
+ request_ = null;
+ onChanged();
+ } else {
+ request_ = null;
+ requestBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .ReadDescriptorRequest request = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder getRequestBuilder() {
+
+ onChanged();
+ return getRequestFieldBuilder().getBuilder();
+ }
+ /**
+ * .ReadDescriptorRequest request = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder getRequestOrBuilder() {
+ if (requestBuilder_ != null) {
+ return requestBuilder_.getMessageOrBuilder();
+ } else {
+ return request_ == null ?
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.getDefaultInstance() : request_;
+ }
+ }
+ /**
+ * .ReadDescriptorRequest request = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder>
+ getRequestFieldBuilder() {
+ if (requestBuilder_ == null) {
+ requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.ReadDescriptorRequestOrBuilder>(
+ getRequest(),
+ getParentForChildren(),
+ isClean());
+ request_ = null;
+ }
+ return requestBuilder_;
+ }
+
+ private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * bytes value = 2;
+ * @return The value.
+ */
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
+ /**
+ * bytes value = 2;
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes value = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ReadDescriptorResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:ReadDescriptorResponse)
+ private static final com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ReadDescriptorResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ReadDescriptorResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ReadDescriptorResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface WriteCharacteristicRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:WriteCharacteristicRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * string characteristic_uuid = 2;
+ * @return The characteristicUuid.
+ */
+ java.lang.String getCharacteristicUuid();
+ /**
+ * string characteristic_uuid = 2;
+ * @return The bytes for characteristicUuid.
+ */
+ com.google.protobuf.ByteString
+ getCharacteristicUuidBytes();
+
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ java.lang.String getServiceUuid();
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ com.google.protobuf.ByteString
+ getServiceUuidBytes();
+
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ java.lang.String getSecondaryServiceUuid();
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes();
+
+ /**
+ * .WriteCharacteristicRequest.WriteType write_type = 5;
+ * @return The enum numeric value on the wire for writeType.
+ */
+ int getWriteTypeValue();
+ /**
+ * .WriteCharacteristicRequest.WriteType write_type = 5;
+ * @return The writeType.
+ */
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType getWriteType();
+
+ /**
+ * bytes value = 6;
+ * @return The value.
+ */
+ com.google.protobuf.ByteString getValue();
+ }
+ /**
+ * Protobuf type {@code WriteCharacteristicRequest}
+ */
+ public static final class WriteCharacteristicRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:WriteCharacteristicRequest)
+ WriteCharacteristicRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use WriteCharacteristicRequest.newBuilder() to construct.
+ private WriteCharacteristicRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private WriteCharacteristicRequest() {
+ remoteId_ = "";
+ characteristicUuid_ = "";
+ serviceUuid_ = "";
+ secondaryServiceUuid_ = "";
+ writeType_ = 0;
+ value_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new WriteCharacteristicRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WriteCharacteristicRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ characteristicUuid_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ serviceUuid_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ secondaryServiceUuid_ = s;
+ break;
+ }
+ case 40: {
+ int rawValue = input.readEnum();
+
+ writeType_ = rawValue;
+ break;
+ }
+ case 50: {
+
+ value_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.class, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code WriteCharacteristicRequest.WriteType}
+ */
+ public enum WriteType
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * WITH_RESPONSE = 0;
+ */
+ WITH_RESPONSE(0),
+ /**
+ * WITHOUT_RESPONSE = 1;
+ */
+ WITHOUT_RESPONSE(1),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * WITH_RESPONSE = 0;
+ */
+ public static final int WITH_RESPONSE_VALUE = 0;
+ /**
+ * WITHOUT_RESPONSE = 1;
+ */
+ public static final int WITHOUT_RESPONSE_VALUE = 1;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static WriteType valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static WriteType forNumber(int value) {
+ switch (value) {
+ case 0: return WITH_RESPONSE;
+ case 1: return WITHOUT_RESPONSE;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ WriteType> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public WriteType findValueByNumber(int number) {
+ return WriteType.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final WriteType[] VALUES = values();
+
+ public static WriteType valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private WriteType(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:WriteCharacteristicRequest.WriteType)
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object characteristicUuid_;
+ /**
+ * string characteristic_uuid = 2;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string characteristic_uuid = 2;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICE_UUID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object serviceUuid_;
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4;
+ private volatile java.lang.Object secondaryServiceUuid_;
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ public java.lang.String getSecondaryServiceUuid() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secondaryServiceUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secondaryServiceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int WRITE_TYPE_FIELD_NUMBER = 5;
+ private int writeType_;
+ /**
+ * .WriteCharacteristicRequest.WriteType write_type = 5;
+ * @return The enum numeric value on the wire for writeType.
+ */
+ public int getWriteTypeValue() {
+ return writeType_;
+ }
+ /**
+ * .WriteCharacteristicRequest.WriteType write_type = 5;
+ * @return The writeType.
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType getWriteType() {
+ @SuppressWarnings("deprecation")
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType result = com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.valueOf(writeType_);
+ return result == null ? com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.UNRECOGNIZED : result;
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 6;
+ private com.google.protobuf.ByteString value_;
+ /**
+ * bytes value = 6;
+ * @return The value.
+ */
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, characteristicUuid_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceUuid_);
+ }
+ if (!getSecondaryServiceUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secondaryServiceUuid_);
+ }
+ if (writeType_ != com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.WITH_RESPONSE.getNumber()) {
+ output.writeEnum(5, writeType_);
+ }
+ if (!value_.isEmpty()) {
+ output.writeBytes(6, value_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, characteristicUuid_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceUuid_);
+ }
+ if (!getSecondaryServiceUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secondaryServiceUuid_);
+ }
+ if (writeType_ != com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.WITH_RESPONSE.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(5, writeType_);
+ }
+ if (!value_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(6, value_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest other = (com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (!getCharacteristicUuid()
+ .equals(other.getCharacteristicUuid())) return false;
+ if (!getServiceUuid()
+ .equals(other.getServiceUuid())) return false;
+ if (!getSecondaryServiceUuid()
+ .equals(other.getSecondaryServiceUuid())) return false;
+ if (writeType_ != other.writeType_) return false;
+ if (!getValue()
+ .equals(other.getValue())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ hash = (37 * hash) + CHARACTERISTIC_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getCharacteristicUuid().hashCode();
+ hash = (37 * hash) + SERVICE_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceUuid().hashCode();
+ hash = (37 * hash) + SECONDARY_SERVICE_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getSecondaryServiceUuid().hashCode();
+ hash = (37 * hash) + WRITE_TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + writeType_;
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code WriteCharacteristicRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:WriteCharacteristicRequest)
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.class, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ characteristicUuid_ = "";
+
+ serviceUuid_ = "";
+
+ secondaryServiceUuid_ = "";
+
+ writeType_ = 0;
+
+ value_ = com.google.protobuf.ByteString.EMPTY;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest build() {
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest result = new com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest(this);
+ result.remoteId_ = remoteId_;
+ result.characteristicUuid_ = characteristicUuid_;
+ result.serviceUuid_ = serviceUuid_;
+ result.secondaryServiceUuid_ = secondaryServiceUuid_;
+ result.writeType_ = writeType_;
+ result.value_ = value_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (!other.getCharacteristicUuid().isEmpty()) {
+ characteristicUuid_ = other.characteristicUuid_;
+ onChanged();
+ }
+ if (!other.getServiceUuid().isEmpty()) {
+ serviceUuid_ = other.serviceUuid_;
+ onChanged();
+ }
+ if (!other.getSecondaryServiceUuid().isEmpty()) {
+ secondaryServiceUuid_ = other.secondaryServiceUuid_;
+ onChanged();
+ }
+ if (other.writeType_ != 0) {
+ setWriteTypeValue(other.getWriteTypeValue());
+ }
+ if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
+ setValue(other.getValue());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object characteristicUuid_ = "";
+ /**
+ * string characteristic_uuid = 2;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string characteristic_uuid = 2;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string characteristic_uuid = 2;
+ * @param value The characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string characteristic_uuid = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearCharacteristicUuid() {
+
+ characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string characteristic_uuid = 2;
+ * @param value The bytes for characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceUuid_ = "";
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @param value The serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string service_uuid = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceUuid() {
+
+ serviceUuid_ = getDefaultInstance().getServiceUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string service_uuid = 3;
+ * @param value The bytes for serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object secondaryServiceUuid_ = "";
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ public java.lang.String getSecondaryServiceUuid() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secondaryServiceUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secondaryServiceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @param value The secondaryServiceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecondaryServiceUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ secondaryServiceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearSecondaryServiceUuid() {
+
+ secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @param value The bytes for secondaryServiceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecondaryServiceUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ secondaryServiceUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int writeType_ = 0;
+ /**
+ * .WriteCharacteristicRequest.WriteType write_type = 5;
+ * @return The enum numeric value on the wire for writeType.
+ */
+ public int getWriteTypeValue() {
+ return writeType_;
+ }
+ /**
+ * .WriteCharacteristicRequest.WriteType write_type = 5;
+ * @param value The enum numeric value on the wire for writeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWriteTypeValue(int value) {
+ writeType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * .WriteCharacteristicRequest.WriteType write_type = 5;
+ * @return The writeType.
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType getWriteType() {
+ @SuppressWarnings("deprecation")
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType result = com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.valueOf(writeType_);
+ return result == null ? com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType.UNRECOGNIZED : result;
+ }
+ /**
+ * .WriteCharacteristicRequest.WriteType write_type = 5;
+ * @param value The writeType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setWriteType(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.WriteType value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ writeType_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .WriteCharacteristicRequest.WriteType write_type = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearWriteType() {
+
+ writeType_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * bytes value = 6;
+ * @return The value.
+ */
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
+ /**
+ * bytes value = 6;
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes value = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:WriteCharacteristicRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:WriteCharacteristicRequest)
+ private static final com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public WriteCharacteristicRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new WriteCharacteristicRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface WriteCharacteristicResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:WriteCharacteristicResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ * @return Whether the request field is set.
+ */
+ boolean hasRequest();
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ * @return The request.
+ */
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getRequest();
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ */
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder getRequestOrBuilder();
+
+ /**
+ * bool success = 2;
+ * @return The success.
+ */
+ boolean getSuccess();
+ }
+ /**
+ * Protobuf type {@code WriteCharacteristicResponse}
+ */
+ public static final class WriteCharacteristicResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:WriteCharacteristicResponse)
+ WriteCharacteristicResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use WriteCharacteristicResponse.newBuilder() to construct.
+ private WriteCharacteristicResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private WriteCharacteristicResponse() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new WriteCharacteristicResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WriteCharacteristicResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder subBuilder = null;
+ if (request_ != null) {
+ subBuilder = request_.toBuilder();
+ }
+ request_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(request_);
+ request_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 16: {
+
+ success_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.class, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.Builder.class);
+ }
+
+ public static final int REQUEST_FIELD_NUMBER = 1;
+ private com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest request_;
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ * @return Whether the request field is set.
+ */
+ public boolean hasRequest() {
+ return request_ != null;
+ }
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ * @return The request.
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getRequest() {
+ return request_ == null ? com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance() : request_;
+ }
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder getRequestOrBuilder() {
+ return getRequest();
+ }
+
+ public static final int SUCCESS_FIELD_NUMBER = 2;
+ private boolean success_;
+ /**
+ * bool success = 2;
+ * @return The success.
+ */
+ public boolean getSuccess() {
+ return success_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (request_ != null) {
+ output.writeMessage(1, getRequest());
+ }
+ if (success_ != false) {
+ output.writeBool(2, success_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (request_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getRequest());
+ }
+ if (success_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, success_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse other = (com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse) obj;
+
+ if (hasRequest() != other.hasRequest()) return false;
+ if (hasRequest()) {
+ if (!getRequest()
+ .equals(other.getRequest())) return false;
+ }
+ if (getSuccess()
+ != other.getSuccess()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasRequest()) {
+ hash = (37 * hash) + REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getRequest().hashCode();
+ }
+ hash = (37 * hash) + SUCCESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSuccess());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code WriteCharacteristicResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:WriteCharacteristicResponse)
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.class, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (requestBuilder_ == null) {
+ request_ = null;
+ } else {
+ request_ = null;
+ requestBuilder_ = null;
+ }
+ success_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteCharacteristicResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse build() {
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse result = new com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse(this);
+ if (requestBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = requestBuilder_.build();
+ }
+ result.success_ = success_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse.getDefaultInstance()) return this;
+ if (other.hasRequest()) {
+ mergeRequest(other.getRequest());
+ }
+ if (other.getSuccess() != false) {
+ setSuccess(other.getSuccess());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest request_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder> requestBuilder_;
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ * @return Whether the request field is set.
+ */
+ public boolean hasRequest() {
+ return requestBuilder_ != null || request_ != null;
+ }
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ * @return The request.
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest getRequest() {
+ if (requestBuilder_ == null) {
+ return request_ == null ? com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance() : request_;
+ } else {
+ return requestBuilder_.getMessage();
+ }
+ }
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ */
+ public Builder setRequest(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest value) {
+ if (requestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ request_ = value;
+ onChanged();
+ } else {
+ requestBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ */
+ public Builder setRequest(
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder builderForValue) {
+ if (requestBuilder_ == null) {
+ request_ = builderForValue.build();
+ onChanged();
+ } else {
+ requestBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ */
+ public Builder mergeRequest(com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest value) {
+ if (requestBuilder_ == null) {
+ if (request_ != null) {
+ request_ =
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.newBuilder(request_).mergeFrom(value).buildPartial();
+ } else {
+ request_ = value;
+ }
+ onChanged();
+ } else {
+ requestBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ */
+ public Builder clearRequest() {
+ if (requestBuilder_ == null) {
+ request_ = null;
+ onChanged();
+ } else {
+ request_ = null;
+ requestBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder getRequestBuilder() {
+
+ onChanged();
+ return getRequestFieldBuilder().getBuilder();
+ }
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder getRequestOrBuilder() {
+ if (requestBuilder_ != null) {
+ return requestBuilder_.getMessageOrBuilder();
+ } else {
+ return request_ == null ?
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.getDefaultInstance() : request_;
+ }
+ }
+ /**
+ * .WriteCharacteristicRequest request = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder>
+ getRequestFieldBuilder() {
+ if (requestBuilder_ == null) {
+ requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteCharacteristicRequestOrBuilder>(
+ getRequest(),
+ getParentForChildren(),
+ isClean());
+ request_ = null;
+ }
+ return requestBuilder_;
+ }
+
+ private boolean success_ ;
+ /**
+ * bool success = 2;
+ * @return The success.
+ */
+ public boolean getSuccess() {
+ return success_;
+ }
+ /**
+ * bool success = 2;
+ * @param value The success to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSuccess(boolean value) {
+
+ success_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool success = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearSuccess() {
+
+ success_ = false;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:WriteCharacteristicResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:WriteCharacteristicResponse)
+ private static final com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public WriteCharacteristicResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new WriteCharacteristicResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteCharacteristicResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface WriteDescriptorRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:WriteDescriptorRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * string descriptor_uuid = 2;
+ * @return The descriptorUuid.
+ */
+ java.lang.String getDescriptorUuid();
+ /**
+ * string descriptor_uuid = 2;
+ * @return The bytes for descriptorUuid.
+ */
+ com.google.protobuf.ByteString
+ getDescriptorUuidBytes();
+
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ java.lang.String getServiceUuid();
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ com.google.protobuf.ByteString
+ getServiceUuidBytes();
+
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ java.lang.String getSecondaryServiceUuid();
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes();
+
+ /**
+ * string characteristic_uuid = 5;
+ * @return The characteristicUuid.
+ */
+ java.lang.String getCharacteristicUuid();
+ /**
+ * string characteristic_uuid = 5;
+ * @return The bytes for characteristicUuid.
+ */
+ com.google.protobuf.ByteString
+ getCharacteristicUuidBytes();
+
+ /**
+ * bytes value = 6;
+ * @return The value.
+ */
+ com.google.protobuf.ByteString getValue();
+ }
+ /**
+ * Protobuf type {@code WriteDescriptorRequest}
+ */
+ public static final class WriteDescriptorRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:WriteDescriptorRequest)
+ WriteDescriptorRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use WriteDescriptorRequest.newBuilder() to construct.
+ private WriteDescriptorRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private WriteDescriptorRequest() {
+ remoteId_ = "";
+ descriptorUuid_ = "";
+ serviceUuid_ = "";
+ secondaryServiceUuid_ = "";
+ characteristicUuid_ = "";
+ value_ = com.google.protobuf.ByteString.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new WriteDescriptorRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WriteDescriptorRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ descriptorUuid_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ serviceUuid_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ secondaryServiceUuid_ = s;
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ characteristicUuid_ = s;
+ break;
+ }
+ case 50: {
+
+ value_ = input.readBytes();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.class, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder.class);
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DESCRIPTOR_UUID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object descriptorUuid_;
+ /**
+ * string descriptor_uuid = 2;
+ * @return The descriptorUuid.
+ */
+ public java.lang.String getDescriptorUuid() {
+ java.lang.Object ref = descriptorUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ descriptorUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string descriptor_uuid = 2;
+ * @return The bytes for descriptorUuid.
+ */
+ public com.google.protobuf.ByteString
+ getDescriptorUuidBytes() {
+ java.lang.Object ref = descriptorUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ descriptorUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICE_UUID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object serviceUuid_;
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 4;
+ private volatile java.lang.Object secondaryServiceUuid_;
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ public java.lang.String getSecondaryServiceUuid() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secondaryServiceUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secondaryServiceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 5;
+ private volatile java.lang.Object characteristicUuid_;
+ /**
+ * string characteristic_uuid = 5;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string characteristic_uuid = 5;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 6;
+ private com.google.protobuf.ByteString value_;
+ /**
+ * bytes value = 6;
+ * @return The value.
+ */
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ if (!getDescriptorUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, descriptorUuid_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, serviceUuid_);
+ }
+ if (!getSecondaryServiceUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, secondaryServiceUuid_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, characteristicUuid_);
+ }
+ if (!value_.isEmpty()) {
+ output.writeBytes(6, value_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ if (!getDescriptorUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, descriptorUuid_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, serviceUuid_);
+ }
+ if (!getSecondaryServiceUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, secondaryServiceUuid_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, characteristicUuid_);
+ }
+ if (!value_.isEmpty()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBytesSize(6, value_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest other = (com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (!getDescriptorUuid()
+ .equals(other.getDescriptorUuid())) return false;
+ if (!getServiceUuid()
+ .equals(other.getServiceUuid())) return false;
+ if (!getSecondaryServiceUuid()
+ .equals(other.getSecondaryServiceUuid())) return false;
+ if (!getCharacteristicUuid()
+ .equals(other.getCharacteristicUuid())) return false;
+ if (!getValue()
+ .equals(other.getValue())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ hash = (37 * hash) + DESCRIPTOR_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getDescriptorUuid().hashCode();
+ hash = (37 * hash) + SERVICE_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceUuid().hashCode();
+ hash = (37 * hash) + SECONDARY_SERVICE_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getSecondaryServiceUuid().hashCode();
+ hash = (37 * hash) + CHARACTERISTIC_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getCharacteristicUuid().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code WriteDescriptorRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:WriteDescriptorRequest)
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.class, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ descriptorUuid_ = "";
+
+ serviceUuid_ = "";
+
+ secondaryServiceUuid_ = "";
+
+ characteristicUuid_ = "";
+
+ value_ = com.google.protobuf.ByteString.EMPTY;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest build() {
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest result = new com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest(this);
+ result.remoteId_ = remoteId_;
+ result.descriptorUuid_ = descriptorUuid_;
+ result.serviceUuid_ = serviceUuid_;
+ result.secondaryServiceUuid_ = secondaryServiceUuid_;
+ result.characteristicUuid_ = characteristicUuid_;
+ result.value_ = value_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (!other.getDescriptorUuid().isEmpty()) {
+ descriptorUuid_ = other.descriptorUuid_;
+ onChanged();
+ }
+ if (!other.getServiceUuid().isEmpty()) {
+ serviceUuid_ = other.serviceUuid_;
+ onChanged();
+ }
+ if (!other.getSecondaryServiceUuid().isEmpty()) {
+ secondaryServiceUuid_ = other.secondaryServiceUuid_;
+ onChanged();
+ }
+ if (!other.getCharacteristicUuid().isEmpty()) {
+ characteristicUuid_ = other.characteristicUuid_;
+ onChanged();
+ }
+ if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
+ setValue(other.getValue());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object descriptorUuid_ = "";
+ /**
+ * string descriptor_uuid = 2;
+ * @return The descriptorUuid.
+ */
+ public java.lang.String getDescriptorUuid() {
+ java.lang.Object ref = descriptorUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ descriptorUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string descriptor_uuid = 2;
+ * @return The bytes for descriptorUuid.
+ */
+ public com.google.protobuf.ByteString
+ getDescriptorUuidBytes() {
+ java.lang.Object ref = descriptorUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ descriptorUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string descriptor_uuid = 2;
+ * @param value The descriptorUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptorUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ descriptorUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string descriptor_uuid = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearDescriptorUuid() {
+
+ descriptorUuid_ = getDefaultInstance().getDescriptorUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string descriptor_uuid = 2;
+ * @param value The bytes for descriptorUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDescriptorUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ descriptorUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceUuid_ = "";
+ /**
+ * string service_uuid = 3;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string service_uuid = 3;
+ * @param value The serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string service_uuid = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceUuid() {
+
+ serviceUuid_ = getDefaultInstance().getServiceUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string service_uuid = 3;
+ * @param value The bytes for serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object secondaryServiceUuid_ = "";
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The secondaryServiceUuid.
+ */
+ public java.lang.String getSecondaryServiceUuid() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secondaryServiceUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secondaryServiceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @param value The secondaryServiceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecondaryServiceUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ secondaryServiceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearSecondaryServiceUuid() {
+
+ secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string secondary_service_uuid = 4;
+ * @param value The bytes for secondaryServiceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecondaryServiceUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ secondaryServiceUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object characteristicUuid_ = "";
+ /**
+ * string characteristic_uuid = 5;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string characteristic_uuid = 5;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string characteristic_uuid = 5;
+ * @param value The characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string characteristic_uuid = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearCharacteristicUuid() {
+
+ characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string characteristic_uuid = 5;
+ * @param value The bytes for characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
+ /**
+ * bytes value = 6;
+ * @return The value.
+ */
+ public com.google.protobuf.ByteString getValue() {
+ return value_;
+ }
+ /**
+ * bytes value = 6;
+ * @param value The value to set.
+ * @return This builder for chaining.
+ */
+ public Builder setValue(com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bytes value = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:WriteDescriptorRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:WriteDescriptorRequest)
+ private static final com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public WriteDescriptorRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new WriteDescriptorRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface WriteDescriptorResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:WriteDescriptorResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * .WriteDescriptorRequest request = 1;
+ * @return Whether the request field is set.
+ */
+ boolean hasRequest();
+ /**
+ * .WriteDescriptorRequest request = 1;
+ * @return The request.
+ */
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getRequest();
+ /**
+ * .WriteDescriptorRequest request = 1;
+ */
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder getRequestOrBuilder();
+
+ /**
+ * bool success = 2;
+ * @return The success.
+ */
+ boolean getSuccess();
+ }
+ /**
+ * Protobuf type {@code WriteDescriptorResponse}
+ */
+ public static final class WriteDescriptorResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:WriteDescriptorResponse)
+ WriteDescriptorResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use WriteDescriptorResponse.newBuilder() to construct.
+ private WriteDescriptorResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private WriteDescriptorResponse() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new WriteDescriptorResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private WriteDescriptorResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder subBuilder = null;
+ if (request_ != null) {
+ subBuilder = request_.toBuilder();
+ }
+ request_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(request_);
+ request_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 16: {
+
+ success_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.class, com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.Builder.class);
+ }
+
+ public static final int REQUEST_FIELD_NUMBER = 1;
+ private com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest request_;
+ /**
+ * .WriteDescriptorRequest request = 1;
+ * @return Whether the request field is set.
+ */
+ public boolean hasRequest() {
+ return request_ != null;
+ }
+ /**
+ * .WriteDescriptorRequest request = 1;
+ * @return The request.
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getRequest() {
+ return request_ == null ? com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance() : request_;
+ }
+ /**
+ * .WriteDescriptorRequest request = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder getRequestOrBuilder() {
+ return getRequest();
+ }
+
+ public static final int SUCCESS_FIELD_NUMBER = 2;
+ private boolean success_;
+ /**
+ * bool success = 2;
+ * @return The success.
+ */
+ public boolean getSuccess() {
+ return success_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (request_ != null) {
+ output.writeMessage(1, getRequest());
+ }
+ if (success_ != false) {
+ output.writeBool(2, success_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (request_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getRequest());
+ }
+ if (success_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(2, success_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse other = (com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse) obj;
+
+ if (hasRequest() != other.hasRequest()) return false;
+ if (hasRequest()) {
+ if (!getRequest()
+ .equals(other.getRequest())) return false;
+ }
+ if (getSuccess()
+ != other.getSuccess()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasRequest()) {
+ hash = (37 * hash) + REQUEST_FIELD_NUMBER;
+ hash = (53 * hash) + getRequest().hashCode();
+ }
+ hash = (37 * hash) + SUCCESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSuccess());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code WriteDescriptorResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:WriteDescriptorResponse)
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.class, com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (requestBuilder_ == null) {
+ request_ = null;
+ } else {
+ request_ = null;
+ requestBuilder_ = null;
+ }
+ success_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_WriteDescriptorResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse build() {
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse result = new com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse(this);
+ if (requestBuilder_ == null) {
+ result.request_ = request_;
+ } else {
+ result.request_ = requestBuilder_.build();
+ }
+ result.success_ = success_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse.getDefaultInstance()) return this;
+ if (other.hasRequest()) {
+ mergeRequest(other.getRequest());
+ }
+ if (other.getSuccess() != false) {
+ setSuccess(other.getSuccess());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest request_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder> requestBuilder_;
+ /**
+ * .WriteDescriptorRequest request = 1;
+ * @return Whether the request field is set.
+ */
+ public boolean hasRequest() {
+ return requestBuilder_ != null || request_ != null;
+ }
+ /**
+ * .WriteDescriptorRequest request = 1;
+ * @return The request.
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest getRequest() {
+ if (requestBuilder_ == null) {
+ return request_ == null ? com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance() : request_;
+ } else {
+ return requestBuilder_.getMessage();
+ }
+ }
+ /**
+ * .WriteDescriptorRequest request = 1;
+ */
+ public Builder setRequest(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest value) {
+ if (requestBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ request_ = value;
+ onChanged();
+ } else {
+ requestBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .WriteDescriptorRequest request = 1;
+ */
+ public Builder setRequest(
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder builderForValue) {
+ if (requestBuilder_ == null) {
+ request_ = builderForValue.build();
+ onChanged();
+ } else {
+ requestBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .WriteDescriptorRequest request = 1;
+ */
+ public Builder mergeRequest(com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest value) {
+ if (requestBuilder_ == null) {
+ if (request_ != null) {
+ request_ =
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.newBuilder(request_).mergeFrom(value).buildPartial();
+ } else {
+ request_ = value;
+ }
+ onChanged();
+ } else {
+ requestBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .WriteDescriptorRequest request = 1;
+ */
+ public Builder clearRequest() {
+ if (requestBuilder_ == null) {
+ request_ = null;
+ onChanged();
+ } else {
+ request_ = null;
+ requestBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .WriteDescriptorRequest request = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder getRequestBuilder() {
+
+ onChanged();
+ return getRequestFieldBuilder().getBuilder();
+ }
+ /**
+ * .WriteDescriptorRequest request = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder getRequestOrBuilder() {
+ if (requestBuilder_ != null) {
+ return requestBuilder_.getMessageOrBuilder();
+ } else {
+ return request_ == null ?
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.getDefaultInstance() : request_;
+ }
+ }
+ /**
+ * .WriteDescriptorRequest request = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder>
+ getRequestFieldBuilder() {
+ if (requestBuilder_ == null) {
+ requestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequest.Builder, com.pauldemarco.flutter_blue.Protos.WriteDescriptorRequestOrBuilder>(
+ getRequest(),
+ getParentForChildren(),
+ isClean());
+ request_ = null;
+ }
+ return requestBuilder_;
+ }
+
+ private boolean success_ ;
+ /**
+ * bool success = 2;
+ * @return The success.
+ */
+ public boolean getSuccess() {
+ return success_;
+ }
+ /**
+ * bool success = 2;
+ * @param value The success to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSuccess(boolean value) {
+
+ success_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool success = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearSuccess() {
+
+ success_ = false;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:WriteDescriptorResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:WriteDescriptorResponse)
+ private static final com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public WriteDescriptorResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new WriteDescriptorResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.WriteDescriptorResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface SetNotificationRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:SetNotificationRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * string service_uuid = 2;
+ * @return The serviceUuid.
+ */
+ java.lang.String getServiceUuid();
+ /**
+ * string service_uuid = 2;
+ * @return The bytes for serviceUuid.
+ */
+ com.google.protobuf.ByteString
+ getServiceUuidBytes();
+
+ /**
+ * string secondary_service_uuid = 3;
+ * @return The secondaryServiceUuid.
+ */
+ java.lang.String getSecondaryServiceUuid();
+ /**
+ * string secondary_service_uuid = 3;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes();
+
+ /**
+ * string characteristic_uuid = 4;
+ * @return The characteristicUuid.
+ */
+ java.lang.String getCharacteristicUuid();
+ /**
+ * string characteristic_uuid = 4;
+ * @return The bytes for characteristicUuid.
+ */
+ com.google.protobuf.ByteString
+ getCharacteristicUuidBytes();
+
+ /**
+ * bool enable = 5;
+ * @return The enable.
+ */
+ boolean getEnable();
+ }
+ /**
+ * Protobuf type {@code SetNotificationRequest}
+ */
+ public static final class SetNotificationRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:SetNotificationRequest)
+ SetNotificationRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SetNotificationRequest.newBuilder() to construct.
+ private SetNotificationRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private SetNotificationRequest() {
+ remoteId_ = "";
+ serviceUuid_ = "";
+ secondaryServiceUuid_ = "";
+ characteristicUuid_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new SetNotificationRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private SetNotificationRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ serviceUuid_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ secondaryServiceUuid_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ characteristicUuid_ = s;
+ break;
+ }
+ case 40: {
+
+ enable_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.class, com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.Builder.class);
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SERVICE_UUID_FIELD_NUMBER = 2;
+ private volatile java.lang.Object serviceUuid_;
+ /**
+ * string service_uuid = 2;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string service_uuid = 2;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SECONDARY_SERVICE_UUID_FIELD_NUMBER = 3;
+ private volatile java.lang.Object secondaryServiceUuid_;
+ /**
+ * string secondary_service_uuid = 3;
+ * @return The secondaryServiceUuid.
+ */
+ public java.lang.String getSecondaryServiceUuid() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secondaryServiceUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 3;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secondaryServiceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHARACTERISTIC_UUID_FIELD_NUMBER = 4;
+ private volatile java.lang.Object characteristicUuid_;
+ /**
+ * string characteristic_uuid = 4;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ }
+ }
+ /**
+ * string characteristic_uuid = 4;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ENABLE_FIELD_NUMBER = 5;
+ private boolean enable_;
+ /**
+ * bool enable = 5;
+ * @return The enable.
+ */
+ public boolean getEnable() {
+ return enable_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceUuid_);
+ }
+ if (!getSecondaryServiceUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secondaryServiceUuid_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, characteristicUuid_);
+ }
+ if (enable_ != false) {
+ output.writeBool(5, enable_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ if (!getServiceUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceUuid_);
+ }
+ if (!getSecondaryServiceUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secondaryServiceUuid_);
+ }
+ if (!getCharacteristicUuidBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, characteristicUuid_);
+ }
+ if (enable_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(5, enable_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.SetNotificationRequest)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.SetNotificationRequest other = (com.pauldemarco.flutter_blue.Protos.SetNotificationRequest) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (!getServiceUuid()
+ .equals(other.getServiceUuid())) return false;
+ if (!getSecondaryServiceUuid()
+ .equals(other.getSecondaryServiceUuid())) return false;
+ if (!getCharacteristicUuid()
+ .equals(other.getCharacteristicUuid())) return false;
+ if (getEnable()
+ != other.getEnable()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ hash = (37 * hash) + SERVICE_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getServiceUuid().hashCode();
+ hash = (37 * hash) + SECONDARY_SERVICE_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getSecondaryServiceUuid().hashCode();
+ hash = (37 * hash) + CHARACTERISTIC_UUID_FIELD_NUMBER;
+ hash = (53 * hash) + getCharacteristicUuid().hashCode();
+ hash = (37 * hash) + ENABLE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getEnable());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.SetNotificationRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code SetNotificationRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:SetNotificationRequest)
+ com.pauldemarco.flutter_blue.Protos.SetNotificationRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.class, com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ serviceUuid_ = "";
+
+ secondaryServiceUuid_ = "";
+
+ characteristicUuid_ = "";
+
+ enable_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.SetNotificationRequest getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.SetNotificationRequest build() {
+ com.pauldemarco.flutter_blue.Protos.SetNotificationRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.SetNotificationRequest buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.SetNotificationRequest result = new com.pauldemarco.flutter_blue.Protos.SetNotificationRequest(this);
+ result.remoteId_ = remoteId_;
+ result.serviceUuid_ = serviceUuid_;
+ result.secondaryServiceUuid_ = secondaryServiceUuid_;
+ result.characteristicUuid_ = characteristicUuid_;
+ result.enable_ = enable_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.SetNotificationRequest) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.SetNotificationRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.SetNotificationRequest other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.SetNotificationRequest.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (!other.getServiceUuid().isEmpty()) {
+ serviceUuid_ = other.serviceUuid_;
+ onChanged();
+ }
+ if (!other.getSecondaryServiceUuid().isEmpty()) {
+ secondaryServiceUuid_ = other.secondaryServiceUuid_;
+ onChanged();
+ }
+ if (!other.getCharacteristicUuid().isEmpty()) {
+ characteristicUuid_ = other.characteristicUuid_;
+ onChanged();
+ }
+ if (other.getEnable() != false) {
+ setEnable(other.getEnable());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.SetNotificationRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.SetNotificationRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object serviceUuid_ = "";
+ /**
+ * string service_uuid = 2;
+ * @return The serviceUuid.
+ */
+ public java.lang.String getServiceUuid() {
+ java.lang.Object ref = serviceUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ serviceUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string service_uuid = 2;
+ * @return The bytes for serviceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getServiceUuidBytes() {
+ java.lang.Object ref = serviceUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ serviceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string service_uuid = 2;
+ * @param value The serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string service_uuid = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearServiceUuid() {
+
+ serviceUuid_ = getDefaultInstance().getServiceUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string service_uuid = 2;
+ * @param value The bytes for serviceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setServiceUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ serviceUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object secondaryServiceUuid_ = "";
+ /**
+ * string secondary_service_uuid = 3;
+ * @return The secondaryServiceUuid.
+ */
+ public java.lang.String getSecondaryServiceUuid() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ secondaryServiceUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 3;
+ * @return The bytes for secondaryServiceUuid.
+ */
+ public com.google.protobuf.ByteString
+ getSecondaryServiceUuidBytes() {
+ java.lang.Object ref = secondaryServiceUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ secondaryServiceUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string secondary_service_uuid = 3;
+ * @param value The secondaryServiceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecondaryServiceUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ secondaryServiceUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string secondary_service_uuid = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSecondaryServiceUuid() {
+
+ secondaryServiceUuid_ = getDefaultInstance().getSecondaryServiceUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string secondary_service_uuid = 3;
+ * @param value The bytes for secondaryServiceUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSecondaryServiceUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ secondaryServiceUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object characteristicUuid_ = "";
+ /**
+ * string characteristic_uuid = 4;
+ * @return The characteristicUuid.
+ */
+ public java.lang.String getCharacteristicUuid() {
+ java.lang.Object ref = characteristicUuid_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ characteristicUuid_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string characteristic_uuid = 4;
+ * @return The bytes for characteristicUuid.
+ */
+ public com.google.protobuf.ByteString
+ getCharacteristicUuidBytes() {
+ java.lang.Object ref = characteristicUuid_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ characteristicUuid_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string characteristic_uuid = 4;
+ * @param value The characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuid(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string characteristic_uuid = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearCharacteristicUuid() {
+
+ characteristicUuid_ = getDefaultInstance().getCharacteristicUuid();
+ onChanged();
+ return this;
+ }
+ /**
+ * string characteristic_uuid = 4;
+ * @param value The bytes for characteristicUuid to set.
+ * @return This builder for chaining.
+ */
+ public Builder setCharacteristicUuidBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ characteristicUuid_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean enable_ ;
+ /**
+ * bool enable = 5;
+ * @return The enable.
+ */
+ public boolean getEnable() {
+ return enable_;
+ }
+ /**
+ * bool enable = 5;
+ * @param value The enable to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEnable(boolean value) {
+
+ enable_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool enable = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearEnable() {
+
+ enable_ = false;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:SetNotificationRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:SetNotificationRequest)
+ private static final com.pauldemarco.flutter_blue.Protos.SetNotificationRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.SetNotificationRequest();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SetNotificationRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SetNotificationRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.SetNotificationRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface SetNotificationResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:SetNotificationResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return Whether the characteristic field is set.
+ */
+ boolean hasCharacteristic();
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return The characteristic.
+ */
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic();
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder();
+
+ /**
+ * bool success = 3;
+ * @return The success.
+ */
+ boolean getSuccess();
+ }
+ /**
+ * Protobuf type {@code SetNotificationResponse}
+ */
+ public static final class SetNotificationResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:SetNotificationResponse)
+ SetNotificationResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use SetNotificationResponse.newBuilder() to construct.
+ private SetNotificationResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private SetNotificationResponse() {
+ remoteId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new SetNotificationResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private SetNotificationResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 18: {
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder subBuilder = null;
+ if (characteristic_ != null) {
+ subBuilder = characteristic_.toBuilder();
+ }
+ characteristic_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(characteristic_);
+ characteristic_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 24: {
+
+ success_ = input.readBool();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.class, com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.Builder.class);
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHARACTERISTIC_FIELD_NUMBER = 2;
+ private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_;
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return Whether the characteristic field is set.
+ */
+ public boolean hasCharacteristic() {
+ return characteristic_ != null;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return The characteristic.
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
+ return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() {
+ return getCharacteristic();
+ }
+
+ public static final int SUCCESS_FIELD_NUMBER = 3;
+ private boolean success_;
+ /**
+ * bool success = 3;
+ * @return The success.
+ */
+ public boolean getSuccess() {
+ return success_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ if (characteristic_ != null) {
+ output.writeMessage(2, getCharacteristic());
+ }
+ if (success_ != false) {
+ output.writeBool(3, success_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ if (characteristic_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getCharacteristic());
+ }
+ if (success_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, success_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.SetNotificationResponse)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.SetNotificationResponse other = (com.pauldemarco.flutter_blue.Protos.SetNotificationResponse) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (hasCharacteristic() != other.hasCharacteristic()) return false;
+ if (hasCharacteristic()) {
+ if (!getCharacteristic()
+ .equals(other.getCharacteristic())) return false;
+ }
+ if (getSuccess()
+ != other.getSuccess()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ if (hasCharacteristic()) {
+ hash = (37 * hash) + CHARACTERISTIC_FIELD_NUMBER;
+ hash = (53 * hash) + getCharacteristic().hashCode();
+ }
+ hash = (37 * hash) + SUCCESS_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSuccess());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.SetNotificationResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code SetNotificationResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:SetNotificationResponse)
+ com.pauldemarco.flutter_blue.Protos.SetNotificationResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.class, com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ if (characteristicBuilder_ == null) {
+ characteristic_ = null;
+ } else {
+ characteristic_ = null;
+ characteristicBuilder_ = null;
+ }
+ success_ = false;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_SetNotificationResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.SetNotificationResponse getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.SetNotificationResponse build() {
+ com.pauldemarco.flutter_blue.Protos.SetNotificationResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.SetNotificationResponse buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.SetNotificationResponse result = new com.pauldemarco.flutter_blue.Protos.SetNotificationResponse(this);
+ result.remoteId_ = remoteId_;
+ if (characteristicBuilder_ == null) {
+ result.characteristic_ = characteristic_;
+ } else {
+ result.characteristic_ = characteristicBuilder_.build();
+ }
+ result.success_ = success_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.SetNotificationResponse) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.SetNotificationResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.SetNotificationResponse other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.SetNotificationResponse.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (other.hasCharacteristic()) {
+ mergeCharacteristic(other.getCharacteristic());
+ }
+ if (other.getSuccess() != false) {
+ setSuccess(other.getSuccess());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.SetNotificationResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.SetNotificationResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder> characteristicBuilder_;
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return Whether the characteristic field is set.
+ */
+ public boolean hasCharacteristic() {
+ return characteristicBuilder_ != null || characteristic_ != null;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return The characteristic.
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
+ if (characteristicBuilder_ == null) {
+ return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
+ } else {
+ return characteristicBuilder_.getMessage();
+ }
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
+ if (characteristicBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ characteristic_ = value;
+ onChanged();
+ } else {
+ characteristicBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder setCharacteristic(
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) {
+ if (characteristicBuilder_ == null) {
+ characteristic_ = builderForValue.build();
+ onChanged();
+ } else {
+ characteristicBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
+ if (characteristicBuilder_ == null) {
+ if (characteristic_ != null) {
+ characteristic_ =
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.newBuilder(characteristic_).mergeFrom(value).buildPartial();
+ } else {
+ characteristic_ = value;
+ }
+ onChanged();
+ } else {
+ characteristicBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder clearCharacteristic() {
+ if (characteristicBuilder_ == null) {
+ characteristic_ = null;
+ onChanged();
+ } else {
+ characteristic_ = null;
+ characteristicBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder getCharacteristicBuilder() {
+
+ onChanged();
+ return getCharacteristicFieldBuilder().getBuilder();
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() {
+ if (characteristicBuilder_ != null) {
+ return characteristicBuilder_.getMessageOrBuilder();
+ } else {
+ return characteristic_ == null ?
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
+ }
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder>
+ getCharacteristicFieldBuilder() {
+ if (characteristicBuilder_ == null) {
+ characteristicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder>(
+ getCharacteristic(),
+ getParentForChildren(),
+ isClean());
+ characteristic_ = null;
+ }
+ return characteristicBuilder_;
+ }
+
+ private boolean success_ ;
+ /**
+ * bool success = 3;
+ * @return The success.
+ */
+ public boolean getSuccess() {
+ return success_;
+ }
+ /**
+ * bool success = 3;
+ * @param value The success to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSuccess(boolean value) {
+
+ success_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool success = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearSuccess() {
+
+ success_ = false;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:SetNotificationResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:SetNotificationResponse)
+ private static final com.pauldemarco.flutter_blue.Protos.SetNotificationResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.SetNotificationResponse();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.SetNotificationResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public SetNotificationResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new SetNotificationResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.SetNotificationResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface OnCharacteristicChangedOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:OnCharacteristicChanged)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return Whether the characteristic field is set.
+ */
+ boolean hasCharacteristic();
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return The characteristic.
+ */
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic();
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder();
+ }
+ /**
+ * Protobuf type {@code OnCharacteristicChanged}
+ */
+ public static final class OnCharacteristicChanged extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:OnCharacteristicChanged)
+ OnCharacteristicChangedOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use OnCharacteristicChanged.newBuilder() to construct.
+ private OnCharacteristicChanged(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private OnCharacteristicChanged() {
+ remoteId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new OnCharacteristicChanged();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private OnCharacteristicChanged(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 18: {
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder subBuilder = null;
+ if (characteristic_ != null) {
+ subBuilder = characteristic_.toBuilder();
+ }
+ characteristic_ = input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(characteristic_);
+ characteristic_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_OnCharacteristicChanged_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_OnCharacteristicChanged_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.class, com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.Builder.class);
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CHARACTERISTIC_FIELD_NUMBER = 2;
+ private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_;
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return Whether the characteristic field is set.
+ */
+ public boolean hasCharacteristic() {
+ return characteristic_ != null;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return The characteristic.
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
+ return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() {
+ return getCharacteristic();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ if (characteristic_ != null) {
+ output.writeMessage(2, getCharacteristic());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ if (characteristic_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getCharacteristic());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged other = (com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (hasCharacteristic() != other.hasCharacteristic()) return false;
+ if (hasCharacteristic()) {
+ if (!getCharacteristic()
+ .equals(other.getCharacteristic())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ if (hasCharacteristic()) {
+ hash = (37 * hash) + CHARACTERISTIC_FIELD_NUMBER;
+ hash = (53 * hash) + getCharacteristic().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code OnCharacteristicChanged}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:OnCharacteristicChanged)
+ com.pauldemarco.flutter_blue.Protos.OnCharacteristicChangedOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_OnCharacteristicChanged_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_OnCharacteristicChanged_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.class, com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ if (characteristicBuilder_ == null) {
+ characteristic_ = null;
+ } else {
+ characteristic_ = null;
+ characteristicBuilder_ = null;
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_OnCharacteristicChanged_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged build() {
+ com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged result = new com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged(this);
+ result.remoteId_ = remoteId_;
+ if (characteristicBuilder_ == null) {
+ result.characteristic_ = characteristic_;
+ } else {
+ result.characteristic_ = characteristicBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (other.hasCharacteristic()) {
+ mergeCharacteristic(other.getCharacteristic());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic characteristic_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder> characteristicBuilder_;
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return Whether the characteristic field is set.
+ */
+ public boolean hasCharacteristic() {
+ return characteristicBuilder_ != null || characteristic_ != null;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ * @return The characteristic.
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic getCharacteristic() {
+ if (characteristicBuilder_ == null) {
+ return characteristic_ == null ? com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
+ } else {
+ return characteristicBuilder_.getMessage();
+ }
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder setCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
+ if (characteristicBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ characteristic_ = value;
+ onChanged();
+ } else {
+ characteristicBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder setCharacteristic(
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder builderForValue) {
+ if (characteristicBuilder_ == null) {
+ characteristic_ = builderForValue.build();
+ onChanged();
+ } else {
+ characteristicBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder mergeCharacteristic(com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic value) {
+ if (characteristicBuilder_ == null) {
+ if (characteristic_ != null) {
+ characteristic_ =
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.newBuilder(characteristic_).mergeFrom(value).buildPartial();
+ } else {
+ characteristic_ = value;
+ }
+ onChanged();
+ } else {
+ characteristicBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public Builder clearCharacteristic() {
+ if (characteristicBuilder_ == null) {
+ characteristic_ = null;
+ onChanged();
+ } else {
+ characteristic_ = null;
+ characteristicBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder getCharacteristicBuilder() {
+
+ onChanged();
+ return getCharacteristicFieldBuilder().getBuilder();
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder getCharacteristicOrBuilder() {
+ if (characteristicBuilder_ != null) {
+ return characteristicBuilder_.getMessageOrBuilder();
+ } else {
+ return characteristic_ == null ?
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.getDefaultInstance() : characteristic_;
+ }
+ }
+ /**
+ * .BluetoothCharacteristic characteristic = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder>
+ getCharacteristicFieldBuilder() {
+ if (characteristicBuilder_ == null) {
+ characteristicBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristic.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothCharacteristicOrBuilder>(
+ getCharacteristic(),
+ getParentForChildren(),
+ isClean());
+ characteristic_ = null;
+ }
+ return characteristicBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:OnCharacteristicChanged)
+ }
+
+ // @@protoc_insertion_point(class_scope:OnCharacteristicChanged)
+ private static final com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public OnCharacteristicChanged parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new OnCharacteristicChanged(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.OnCharacteristicChanged getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface DeviceStateResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:DeviceStateResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * .DeviceStateResponse.BluetoothDeviceState state = 2;
+ * @return The enum numeric value on the wire for state.
+ */
+ int getStateValue();
+ /**
+ * .DeviceStateResponse.BluetoothDeviceState state = 2;
+ * @return The state.
+ */
+ com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState getState();
+ }
+ /**
+ * Protobuf type {@code DeviceStateResponse}
+ */
+ public static final class DeviceStateResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:DeviceStateResponse)
+ DeviceStateResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DeviceStateResponse.newBuilder() to construct.
+ private DeviceStateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DeviceStateResponse() {
+ remoteId_ = "";
+ state_ = 0;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DeviceStateResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DeviceStateResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 16: {
+ int rawValue = input.readEnum();
+
+ state_ = rawValue;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_DeviceStateResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_DeviceStateResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.class, com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.Builder.class);
+ }
+
+ /**
+ * Protobuf enum {@code DeviceStateResponse.BluetoothDeviceState}
+ */
+ public enum BluetoothDeviceState
+ implements com.google.protobuf.ProtocolMessageEnum {
+ /**
+ * DISCONNECTED = 0;
+ */
+ DISCONNECTED(0),
+ /**
+ * CONNECTING = 1;
+ */
+ CONNECTING(1),
+ /**
+ * CONNECTED = 2;
+ */
+ CONNECTED(2),
+ /**
+ * DISCONNECTING = 3;
+ */
+ DISCONNECTING(3),
+ UNRECOGNIZED(-1),
+ ;
+
+ /**
+ * DISCONNECTED = 0;
+ */
+ public static final int DISCONNECTED_VALUE = 0;
+ /**
+ * CONNECTING = 1;
+ */
+ public static final int CONNECTING_VALUE = 1;
+ /**
+ * CONNECTED = 2;
+ */
+ public static final int CONNECTED_VALUE = 2;
+ /**
+ * DISCONNECTING = 3;
+ */
+ public static final int DISCONNECTING_VALUE = 3;
+
+
+ public final int getNumber() {
+ if (this == UNRECOGNIZED) {
+ throw new java.lang.IllegalArgumentException(
+ "Can't get the number of an unknown enum value.");
+ }
+ return value;
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ * @deprecated Use {@link #forNumber(int)} instead.
+ */
+ @java.lang.Deprecated
+ public static BluetoothDeviceState valueOf(int value) {
+ return forNumber(value);
+ }
+
+ /**
+ * @param value The numeric wire value of the corresponding enum entry.
+ * @return The enum associated with the given numeric wire value.
+ */
+ public static BluetoothDeviceState forNumber(int value) {
+ switch (value) {
+ case 0: return DISCONNECTED;
+ case 1: return CONNECTING;
+ case 2: return CONNECTED;
+ case 3: return DISCONNECTING;
+ default: return null;
+ }
+ }
+
+ public static com.google.protobuf.Internal.EnumLiteMap
+ internalGetValueMap() {
+ return internalValueMap;
+ }
+ private static final com.google.protobuf.Internal.EnumLiteMap<
+ BluetoothDeviceState> internalValueMap =
+ new com.google.protobuf.Internal.EnumLiteMap() {
+ public BluetoothDeviceState findValueByNumber(int number) {
+ return BluetoothDeviceState.forNumber(number);
+ }
+ };
+
+ public final com.google.protobuf.Descriptors.EnumValueDescriptor
+ getValueDescriptor() {
+ return getDescriptor().getValues().get(ordinal());
+ }
+ public final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptorForType() {
+ return getDescriptor();
+ }
+ public static final com.google.protobuf.Descriptors.EnumDescriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.getDescriptor().getEnumTypes().get(0);
+ }
+
+ private static final BluetoothDeviceState[] VALUES = values();
+
+ public static BluetoothDeviceState valueOf(
+ com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
+ if (desc.getType() != getDescriptor()) {
+ throw new java.lang.IllegalArgumentException(
+ "EnumValueDescriptor is not for this type.");
+ }
+ if (desc.getIndex() == -1) {
+ return UNRECOGNIZED;
+ }
+ return VALUES[desc.getIndex()];
+ }
+
+ private final int value;
+
+ private BluetoothDeviceState(int value) {
+ this.value = value;
+ }
+
+ // @@protoc_insertion_point(enum_scope:DeviceStateResponse.BluetoothDeviceState)
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int STATE_FIELD_NUMBER = 2;
+ private int state_;
+ /**
+ * .DeviceStateResponse.BluetoothDeviceState state = 2;
+ * @return The enum numeric value on the wire for state.
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ * .DeviceStateResponse.BluetoothDeviceState state = 2;
+ * @return The state.
+ */
+ public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState getState() {
+ @SuppressWarnings("deprecation")
+ com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState result = com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.valueOf(state_);
+ return result == null ? com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.UNRECOGNIZED : result;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ if (state_ != com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.DISCONNECTED.getNumber()) {
+ output.writeEnum(2, state_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ if (state_ != com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.DISCONNECTED.getNumber()) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeEnumSize(2, state_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.DeviceStateResponse)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.DeviceStateResponse other = (com.pauldemarco.flutter_blue.Protos.DeviceStateResponse) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (state_ != other.state_) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + state_;
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.DeviceStateResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code DeviceStateResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:DeviceStateResponse)
+ com.pauldemarco.flutter_blue.Protos.DeviceStateResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_DeviceStateResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_DeviceStateResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.class, com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ state_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_DeviceStateResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse build() {
+ com.pauldemarco.flutter_blue.Protos.DeviceStateResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.DeviceStateResponse result = new com.pauldemarco.flutter_blue.Protos.DeviceStateResponse(this);
+ result.remoteId_ = remoteId_;
+ result.state_ = state_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.DeviceStateResponse) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.DeviceStateResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.DeviceStateResponse other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (other.state_ != 0) {
+ setStateValue(other.getStateValue());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.DeviceStateResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.DeviceStateResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int state_ = 0;
+ /**
+ * .DeviceStateResponse.BluetoothDeviceState state = 2;
+ * @return The enum numeric value on the wire for state.
+ */
+ public int getStateValue() {
+ return state_;
+ }
+ /**
+ * .DeviceStateResponse.BluetoothDeviceState state = 2;
+ * @param value The enum numeric value on the wire for state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setStateValue(int value) {
+ state_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * .DeviceStateResponse.BluetoothDeviceState state = 2;
+ * @return The state.
+ */
+ public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState getState() {
+ @SuppressWarnings("deprecation")
+ com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState result = com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.valueOf(state_);
+ return result == null ? com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState.UNRECOGNIZED : result;
+ }
+ /**
+ * .DeviceStateResponse.BluetoothDeviceState state = 2;
+ * @param value The state to set.
+ * @return This builder for chaining.
+ */
+ public Builder setState(com.pauldemarco.flutter_blue.Protos.DeviceStateResponse.BluetoothDeviceState value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ state_ = value.getNumber();
+ onChanged();
+ return this;
+ }
+ /**
+ * .DeviceStateResponse.BluetoothDeviceState state = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearState() {
+
+ state_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:DeviceStateResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:DeviceStateResponse)
+ private static final com.pauldemarco.flutter_blue.Protos.DeviceStateResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.DeviceStateResponse();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.DeviceStateResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public DeviceStateResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new DeviceStateResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.DeviceStateResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface ConnectedDevicesResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:ConnectedDevicesResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ java.util.List
+ getDevicesList();
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevices(int index);
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ int getDevicesCount();
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder>
+ getDevicesOrBuilderList();
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder getDevicesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code ConnectedDevicesResponse}
+ */
+ public static final class ConnectedDevicesResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:ConnectedDevicesResponse)
+ ConnectedDevicesResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ConnectedDevicesResponse.newBuilder() to construct.
+ private ConnectedDevicesResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ConnectedDevicesResponse() {
+ devices_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ConnectedDevicesResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ConnectedDevicesResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ devices_ = new java.util.ArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ devices_.add(
+ input.readMessage(com.pauldemarco.flutter_blue.Protos.BluetoothDevice.parser(), extensionRegistry));
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ devices_ = java.util.Collections.unmodifiableList(devices_);
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectedDevicesResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectedDevicesResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.class, com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.Builder.class);
+ }
+
+ public static final int DEVICES_FIELD_NUMBER = 1;
+ private java.util.List devices_;
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public java.util.List getDevicesList() {
+ return devices_;
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder>
+ getDevicesOrBuilderList() {
+ return devices_;
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public int getDevicesCount() {
+ return devices_.size();
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevices(int index) {
+ return devices_.get(index);
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder getDevicesOrBuilder(
+ int index) {
+ return devices_.get(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < devices_.size(); i++) {
+ output.writeMessage(1, devices_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ for (int i = 0; i < devices_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, devices_.get(i));
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse other = (com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse) obj;
+
+ if (!getDevicesList()
+ .equals(other.getDevicesList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getDevicesCount() > 0) {
+ hash = (37 * hash) + DEVICES_FIELD_NUMBER;
+ hash = (53 * hash) + getDevicesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code ConnectedDevicesResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:ConnectedDevicesResponse)
+ com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectedDevicesResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectedDevicesResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.class, com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ getDevicesFieldBuilder();
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ if (devicesBuilder_ == null) {
+ devices_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ devicesBuilder_.clear();
+ }
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_ConnectedDevicesResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse build() {
+ com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse result = new com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse(this);
+ int from_bitField0_ = bitField0_;
+ if (devicesBuilder_ == null) {
+ if (((bitField0_ & 0x00000001) != 0)) {
+ devices_ = java.util.Collections.unmodifiableList(devices_);
+ bitField0_ = (bitField0_ & ~0x00000001);
+ }
+ result.devices_ = devices_;
+ } else {
+ result.devices_ = devicesBuilder_.build();
+ }
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse.getDefaultInstance()) return this;
+ if (devicesBuilder_ == null) {
+ if (!other.devices_.isEmpty()) {
+ if (devices_.isEmpty()) {
+ devices_ = other.devices_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ } else {
+ ensureDevicesIsMutable();
+ devices_.addAll(other.devices_);
+ }
+ onChanged();
+ }
+ } else {
+ if (!other.devices_.isEmpty()) {
+ if (devicesBuilder_.isEmpty()) {
+ devicesBuilder_.dispose();
+ devicesBuilder_ = null;
+ devices_ = other.devices_;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ devicesBuilder_ =
+ com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
+ getDevicesFieldBuilder() : null;
+ } else {
+ devicesBuilder_.addAllMessages(other.devices_);
+ }
+ }
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+ private int bitField0_;
+
+ private java.util.List devices_ =
+ java.util.Collections.emptyList();
+ private void ensureDevicesIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ devices_ = new java.util.ArrayList(devices_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothDevice, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder> devicesBuilder_;
+
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public java.util.List getDevicesList() {
+ if (devicesBuilder_ == null) {
+ return java.util.Collections.unmodifiableList(devices_);
+ } else {
+ return devicesBuilder_.getMessageList();
+ }
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public int getDevicesCount() {
+ if (devicesBuilder_ == null) {
+ return devices_.size();
+ } else {
+ return devicesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDevice getDevices(int index) {
+ if (devicesBuilder_ == null) {
+ return devices_.get(index);
+ } else {
+ return devicesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public Builder setDevices(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
+ if (devicesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDevicesIsMutable();
+ devices_.set(index, value);
+ onChanged();
+ } else {
+ devicesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public Builder setDevices(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder builderForValue) {
+ if (devicesBuilder_ == null) {
+ ensureDevicesIsMutable();
+ devices_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ devicesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public Builder addDevices(com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
+ if (devicesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDevicesIsMutable();
+ devices_.add(value);
+ onChanged();
+ } else {
+ devicesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public Builder addDevices(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice value) {
+ if (devicesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureDevicesIsMutable();
+ devices_.add(index, value);
+ onChanged();
+ } else {
+ devicesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public Builder addDevices(
+ com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder builderForValue) {
+ if (devicesBuilder_ == null) {
+ ensureDevicesIsMutable();
+ devices_.add(builderForValue.build());
+ onChanged();
+ } else {
+ devicesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public Builder addDevices(
+ int index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder builderForValue) {
+ if (devicesBuilder_ == null) {
+ ensureDevicesIsMutable();
+ devices_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ devicesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public Builder addAllDevices(
+ java.lang.Iterable extends com.pauldemarco.flutter_blue.Protos.BluetoothDevice> values) {
+ if (devicesBuilder_ == null) {
+ ensureDevicesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, devices_);
+ onChanged();
+ } else {
+ devicesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public Builder clearDevices() {
+ if (devicesBuilder_ == null) {
+ devices_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ devicesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public Builder removeDevices(int index) {
+ if (devicesBuilder_ == null) {
+ ensureDevicesIsMutable();
+ devices_.remove(index);
+ onChanged();
+ } else {
+ devicesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder getDevicesBuilder(
+ int index) {
+ return getDevicesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder getDevicesOrBuilder(
+ int index) {
+ if (devicesBuilder_ == null) {
+ return devices_.get(index); } else {
+ return devicesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public java.util.List extends com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder>
+ getDevicesOrBuilderList() {
+ if (devicesBuilder_ != null) {
+ return devicesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(devices_);
+ }
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder addDevicesBuilder() {
+ return getDevicesFieldBuilder().addBuilder(
+ com.pauldemarco.flutter_blue.Protos.BluetoothDevice.getDefaultInstance());
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder addDevicesBuilder(
+ int index) {
+ return getDevicesFieldBuilder().addBuilder(
+ index, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.getDefaultInstance());
+ }
+ /**
+ * repeated .BluetoothDevice devices = 1;
+ */
+ public java.util.List
+ getDevicesBuilderList() {
+ return getDevicesFieldBuilder().getBuilderList();
+ }
+ private com.google.protobuf.RepeatedFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothDevice, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder>
+ getDevicesFieldBuilder() {
+ if (devicesBuilder_ == null) {
+ devicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
+ com.pauldemarco.flutter_blue.Protos.BluetoothDevice, com.pauldemarco.flutter_blue.Protos.BluetoothDevice.Builder, com.pauldemarco.flutter_blue.Protos.BluetoothDeviceOrBuilder>(
+ devices_,
+ ((bitField0_ & 0x00000001) != 0),
+ getParentForChildren(),
+ isClean());
+ devices_ = null;
+ }
+ return devicesBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:ConnectedDevicesResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:ConnectedDevicesResponse)
+ private static final com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public ConnectedDevicesResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new ConnectedDevicesResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.ConnectedDevicesResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface MtuSizeRequestOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:MtuSizeRequest)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * uint32 mtu = 2;
+ * @return The mtu.
+ */
+ int getMtu();
+ }
+ /**
+ * Protobuf type {@code MtuSizeRequest}
+ */
+ public static final class MtuSizeRequest extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:MtuSizeRequest)
+ MtuSizeRequestOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MtuSizeRequest.newBuilder() to construct.
+ private MtuSizeRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MtuSizeRequest() {
+ remoteId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MtuSizeRequest();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MtuSizeRequest(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 16: {
+
+ mtu_ = input.readUInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.class, com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.Builder.class);
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MTU_FIELD_NUMBER = 2;
+ private int mtu_;
+ /**
+ * uint32 mtu = 2;
+ * @return The mtu.
+ */
+ public int getMtu() {
+ return mtu_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ if (mtu_ != 0) {
+ output.writeUInt32(2, mtu_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ if (mtu_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, mtu_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.MtuSizeRequest)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.MtuSizeRequest other = (com.pauldemarco.flutter_blue.Protos.MtuSizeRequest) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (getMtu()
+ != other.getMtu()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ hash = (37 * hash) + MTU_FIELD_NUMBER;
+ hash = (53 * hash) + getMtu();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.MtuSizeRequest prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code MtuSizeRequest}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:MtuSizeRequest)
+ com.pauldemarco.flutter_blue.Protos.MtuSizeRequestOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeRequest_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeRequest_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.class, com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ mtu_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeRequest_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.MtuSizeRequest getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.MtuSizeRequest build() {
+ com.pauldemarco.flutter_blue.Protos.MtuSizeRequest result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.MtuSizeRequest buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.MtuSizeRequest result = new com.pauldemarco.flutter_blue.Protos.MtuSizeRequest(this);
+ result.remoteId_ = remoteId_;
+ result.mtu_ = mtu_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.MtuSizeRequest) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.MtuSizeRequest)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.MtuSizeRequest other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.MtuSizeRequest.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (other.getMtu() != 0) {
+ setMtu(other.getMtu());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.MtuSizeRequest parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.MtuSizeRequest) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int mtu_ ;
+ /**
+ * uint32 mtu = 2;
+ * @return The mtu.
+ */
+ public int getMtu() {
+ return mtu_;
+ }
+ /**
+ * uint32 mtu = 2;
+ * @param value The mtu to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMtu(int value) {
+
+ mtu_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 mtu = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMtu() {
+
+ mtu_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:MtuSizeRequest)
+ }
+
+ // @@protoc_insertion_point(class_scope:MtuSizeRequest)
+ private static final com.pauldemarco.flutter_blue.Protos.MtuSizeRequest DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.MtuSizeRequest();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeRequest getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public MtuSizeRequest parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MtuSizeRequest(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.MtuSizeRequest getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface MtuSizeResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:MtuSizeResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+
+ /**
+ * uint32 mtu = 2;
+ * @return The mtu.
+ */
+ int getMtu();
+ }
+ /**
+ * Protobuf type {@code MtuSizeResponse}
+ */
+ public static final class MtuSizeResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:MtuSizeResponse)
+ MtuSizeResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use MtuSizeResponse.newBuilder() to construct.
+ private MtuSizeResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private MtuSizeResponse() {
+ remoteId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new MtuSizeResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private MtuSizeResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ case 16: {
+
+ mtu_ = input.readUInt32();
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.class, com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.Builder.class);
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int MTU_FIELD_NUMBER = 2;
+ private int mtu_;
+ /**
+ * uint32 mtu = 2;
+ * @return The mtu.
+ */
+ public int getMtu() {
+ return mtu_;
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ if (mtu_ != 0) {
+ output.writeUInt32(2, mtu_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ if (mtu_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeUInt32Size(2, mtu_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.MtuSizeResponse)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.MtuSizeResponse other = (com.pauldemarco.flutter_blue.Protos.MtuSizeResponse) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (getMtu()
+ != other.getMtu()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ hash = (37 * hash) + MTU_FIELD_NUMBER;
+ hash = (53 * hash) + getMtu();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.MtuSizeResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code MtuSizeResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:MtuSizeResponse)
+ com.pauldemarco.flutter_blue.Protos.MtuSizeResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.class, com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ mtu_ = 0;
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_MtuSizeResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.MtuSizeResponse getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.MtuSizeResponse build() {
+ com.pauldemarco.flutter_blue.Protos.MtuSizeResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.MtuSizeResponse buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.MtuSizeResponse result = new com.pauldemarco.flutter_blue.Protos.MtuSizeResponse(this);
+ result.remoteId_ = remoteId_;
+ result.mtu_ = mtu_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.MtuSizeResponse) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.MtuSizeResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.MtuSizeResponse other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.MtuSizeResponse.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ if (other.getMtu() != 0) {
+ setMtu(other.getMtu());
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.MtuSizeResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.MtuSizeResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+
+ private int mtu_ ;
+ /**
+ * uint32 mtu = 2;
+ * @return The mtu.
+ */
+ public int getMtu() {
+ return mtu_;
+ }
+ /**
+ * uint32 mtu = 2;
+ * @param value The mtu to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMtu(int value) {
+
+ mtu_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * uint32 mtu = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearMtu() {
+
+ mtu_ = 0;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:MtuSizeResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:MtuSizeResponse)
+ private static final com.pauldemarco.flutter_blue.Protos.MtuSizeResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.MtuSizeResponse();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.MtuSizeResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public MtuSizeResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new MtuSizeResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.MtuSizeResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ public interface IsReadyToSendWriteWithoutResponseOrBuilder extends
+ // @@protoc_insertion_point(interface_extends:IsReadyToSendWriteWithoutResponse)
+ com.google.protobuf.MessageOrBuilder {
+
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ java.lang.String getRemoteId();
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ com.google.protobuf.ByteString
+ getRemoteIdBytes();
+ }
+ /**
+ * Protobuf type {@code IsReadyToSendWriteWithoutResponse}
+ */
+ public static final class IsReadyToSendWriteWithoutResponse extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:IsReadyToSendWriteWithoutResponse)
+ IsReadyToSendWriteWithoutResponseOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use IsReadyToSendWriteWithoutResponse.newBuilder() to construct.
+ private IsReadyToSendWriteWithoutResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private IsReadyToSendWriteWithoutResponse() {
+ remoteId_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new IsReadyToSendWriteWithoutResponse();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private IsReadyToSendWriteWithoutResponse(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ remoteId_ = s;
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_IsReadyToSendWriteWithoutResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_IsReadyToSendWriteWithoutResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.class, com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.Builder.class);
+ }
+
+ public static final int REMOTE_ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object remoteId_;
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getRemoteIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, remoteId_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getRemoteIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, remoteId_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse)) {
+ return super.equals(obj);
+ }
+ com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse other = (com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse) obj;
+
+ if (!getRemoteId()
+ .equals(other.getRemoteId())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + REMOTE_ID_FIELD_NUMBER;
+ hash = (53 * hash) + getRemoteId().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code IsReadyToSendWriteWithoutResponse}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder implements
+ // @@protoc_insertion_point(builder_implements:IsReadyToSendWriteWithoutResponse)
+ com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponseOrBuilder {
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_IsReadyToSendWriteWithoutResponse_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_IsReadyToSendWriteWithoutResponse_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.class, com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.Builder.class);
+ }
+
+ // Construct using com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.newBuilder()
+ private Builder() {
+ maybeForceBuilderInitialization();
+ }
+
+ private Builder(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ super(parent);
+ maybeForceBuilderInitialization();
+ }
+ private void maybeForceBuilderInitialization() {
+ if (com.google.protobuf.GeneratedMessageV3
+ .alwaysUseFieldBuilders) {
+ }
+ }
+ @java.lang.Override
+ public Builder clear() {
+ super.clear();
+ remoteId_ = "";
+
+ return this;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Descriptors.Descriptor
+ getDescriptorForType() {
+ return com.pauldemarco.flutter_blue.Protos.internal_static_IsReadyToSendWriteWithoutResponse_descriptor;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse getDefaultInstanceForType() {
+ return com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.getDefaultInstance();
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse build() {
+ com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse result = buildPartial();
+ if (!result.isInitialized()) {
+ throw newUninitializedMessageException(result);
+ }
+ return result;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse buildPartial() {
+ com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse result = new com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse(this);
+ result.remoteId_ = remoteId_;
+ onBuilt();
+ return result;
+ }
+
+ @java.lang.Override
+ public Builder clone() {
+ return super.clone();
+ }
+ @java.lang.Override
+ public Builder setField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.setField(field, value);
+ }
+ @java.lang.Override
+ public Builder clearField(
+ com.google.protobuf.Descriptors.FieldDescriptor field) {
+ return super.clearField(field);
+ }
+ @java.lang.Override
+ public Builder clearOneof(
+ com.google.protobuf.Descriptors.OneofDescriptor oneof) {
+ return super.clearOneof(oneof);
+ }
+ @java.lang.Override
+ public Builder setRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ int index, java.lang.Object value) {
+ return super.setRepeatedField(field, index, value);
+ }
+ @java.lang.Override
+ public Builder addRepeatedField(
+ com.google.protobuf.Descriptors.FieldDescriptor field,
+ java.lang.Object value) {
+ return super.addRepeatedField(field, value);
+ }
+ @java.lang.Override
+ public Builder mergeFrom(com.google.protobuf.Message other) {
+ if (other instanceof com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse) {
+ return mergeFrom((com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse)other);
+ } else {
+ super.mergeFrom(other);
+ return this;
+ }
+ }
+
+ public Builder mergeFrom(com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse other) {
+ if (other == com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse.getDefaultInstance()) return this;
+ if (!other.getRemoteId().isEmpty()) {
+ remoteId_ = other.remoteId_;
+ onChanged();
+ }
+ this.mergeUnknownFields(other.unknownFields);
+ onChanged();
+ return this;
+ }
+
+ @java.lang.Override
+ public final boolean isInitialized() {
+ return true;
+ }
+
+ @java.lang.Override
+ public Builder mergeFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse parsedMessage = null;
+ try {
+ parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ parsedMessage = (com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse) e.getUnfinishedMessage();
+ throw e.unwrapIOException();
+ } finally {
+ if (parsedMessage != null) {
+ mergeFrom(parsedMessage);
+ }
+ }
+ return this;
+ }
+
+ private java.lang.Object remoteId_ = "";
+ /**
+ * string remote_id = 1;
+ * @return The remoteId.
+ */
+ public java.lang.String getRemoteId() {
+ java.lang.Object ref = remoteId_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ remoteId_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @return The bytes for remoteId.
+ */
+ public com.google.protobuf.ByteString
+ getRemoteIdBytes() {
+ java.lang.Object ref = remoteId_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ remoteId_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearRemoteId() {
+
+ remoteId_ = getDefaultInstance().getRemoteId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string remote_id = 1;
+ * @param value The bytes for remoteId to set.
+ * @return This builder for chaining.
+ */
+ public Builder setRemoteIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ remoteId_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:IsReadyToSendWriteWithoutResponse)
+ }
+
+ // @@protoc_insertion_point(class_scope:IsReadyToSendWriteWithoutResponse)
+ private static final com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse();
+ }
+
+ public static com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser
+ PARSER = new com.google.protobuf.AbstractParser() {
+ @java.lang.Override
+ public IsReadyToSendWriteWithoutResponse parsePartialFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return new IsReadyToSendWriteWithoutResponse(input, extensionRegistry);
+ }
+ };
+
+ public static com.google.protobuf.Parser parser() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.google.protobuf.Parser getParserForType() {
+ return PARSER;
+ }
+
+ @java.lang.Override
+ public com.pauldemarco.flutter_blue.Protos.IsReadyToSendWriteWithoutResponse getDefaultInstanceForType() {
+ return DEFAULT_INSTANCE;
+ }
+
+ }
+
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_Int32Value_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_Int32Value_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_BluetoothState_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_BluetoothState_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_AdvertisementData_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_AdvertisementData_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_AdvertisementData_ManufacturerDataEntry_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_AdvertisementData_ManufacturerDataEntry_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_AdvertisementData_ServiceDataEntry_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_AdvertisementData_ServiceDataEntry_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_ScanSettings_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_ScanSettings_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_ScanResult_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_ScanResult_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_ConnectRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_ConnectRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_BluetoothDevice_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_BluetoothDevice_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_BluetoothService_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_BluetoothService_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_BluetoothCharacteristic_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_BluetoothCharacteristic_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_BluetoothDescriptor_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_BluetoothDescriptor_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_CharacteristicProperties_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_CharacteristicProperties_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_DiscoverServicesResult_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_DiscoverServicesResult_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_ReadCharacteristicRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_ReadCharacteristicRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_ReadCharacteristicResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_ReadCharacteristicResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_ReadDescriptorRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_ReadDescriptorRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_ReadDescriptorResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_ReadDescriptorResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_WriteCharacteristicRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_WriteCharacteristicRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_WriteCharacteristicResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_WriteCharacteristicResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_WriteDescriptorRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_WriteDescriptorRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_WriteDescriptorResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_WriteDescriptorResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_SetNotificationRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_SetNotificationRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_SetNotificationResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_SetNotificationResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_OnCharacteristicChanged_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_OnCharacteristicChanged_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_DeviceStateResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_DeviceStateResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_ConnectedDevicesResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_ConnectedDevicesResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_MtuSizeRequest_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_MtuSizeRequest_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_MtuSizeResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_MtuSizeResponse_fieldAccessorTable;
+ private static final com.google.protobuf.Descriptors.Descriptor
+ internal_static_IsReadyToSendWriteWithoutResponse_descriptor;
+ private static final
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internal_static_IsReadyToSendWriteWithoutResponse_fieldAccessorTable;
+
+ public static com.google.protobuf.Descriptors.FileDescriptor
+ getDescriptor() {
+ return descriptor;
+ }
+ private static com.google.protobuf.Descriptors.FileDescriptor
+ descriptor;
+ static {
+ java.lang.String[] descriptorData = {
+ "\n\021flutterblue.proto\"\033\n\nInt32Value\022\r\n\005val" +
+ "ue\030\001 \001(\005\"\241\001\n\016BluetoothState\022$\n\005state\030\001 \001" +
+ "(\0162\025.BluetoothState.State\"i\n\005State\022\013\n\007UN" +
+ "KNOWN\020\000\022\017\n\013UNAVAILABLE\020\001\022\020\n\014UNAUTHORIZED" +
+ "\020\002\022\016\n\nTURNING_ON\020\003\022\006\n\002ON\020\004\022\017\n\013TURNING_OF" +
+ "F\020\005\022\007\n\003OFF\020\006\"\345\002\n\021AdvertisementData\022\022\n\nlo" +
+ "cal_name\030\001 \001(\t\022#\n\016tx_power_level\030\002 \001(\0132\013" +
+ ".Int32Value\022\023\n\013connectable\030\003 \001(\010\022C\n\021manu" +
+ "facturer_data\030\004 \003(\0132(.AdvertisementData." +
+ "ManufacturerDataEntry\0229\n\014service_data\030\005 " +
+ "\003(\0132#.AdvertisementData.ServiceDataEntry" +
+ "\022\025\n\rservice_uuids\030\006 \003(\t\0327\n\025ManufacturerD" +
+ "ataEntry\022\013\n\003key\030\001 \001(\005\022\r\n\005value\030\002 \001(\014:\0028\001" +
+ "\0322\n\020ServiceDataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005val" +
+ "ue\030\002 \001(\014:\0028\001\"Z\n\014ScanSettings\022\031\n\021android_" +
+ "scan_mode\030\001 \001(\005\022\025\n\rservice_uuids\030\002 \003(\t\022\030" +
+ "\n\020allow_duplicates\030\003 \001(\010\"l\n\nScanResult\022 " +
+ "\n\006device\030\001 \001(\0132\020.BluetoothDevice\022.\n\022adve" +
+ "rtisement_data\030\002 \001(\0132\022.AdvertisementData" +
+ "\022\014\n\004rssi\030\003 \001(\005\"A\n\016ConnectRequest\022\021\n\tremo" +
+ "te_id\030\001 \001(\t\022\034\n\024android_auto_connect\030\002 \001(" +
+ "\010\"\213\001\n\017BluetoothDevice\022\021\n\tremote_id\030\001 \001(\t" +
+ "\022\014\n\004name\030\002 \001(\t\022#\n\004type\030\003 \001(\0162\025.Bluetooth" +
+ "Device.Type\"2\n\004Type\022\013\n\007UNKNOWN\020\000\022\013\n\007CLAS" +
+ "SIC\020\001\022\006\n\002LE\020\002\022\010\n\004DUAL\020\003\"\250\001\n\020BluetoothSer" +
+ "vice\022\014\n\004uuid\030\001 \001(\t\022\021\n\tremote_id\030\002 \001(\t\022\022\n" +
+ "\nis_primary\030\003 \001(\010\0221\n\017characteristics\030\004 \003" +
+ "(\0132\030.BluetoothCharacteristic\022,\n\021included" +
+ "_services\030\005 \003(\0132\021.BluetoothService\"\326\001\n\027B" +
+ "luetoothCharacteristic\022\014\n\004uuid\030\001 \001(\t\022\021\n\t" +
+ "remote_id\030\002 \001(\t\022\023\n\013serviceUuid\030\003 \001(\t\022\034\n\024" +
+ "secondaryServiceUuid\030\004 \001(\t\022)\n\013descriptor" +
+ "s\030\005 \003(\0132\024.BluetoothDescriptor\022-\n\npropert" +
+ "ies\030\006 \001(\0132\031.CharacteristicProperties\022\r\n\005" +
+ "value\030\007 \001(\014\"v\n\023BluetoothDescriptor\022\014\n\004uu" +
+ "id\030\001 \001(\t\022\021\n\tremote_id\030\002 \001(\t\022\023\n\013serviceUu" +
+ "id\030\003 \001(\t\022\032\n\022characteristicUuid\030\004 \001(\t\022\r\n\005" +
+ "value\030\005 \001(\014\"\230\002\n\030CharacteristicProperties" +
+ "\022\021\n\tbroadcast\030\001 \001(\010\022\014\n\004read\030\002 \001(\010\022\036\n\026wri" +
+ "te_without_response\030\003 \001(\010\022\r\n\005write\030\004 \001(\010" +
+ "\022\016\n\006notify\030\005 \001(\010\022\020\n\010indicate\030\006 \001(\010\022#\n\033au" +
+ "thenticated_signed_writes\030\007 \001(\010\022\033\n\023exten" +
+ "ded_properties\030\010 \001(\010\022\"\n\032notify_encryptio" +
+ "n_required\030\t \001(\010\022$\n\034indicate_encryption_" +
+ "required\030\n \001(\010\"P\n\026DiscoverServicesResult" +
+ "\022\021\n\tremote_id\030\001 \001(\t\022#\n\010services\030\002 \003(\0132\021." +
+ "BluetoothService\"\201\001\n\031ReadCharacteristicR" +
+ "equest\022\021\n\tremote_id\030\001 \001(\t\022\033\n\023characteris" +
+ "tic_uuid\030\002 \001(\t\022\024\n\014service_uuid\030\003 \001(\t\022\036\n\026" +
+ "secondary_service_uuid\030\004 \001(\t\"a\n\032ReadChar" +
+ "acteristicResponse\022\021\n\tremote_id\030\001 \001(\t\0220\n" +
+ "\016characteristic\030\002 \001(\0132\030.BluetoothCharact" +
+ "eristic\"\226\001\n\025ReadDescriptorRequest\022\021\n\trem" +
+ "ote_id\030\001 \001(\t\022\027\n\017descriptor_uuid\030\002 \001(\t\022\024\n" +
+ "\014service_uuid\030\003 \001(\t\022\036\n\026secondary_service" +
+ "_uuid\030\004 \001(\t\022\033\n\023characteristic_uuid\030\005 \001(\t" +
+ "\"P\n\026ReadDescriptorResponse\022\'\n\007request\030\001 " +
+ "\001(\0132\026.ReadDescriptorRequest\022\r\n\005value\030\002 \001" +
+ "(\014\"\202\002\n\032WriteCharacteristicRequest\022\021\n\trem" +
+ "ote_id\030\001 \001(\t\022\033\n\023characteristic_uuid\030\002 \001(" +
+ "\t\022\024\n\014service_uuid\030\003 \001(\t\022\036\n\026secondary_ser" +
+ "vice_uuid\030\004 \001(\t\0229\n\nwrite_type\030\005 \001(\0162%.Wr" +
+ "iteCharacteristicRequest.WriteType\022\r\n\005va" +
+ "lue\030\006 \001(\014\"4\n\tWriteType\022\021\n\rWITH_RESPONSE\020" +
+ "\000\022\024\n\020WITHOUT_RESPONSE\020\001\"\\\n\033WriteCharacte" +
+ "risticResponse\022,\n\007request\030\001 \001(\0132\033.WriteC" +
+ "haracteristicRequest\022\017\n\007success\030\002 \001(\010\"\246\001" +
+ "\n\026WriteDescriptorRequest\022\021\n\tremote_id\030\001 " +
+ "\001(\t\022\027\n\017descriptor_uuid\030\002 \001(\t\022\024\n\014service_" +
+ "uuid\030\003 \001(\t\022\036\n\026secondary_service_uuid\030\004 \001" +
+ "(\t\022\033\n\023characteristic_uuid\030\005 \001(\t\022\r\n\005value" +
+ "\030\006 \001(\014\"T\n\027WriteDescriptorResponse\022(\n\007req" +
+ "uest\030\001 \001(\0132\027.WriteDescriptorRequest\022\017\n\007s" +
+ "uccess\030\002 \001(\010\"\216\001\n\026SetNotificationRequest\022" +
+ "\021\n\tremote_id\030\001 \001(\t\022\024\n\014service_uuid\030\002 \001(\t" +
+ "\022\036\n\026secondary_service_uuid\030\003 \001(\t\022\033\n\023char" +
+ "acteristic_uuid\030\004 \001(\t\022\016\n\006enable\030\005 \001(\010\"o\n" +
+ "\027SetNotificationResponse\022\021\n\tremote_id\030\001 " +
+ "\001(\t\0220\n\016characteristic\030\002 \001(\0132\030.BluetoothC" +
+ "haracteristic\022\017\n\007success\030\003 \001(\010\"^\n\027OnChar" +
+ "acteristicChanged\022\021\n\tremote_id\030\001 \001(\t\0220\n\016" +
+ "characteristic\030\002 \001(\0132\030.BluetoothCharacte" +
+ "ristic\"\276\001\n\023DeviceStateResponse\022\021\n\tremote" +
+ "_id\030\001 \001(\t\0228\n\005state\030\002 \001(\0162).DeviceStateRe" +
+ "sponse.BluetoothDeviceState\"Z\n\024Bluetooth" +
+ "DeviceState\022\020\n\014DISCONNECTED\020\000\022\016\n\nCONNECT" +
+ "ING\020\001\022\r\n\tCONNECTED\020\002\022\021\n\rDISCONNECTING\020\003\"" +
+ "=\n\030ConnectedDevicesResponse\022!\n\007devices\030\001" +
+ " \003(\0132\020.BluetoothDevice\"0\n\016MtuSizeRequest" +
+ "\022\021\n\tremote_id\030\001 \001(\t\022\013\n\003mtu\030\002 \001(\r\"1\n\017MtuS" +
+ "izeResponse\022\021\n\tremote_id\030\001 \001(\t\022\013\n\003mtu\030\002 " +
+ "\001(\r\"6\n!IsReadyToSendWriteWithoutResponse" +
+ "\022\021\n\tremote_id\030\001 \001(\tB/\n\034com.pauldemarco.f" +
+ "lutter_blueB\006Protos\242\002\006Protosb\006proto3"
+ };
+ descriptor = com.google.protobuf.Descriptors.FileDescriptor
+ .internalBuildGeneratedFileFrom(descriptorData,
+ new com.google.protobuf.Descriptors.FileDescriptor[] {
+ });
+ internal_static_Int32Value_descriptor =
+ getDescriptor().getMessageTypes().get(0);
+ internal_static_Int32Value_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_Int32Value_descriptor,
+ new java.lang.String[] { "Value", });
+ internal_static_BluetoothState_descriptor =
+ getDescriptor().getMessageTypes().get(1);
+ internal_static_BluetoothState_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_BluetoothState_descriptor,
+ new java.lang.String[] { "State", });
+ internal_static_AdvertisementData_descriptor =
+ getDescriptor().getMessageTypes().get(2);
+ internal_static_AdvertisementData_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_AdvertisementData_descriptor,
+ new java.lang.String[] { "LocalName", "TxPowerLevel", "Connectable", "ManufacturerData", "ServiceData", "ServiceUuids", });
+ internal_static_AdvertisementData_ManufacturerDataEntry_descriptor =
+ internal_static_AdvertisementData_descriptor.getNestedTypes().get(0);
+ internal_static_AdvertisementData_ManufacturerDataEntry_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_AdvertisementData_ManufacturerDataEntry_descriptor,
+ new java.lang.String[] { "Key", "Value", });
+ internal_static_AdvertisementData_ServiceDataEntry_descriptor =
+ internal_static_AdvertisementData_descriptor.getNestedTypes().get(1);
+ internal_static_AdvertisementData_ServiceDataEntry_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_AdvertisementData_ServiceDataEntry_descriptor,
+ new java.lang.String[] { "Key", "Value", });
+ internal_static_ScanSettings_descriptor =
+ getDescriptor().getMessageTypes().get(3);
+ internal_static_ScanSettings_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ScanSettings_descriptor,
+ new java.lang.String[] { "AndroidScanMode", "ServiceUuids", "AllowDuplicates", });
+ internal_static_ScanResult_descriptor =
+ getDescriptor().getMessageTypes().get(4);
+ internal_static_ScanResult_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ScanResult_descriptor,
+ new java.lang.String[] { "Device", "AdvertisementData", "Rssi", });
+ internal_static_ConnectRequest_descriptor =
+ getDescriptor().getMessageTypes().get(5);
+ internal_static_ConnectRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ConnectRequest_descriptor,
+ new java.lang.String[] { "RemoteId", "AndroidAutoConnect", });
+ internal_static_BluetoothDevice_descriptor =
+ getDescriptor().getMessageTypes().get(6);
+ internal_static_BluetoothDevice_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_BluetoothDevice_descriptor,
+ new java.lang.String[] { "RemoteId", "Name", "Type", });
+ internal_static_BluetoothService_descriptor =
+ getDescriptor().getMessageTypes().get(7);
+ internal_static_BluetoothService_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_BluetoothService_descriptor,
+ new java.lang.String[] { "Uuid", "RemoteId", "IsPrimary", "Characteristics", "IncludedServices", });
+ internal_static_BluetoothCharacteristic_descriptor =
+ getDescriptor().getMessageTypes().get(8);
+ internal_static_BluetoothCharacteristic_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_BluetoothCharacteristic_descriptor,
+ new java.lang.String[] { "Uuid", "RemoteId", "ServiceUuid", "SecondaryServiceUuid", "Descriptors", "Properties", "Value", });
+ internal_static_BluetoothDescriptor_descriptor =
+ getDescriptor().getMessageTypes().get(9);
+ internal_static_BluetoothDescriptor_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_BluetoothDescriptor_descriptor,
+ new java.lang.String[] { "Uuid", "RemoteId", "ServiceUuid", "CharacteristicUuid", "Value", });
+ internal_static_CharacteristicProperties_descriptor =
+ getDescriptor().getMessageTypes().get(10);
+ internal_static_CharacteristicProperties_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_CharacteristicProperties_descriptor,
+ new java.lang.String[] { "Broadcast", "Read", "WriteWithoutResponse", "Write", "Notify", "Indicate", "AuthenticatedSignedWrites", "ExtendedProperties", "NotifyEncryptionRequired", "IndicateEncryptionRequired", });
+ internal_static_DiscoverServicesResult_descriptor =
+ getDescriptor().getMessageTypes().get(11);
+ internal_static_DiscoverServicesResult_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_DiscoverServicesResult_descriptor,
+ new java.lang.String[] { "RemoteId", "Services", });
+ internal_static_ReadCharacteristicRequest_descriptor =
+ getDescriptor().getMessageTypes().get(12);
+ internal_static_ReadCharacteristicRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ReadCharacteristicRequest_descriptor,
+ new java.lang.String[] { "RemoteId", "CharacteristicUuid", "ServiceUuid", "SecondaryServiceUuid", });
+ internal_static_ReadCharacteristicResponse_descriptor =
+ getDescriptor().getMessageTypes().get(13);
+ internal_static_ReadCharacteristicResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ReadCharacteristicResponse_descriptor,
+ new java.lang.String[] { "RemoteId", "Characteristic", });
+ internal_static_ReadDescriptorRequest_descriptor =
+ getDescriptor().getMessageTypes().get(14);
+ internal_static_ReadDescriptorRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ReadDescriptorRequest_descriptor,
+ new java.lang.String[] { "RemoteId", "DescriptorUuid", "ServiceUuid", "SecondaryServiceUuid", "CharacteristicUuid", });
+ internal_static_ReadDescriptorResponse_descriptor =
+ getDescriptor().getMessageTypes().get(15);
+ internal_static_ReadDescriptorResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ReadDescriptorResponse_descriptor,
+ new java.lang.String[] { "Request", "Value", });
+ internal_static_WriteCharacteristicRequest_descriptor =
+ getDescriptor().getMessageTypes().get(16);
+ internal_static_WriteCharacteristicRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_WriteCharacteristicRequest_descriptor,
+ new java.lang.String[] { "RemoteId", "CharacteristicUuid", "ServiceUuid", "SecondaryServiceUuid", "WriteType", "Value", });
+ internal_static_WriteCharacteristicResponse_descriptor =
+ getDescriptor().getMessageTypes().get(17);
+ internal_static_WriteCharacteristicResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_WriteCharacteristicResponse_descriptor,
+ new java.lang.String[] { "Request", "Success", });
+ internal_static_WriteDescriptorRequest_descriptor =
+ getDescriptor().getMessageTypes().get(18);
+ internal_static_WriteDescriptorRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_WriteDescriptorRequest_descriptor,
+ new java.lang.String[] { "RemoteId", "DescriptorUuid", "ServiceUuid", "SecondaryServiceUuid", "CharacteristicUuid", "Value", });
+ internal_static_WriteDescriptorResponse_descriptor =
+ getDescriptor().getMessageTypes().get(19);
+ internal_static_WriteDescriptorResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_WriteDescriptorResponse_descriptor,
+ new java.lang.String[] { "Request", "Success", });
+ internal_static_SetNotificationRequest_descriptor =
+ getDescriptor().getMessageTypes().get(20);
+ internal_static_SetNotificationRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_SetNotificationRequest_descriptor,
+ new java.lang.String[] { "RemoteId", "ServiceUuid", "SecondaryServiceUuid", "CharacteristicUuid", "Enable", });
+ internal_static_SetNotificationResponse_descriptor =
+ getDescriptor().getMessageTypes().get(21);
+ internal_static_SetNotificationResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_SetNotificationResponse_descriptor,
+ new java.lang.String[] { "RemoteId", "Characteristic", "Success", });
+ internal_static_OnCharacteristicChanged_descriptor =
+ getDescriptor().getMessageTypes().get(22);
+ internal_static_OnCharacteristicChanged_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_OnCharacteristicChanged_descriptor,
+ new java.lang.String[] { "RemoteId", "Characteristic", });
+ internal_static_DeviceStateResponse_descriptor =
+ getDescriptor().getMessageTypes().get(23);
+ internal_static_DeviceStateResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_DeviceStateResponse_descriptor,
+ new java.lang.String[] { "RemoteId", "State", });
+ internal_static_ConnectedDevicesResponse_descriptor =
+ getDescriptor().getMessageTypes().get(24);
+ internal_static_ConnectedDevicesResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_ConnectedDevicesResponse_descriptor,
+ new java.lang.String[] { "Devices", });
+ internal_static_MtuSizeRequest_descriptor =
+ getDescriptor().getMessageTypes().get(25);
+ internal_static_MtuSizeRequest_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_MtuSizeRequest_descriptor,
+ new java.lang.String[] { "RemoteId", "Mtu", });
+ internal_static_MtuSizeResponse_descriptor =
+ getDescriptor().getMessageTypes().get(26);
+ internal_static_MtuSizeResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_MtuSizeResponse_descriptor,
+ new java.lang.String[] { "RemoteId", "Mtu", });
+ internal_static_IsReadyToSendWriteWithoutResponse_descriptor =
+ getDescriptor().getMessageTypes().get(27);
+ internal_static_IsReadyToSendWriteWithoutResponse_fieldAccessorTable = new
+ com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
+ internal_static_IsReadyToSendWriteWithoutResponse_descriptor,
+ new java.lang.String[] { "RemoteId", });
+ }
+
+ // @@protoc_insertion_point(outer_class_scope)
+}
diff --git a/protos/flutterblue.pb.dart b/protos/flutterblue.pb.dart
new file mode 100644
index 00000000..b43d0e8d
--- /dev/null
+++ b/protos/flutterblue.pb.dart
@@ -0,0 +1,2235 @@
+///
+// Generated code. Do not modify.
+// source: flutterblue.proto
+//
+// @dart = 2.12
+// ignore_for_file: annotate_overrides,camel_case_types,unnecessary_const,non_constant_identifier_names,library_prefixes,unused_import,unused_shown_name,return_of_invalid_type,unnecessary_this,prefer_final_fields
+
+import 'dart:core' as $core;
+
+import 'package:protobuf/protobuf.dart' as $pb;
+
+import 'flutterblue.pbenum.dart';
+
+export 'flutterblue.pbenum.dart';
+
+class Int32Value extends $pb.GeneratedMessage {
+ static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'Int32Value', createEmptyInstance: create)
+ ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'value', $pb.PbFieldType.O3)
+ ..hasRequiredFields = false
+ ;
+
+ Int32Value._() : super();
+ factory Int32Value({
+ $core.int? value,
+ }) {
+ final _result = create();
+ if (value != null) {
+ _result.value = value;
+ }
+ return _result;
+ }
+ factory Int32Value.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
+ factory Int32Value.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
+ @$core.Deprecated(
+ 'Using this can add significant overhead to your binary. '
+ 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
+ 'Will be removed in next major version')
+ Int32Value clone() => Int32Value()..mergeFromMessage(this);
+ @$core.Deprecated(
+ 'Using this can add significant overhead to your binary. '
+ 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
+ 'Will be removed in next major version')
+ Int32Value copyWith(void Function(Int32Value) updates) => super.copyWith((message) => updates(message as Int32Value)) as Int32Value; // ignore: deprecated_member_use
+ $pb.BuilderInfo get info_ => _i;
+ @$core.pragma('dart2js:noInline')
+ static Int32Value create() => Int32Value._();
+ Int32Value createEmptyInstance() => create();
+ static $pb.PbList createRepeated() => $pb.PbList();
+ @$core.pragma('dart2js:noInline')
+ static Int32Value getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
+ static Int32Value? _defaultInstance;
+
+ @$pb.TagNumber(1)
+ $core.int get value => $_getIZ(0);
+ @$pb.TagNumber(1)
+ set value($core.int v) { $_setSignedInt32(0, v); }
+ @$pb.TagNumber(1)
+ $core.bool hasValue() => $_has(0);
+ @$pb.TagNumber(1)
+ void clearValue() => clearField(1);
+}
+
+class BluetoothState extends $pb.GeneratedMessage {
+ static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'BluetoothState', createEmptyInstance: create)
+ ..e(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', $pb.PbFieldType.OE, defaultOrMaker: BluetoothState_State.UNKNOWN, valueOf: BluetoothState_State.valueOf, enumValues: BluetoothState_State.values)
+ ..hasRequiredFields = false
+ ;
+
+ BluetoothState._() : super();
+ factory BluetoothState({
+ BluetoothState_State? state,
+ }) {
+ final _result = create();
+ if (state != null) {
+ _result.state = state;
+ }
+ return _result;
+ }
+ factory BluetoothState.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
+ factory BluetoothState.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);
+ @$core.Deprecated(
+ 'Using this can add significant overhead to your binary. '
+ 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
+ 'Will be removed in next major version')
+ BluetoothState clone() => BluetoothState()..mergeFromMessage(this);
+ @$core.Deprecated(
+ 'Using this can add significant overhead to your binary. '
+ 'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
+ 'Will be removed in next major version')
+ BluetoothState copyWith(void Function(BluetoothState) updates) => super.copyWith((message) => updates(message as BluetoothState)) as BluetoothState; // ignore: deprecated_member_use
+ $pb.BuilderInfo get info_ => _i;
+ @$core.pragma('dart2js:noInline')
+ static BluetoothState create() => BluetoothState._();
+ BluetoothState createEmptyInstance() => create();
+ static $pb.PbList createRepeated() => $pb.PbList();
+ @$core.pragma('dart2js:noInline')
+ static BluetoothState getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor(create);
+ static BluetoothState? _defaultInstance;
+
+ @$pb.TagNumber(1)
+ BluetoothState_State get state => $_getN(0);
+ @$pb.TagNumber(1)
+ set state(BluetoothState_State v) { setField(1, v); }
+ @$pb.TagNumber(1)
+ $core.bool hasState() => $_has(0);
+ @$pb.TagNumber(1)
+ void clearState() => clearField(1);
+}
+
+class AdvertisementData extends $pb.GeneratedMessage {
+ static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AdvertisementData', createEmptyInstance: create)
+ ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'localName')
+ ..aOM