diff --git a/app/src/processing/app/UpdateCheck.java b/app/src/processing/app/UpdateCheck.java
index cdca1b717..d7ca8aa0c 100644
--- a/app/src/processing/app/UpdateCheck.java
+++ b/app/src/processing/app/UpdateCheck.java
@@ -51,7 +51,7 @@ import static processing.app.I18n.tr;
*/
public class UpdateCheck implements Runnable {
Base base;
- String downloadURL = tr("https://www.arduino.cc/latest.txt");
+ String downloadURL = "https://www.arduino.cc/latest.txt";
static final long ONE_DAY = 24 * 60 * 60 * 1000;
diff --git a/arduino-core/.classpath b/arduino-core/.classpath
index fd2e5d190..02bbeca33 100644
--- a/arduino-core/.classpath
+++ b/arduino-core/.classpath
@@ -26,5 +26,44 @@
+ * The main Arduino Platform Service + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.20.0)", + comments = "Source: commands/commands.proto") +public final class ArduinoCoreGrpc { + + private ArduinoCoreGrpc() {} + + public static final String SERVICE_NAME = "cc.arduino.cli.commands.ArduinoCore"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor
+ * The main Arduino Platform Service + *+ */ + public static abstract class ArduinoCoreImplBase implements io.grpc.BindableService { + + /** + *
+ * Start a new instance of the Arduino Core Service + *+ */ + public void init(cc.arduino.cli.commands.Commands.InitReq request, + io.grpc.stub.StreamObserver
+ * Destroy an instance of the Arduino Core Service + *+ */ + public void destroy(cc.arduino.cli.commands.Commands.DestroyReq request, + io.grpc.stub.StreamObserver
+ * Rescan instance of the Arduino Core Service + *+ */ + public void rescan(cc.arduino.cli.commands.Commands.RescanReq request, + io.grpc.stub.StreamObserver
+ * Update package index of the Arduino Core Service + *+ */ + public void updateIndex(cc.arduino.cli.commands.Commands.UpdateIndexReq request, + io.grpc.stub.StreamObserver
+ * Update libraries index + *+ */ + public void updateLibrariesIndex(cc.arduino.cli.commands.Commands.UpdateLibrariesIndexReq request, + io.grpc.stub.StreamObserver
+ * Requests details about a board + *+ */ + public void boardDetails(cc.arduino.cli.commands.Board.BoardDetailsReq request, + io.grpc.stub.StreamObserver
+ * The main Arduino Platform Service + *+ */ + public static final class ArduinoCoreStub extends io.grpc.stub.AbstractStub
+ * Start a new instance of the Arduino Core Service + *+ */ + public void init(cc.arduino.cli.commands.Commands.InitReq request, + io.grpc.stub.StreamObserver
+ * Destroy an instance of the Arduino Core Service + *+ */ + public void destroy(cc.arduino.cli.commands.Commands.DestroyReq request, + io.grpc.stub.StreamObserver
+ * Rescan instance of the Arduino Core Service + *+ */ + public void rescan(cc.arduino.cli.commands.Commands.RescanReq request, + io.grpc.stub.StreamObserver
+ * Update package index of the Arduino Core Service + *+ */ + public void updateIndex(cc.arduino.cli.commands.Commands.UpdateIndexReq request, + io.grpc.stub.StreamObserver
+ * Update libraries index + *+ */ + public void updateLibrariesIndex(cc.arduino.cli.commands.Commands.UpdateLibrariesIndexReq request, + io.grpc.stub.StreamObserver
+ * Requests details about a board + *+ */ + public void boardDetails(cc.arduino.cli.commands.Board.BoardDetailsReq request, + io.grpc.stub.StreamObserver
+ * The main Arduino Platform Service + *+ */ + public static final class ArduinoCoreBlockingStub extends io.grpc.stub.AbstractStub
+ * Start a new instance of the Arduino Core Service + *+ */ + public java.util.Iterator
+ * Destroy an instance of the Arduino Core Service + *+ */ + public cc.arduino.cli.commands.Commands.DestroyResp destroy(cc.arduino.cli.commands.Commands.DestroyReq request) { + return blockingUnaryCall( + getChannel(), getDestroyMethod(), getCallOptions(), request); + } + + /** + *
+ * Rescan instance of the Arduino Core Service + *+ */ + public cc.arduino.cli.commands.Commands.RescanResp rescan(cc.arduino.cli.commands.Commands.RescanReq request) { + return blockingUnaryCall( + getChannel(), getRescanMethod(), getCallOptions(), request); + } + + /** + *
+ * Update package index of the Arduino Core Service + *+ */ + public java.util.Iterator
+ * Update libraries index + *+ */ + public java.util.Iterator
+ * Requests details about a board + *+ */ + public cc.arduino.cli.commands.Board.BoardDetailsResp boardDetails(cc.arduino.cli.commands.Board.BoardDetailsReq request) { + return blockingUnaryCall( + getChannel(), getBoardDetailsMethod(), getCallOptions(), request); + } + + /** + */ + public java.util.Iterator
+ * The main Arduino Platform Service + *+ */ + public static final class ArduinoCoreFutureStub extends io.grpc.stub.AbstractStub
+ * Destroy an instance of the Arduino Core Service + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Rescan instance of the Arduino Core Service + *+ */ + public com.google.common.util.concurrent.ListenableFuture
+ * Requests details about a board + *+ */ + public com.google.common.util.concurrent.ListenableFuture
.cc.arduino.cli.commands.Instance instance = 1;
+ */
+ boolean hasInstance();
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ cc.arduino.cli.commands.Common.Instance getInstance();
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ cc.arduino.cli.commands.Common.InstanceOrBuilder getInstanceOrBuilder();
+
+ /**
+ * string fqbn = 2;
+ */
+ java.lang.String getFqbn();
+ /**
+ * string fqbn = 2;
+ */
+ com.google.protobuf.ByteString
+ getFqbnBytes();
+ }
+ /**
+ * Protobuf type {@code cc.arduino.cli.commands.BoardDetailsReq}
+ */
+ public static final class BoardDetailsReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cc.arduino.cli.commands.BoardDetailsReq)
+ BoardDetailsReqOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BoardDetailsReq.newBuilder() to construct.
+ private BoardDetailsReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BoardDetailsReq() {
+ fqbn_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BoardDetailsReq();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BoardDetailsReq(
+ 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: {
+ cc.arduino.cli.commands.Common.Instance.Builder subBuilder = null;
+ if (instance_ != null) {
+ subBuilder = instance_.toBuilder();
+ }
+ instance_ = input.readMessage(cc.arduino.cli.commands.Common.Instance.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(instance_);
+ instance_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ fqbn_ = 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 cc.arduino.cli.commands.Board.internal_static_cc_arduino_cli_commands_BoardDetailsReq_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cc.arduino.cli.commands.Board.internal_static_cc_arduino_cli_commands_BoardDetailsReq_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cc.arduino.cli.commands.Board.BoardDetailsReq.class, cc.arduino.cli.commands.Board.BoardDetailsReq.Builder.class);
+ }
+
+ public static final int INSTANCE_FIELD_NUMBER = 1;
+ private cc.arduino.cli.commands.Common.Instance instance_;
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public boolean hasInstance() {
+ return instance_ != null;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public cc.arduino.cli.commands.Common.Instance getInstance() {
+ return instance_ == null ? cc.arduino.cli.commands.Common.Instance.getDefaultInstance() : instance_;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public cc.arduino.cli.commands.Common.InstanceOrBuilder getInstanceOrBuilder() {
+ return getInstance();
+ }
+
+ public static final int FQBN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object fqbn_;
+ /**
+ * string fqbn = 2;
+ */
+ public java.lang.String getFqbn() {
+ java.lang.Object ref = fqbn_;
+ 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();
+ fqbn_ = s;
+ return s;
+ }
+ }
+ /**
+ * string fqbn = 2;
+ */
+ public com.google.protobuf.ByteString
+ getFqbnBytes() {
+ java.lang.Object ref = fqbn_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ fqbn_ = 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 (instance_ != null) {
+ output.writeMessage(1, getInstance());
+ }
+ if (!getFqbnBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fqbn_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (instance_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getInstance());
+ }
+ if (!getFqbnBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fqbn_);
+ }
+ 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 cc.arduino.cli.commands.Board.BoardDetailsReq)) {
+ return super.equals(obj);
+ }
+ cc.arduino.cli.commands.Board.BoardDetailsReq other = (cc.arduino.cli.commands.Board.BoardDetailsReq) obj;
+
+ if (hasInstance() != other.hasInstance()) return false;
+ if (hasInstance()) {
+ if (!getInstance()
+ .equals(other.getInstance())) return false;
+ }
+ if (!getFqbn()
+ .equals(other.getFqbn())) 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 (hasInstance()) {
+ hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstance().hashCode();
+ }
+ hash = (37 * hash) + FQBN_FIELD_NUMBER;
+ hash = (53 * hash) + getFqbn().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cc.arduino.cli.commands.Board.BoardDetailsReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsReq parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsReq parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsReq parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsReq parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsReq parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsReq parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsReq 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 cc.arduino.cli.commands.Board.BoardDetailsReq parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsReq 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 cc.arduino.cli.commands.Board.BoardDetailsReq parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsReq 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(cc.arduino.cli.commands.Board.BoardDetailsReq 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 cc.arduino.cli.commands.BoardDetailsReq}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder.cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public boolean hasInstance() {
+ return instanceBuilder_ != null || instance_ != null;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public cc.arduino.cli.commands.Common.Instance getInstance() {
+ if (instanceBuilder_ == null) {
+ return instance_ == null ? cc.arduino.cli.commands.Common.Instance.getDefaultInstance() : instance_;
+ } else {
+ return instanceBuilder_.getMessage();
+ }
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public Builder setInstance(cc.arduino.cli.commands.Common.Instance value) {
+ if (instanceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instance_ = value;
+ onChanged();
+ } else {
+ instanceBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public Builder setInstance(
+ cc.arduino.cli.commands.Common.Instance.Builder builderForValue) {
+ if (instanceBuilder_ == null) {
+ instance_ = builderForValue.build();
+ onChanged();
+ } else {
+ instanceBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public Builder mergeInstance(cc.arduino.cli.commands.Common.Instance value) {
+ if (instanceBuilder_ == null) {
+ if (instance_ != null) {
+ instance_ =
+ cc.arduino.cli.commands.Common.Instance.newBuilder(instance_).mergeFrom(value).buildPartial();
+ } else {
+ instance_ = value;
+ }
+ onChanged();
+ } else {
+ instanceBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public Builder clearInstance() {
+ if (instanceBuilder_ == null) {
+ instance_ = null;
+ onChanged();
+ } else {
+ instance_ = null;
+ instanceBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public cc.arduino.cli.commands.Common.Instance.Builder getInstanceBuilder() {
+
+ onChanged();
+ return getInstanceFieldBuilder().getBuilder();
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public cc.arduino.cli.commands.Common.InstanceOrBuilder getInstanceOrBuilder() {
+ if (instanceBuilder_ != null) {
+ return instanceBuilder_.getMessageOrBuilder();
+ } else {
+ return instance_ == null ?
+ cc.arduino.cli.commands.Common.Instance.getDefaultInstance() : instance_;
+ }
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ cc.arduino.cli.commands.Common.Instance, cc.arduino.cli.commands.Common.Instance.Builder, cc.arduino.cli.commands.Common.InstanceOrBuilder>
+ getInstanceFieldBuilder() {
+ if (instanceBuilder_ == null) {
+ instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ cc.arduino.cli.commands.Common.Instance, cc.arduino.cli.commands.Common.Instance.Builder, cc.arduino.cli.commands.Common.InstanceOrBuilder>(
+ getInstance(),
+ getParentForChildren(),
+ isClean());
+ instance_ = null;
+ }
+ return instanceBuilder_;
+ }
+
+ private java.lang.Object fqbn_ = "";
+ /**
+ * string fqbn = 2;
+ */
+ public java.lang.String getFqbn() {
+ java.lang.Object ref = fqbn_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ fqbn_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string fqbn = 2;
+ */
+ public com.google.protobuf.ByteString
+ getFqbnBytes() {
+ java.lang.Object ref = fqbn_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ fqbn_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string fqbn = 2;
+ */
+ public Builder setFqbn(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ fqbn_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string fqbn = 2;
+ */
+ public Builder clearFqbn() {
+
+ fqbn_ = getDefaultInstance().getFqbn();
+ onChanged();
+ return this;
+ }
+ /**
+ * string fqbn = 2;
+ */
+ public Builder setFqbnBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ fqbn_ = 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:cc.arduino.cli.commands.BoardDetailsReq)
+ }
+
+ // @@protoc_insertion_point(class_scope:cc.arduino.cli.commands.BoardDetailsReq)
+ private static final cc.arduino.cli.commands.Board.BoardDetailsReq DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cc.arduino.cli.commands.Board.BoardDetailsReq();
+ }
+
+ public static cc.arduino.cli.commands.Board.BoardDetailsReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring name = 2;
+ */
+ java.lang.String getName();
+ /**
+ * string name = 2;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ java.util.Listrepeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ cc.arduino.cli.commands.Board.ConfigOption getConfigOptions(int index);
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ int getConfigOptionsCount();
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ java.util.List extends cc.arduino.cli.commands.Board.ConfigOptionOrBuilder>
+ getConfigOptionsOrBuilderList();
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ cc.arduino.cli.commands.Board.ConfigOptionOrBuilder getConfigOptionsOrBuilder(
+ int index);
+
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ java.util.Listrepeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ cc.arduino.cli.commands.Board.RequiredTool getRequiredTools(int index);
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ int getRequiredToolsCount();
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ java.util.List extends cc.arduino.cli.commands.Board.RequiredToolOrBuilder>
+ getRequiredToolsOrBuilderList();
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ cc.arduino.cli.commands.Board.RequiredToolOrBuilder getRequiredToolsOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code cc.arduino.cli.commands.BoardDetailsResp}
+ */
+ public static final class BoardDetailsResp extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cc.arduino.cli.commands.BoardDetailsResp)
+ BoardDetailsRespOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BoardDetailsResp.newBuilder() to construct.
+ private BoardDetailsResp(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BoardDetailsResp() {
+ name_ = "";
+ configOptions_ = java.util.Collections.emptyList();
+ requiredTools_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BoardDetailsResp();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BoardDetailsResp(
+ 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 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ configOptions_ = new java.util.ArrayListstring name = 2;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 2;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONFIG_OPTIONS_FIELD_NUMBER = 3;
+ private java.util.Listrepeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public java.util.Listrepeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public java.util.List extends cc.arduino.cli.commands.Board.ConfigOptionOrBuilder>
+ getConfigOptionsOrBuilderList() {
+ return configOptions_;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public int getConfigOptionsCount() {
+ return configOptions_.size();
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigOption getConfigOptions(int index) {
+ return configOptions_.get(index);
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigOptionOrBuilder getConfigOptionsOrBuilder(
+ int index) {
+ return configOptions_.get(index);
+ }
+
+ public static final int REQUIRED_TOOLS_FIELD_NUMBER = 4;
+ private java.util.Listrepeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public java.util.Listrepeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public java.util.List extends cc.arduino.cli.commands.Board.RequiredToolOrBuilder>
+ getRequiredToolsOrBuilderList() {
+ return requiredTools_;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public int getRequiredToolsCount() {
+ return requiredTools_.size();
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public cc.arduino.cli.commands.Board.RequiredTool getRequiredTools(int index) {
+ return requiredTools_.get(index);
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public cc.arduino.cli.commands.Board.RequiredToolOrBuilder getRequiredToolsOrBuilder(
+ int index) {
+ return requiredTools_.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 (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
+ }
+ for (int i = 0; i < configOptions_.size(); i++) {
+ output.writeMessage(3, configOptions_.get(i));
+ }
+ for (int i = 0; i < requiredTools_.size(); i++) {
+ output.writeMessage(4, requiredTools_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
+ }
+ for (int i = 0; i < configOptions_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, configOptions_.get(i));
+ }
+ for (int i = 0; i < requiredTools_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(4, requiredTools_.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 cc.arduino.cli.commands.Board.BoardDetailsResp)) {
+ return super.equals(obj);
+ }
+ cc.arduino.cli.commands.Board.BoardDetailsResp other = (cc.arduino.cli.commands.Board.BoardDetailsResp) obj;
+
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getConfigOptionsList()
+ .equals(other.getConfigOptionsList())) return false;
+ if (!getRequiredToolsList()
+ .equals(other.getRequiredToolsList())) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ if (getConfigOptionsCount() > 0) {
+ hash = (37 * hash) + CONFIG_OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getConfigOptionsList().hashCode();
+ }
+ if (getRequiredToolsCount() > 0) {
+ hash = (37 * hash) + REQUIRED_TOOLS_FIELD_NUMBER;
+ hash = (53 * hash) + getRequiredToolsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cc.arduino.cli.commands.Board.BoardDetailsResp parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsResp parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsResp parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsResp parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsResp parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsResp parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsResp parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsResp 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 cc.arduino.cli.commands.Board.BoardDetailsResp parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsResp 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 cc.arduino.cli.commands.Board.BoardDetailsResp parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.BoardDetailsResp 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(cc.arduino.cli.commands.Board.BoardDetailsResp 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 cc.arduino.cli.commands.BoardDetailsResp}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring name = 2;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 2;
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 2;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.Listrepeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public java.util.Listrepeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public int getConfigOptionsCount() {
+ if (configOptionsBuilder_ == null) {
+ return configOptions_.size();
+ } else {
+ return configOptionsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigOption getConfigOptions(int index) {
+ if (configOptionsBuilder_ == null) {
+ return configOptions_.get(index);
+ } else {
+ return configOptionsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public Builder setConfigOptions(
+ int index, cc.arduino.cli.commands.Board.ConfigOption value) {
+ if (configOptionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConfigOptionsIsMutable();
+ configOptions_.set(index, value);
+ onChanged();
+ } else {
+ configOptionsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public Builder setConfigOptions(
+ int index, cc.arduino.cli.commands.Board.ConfigOption.Builder builderForValue) {
+ if (configOptionsBuilder_ == null) {
+ ensureConfigOptionsIsMutable();
+ configOptions_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ configOptionsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public Builder addConfigOptions(cc.arduino.cli.commands.Board.ConfigOption value) {
+ if (configOptionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConfigOptionsIsMutable();
+ configOptions_.add(value);
+ onChanged();
+ } else {
+ configOptionsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public Builder addConfigOptions(
+ int index, cc.arduino.cli.commands.Board.ConfigOption value) {
+ if (configOptionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureConfigOptionsIsMutable();
+ configOptions_.add(index, value);
+ onChanged();
+ } else {
+ configOptionsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public Builder addConfigOptions(
+ cc.arduino.cli.commands.Board.ConfigOption.Builder builderForValue) {
+ if (configOptionsBuilder_ == null) {
+ ensureConfigOptionsIsMutable();
+ configOptions_.add(builderForValue.build());
+ onChanged();
+ } else {
+ configOptionsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public Builder addConfigOptions(
+ int index, cc.arduino.cli.commands.Board.ConfigOption.Builder builderForValue) {
+ if (configOptionsBuilder_ == null) {
+ ensureConfigOptionsIsMutable();
+ configOptions_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ configOptionsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public Builder addAllConfigOptions(
+ java.lang.Iterable extends cc.arduino.cli.commands.Board.ConfigOption> values) {
+ if (configOptionsBuilder_ == null) {
+ ensureConfigOptionsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, configOptions_);
+ onChanged();
+ } else {
+ configOptionsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public Builder clearConfigOptions() {
+ if (configOptionsBuilder_ == null) {
+ configOptions_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ configOptionsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public Builder removeConfigOptions(int index) {
+ if (configOptionsBuilder_ == null) {
+ ensureConfigOptionsIsMutable();
+ configOptions_.remove(index);
+ onChanged();
+ } else {
+ configOptionsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigOption.Builder getConfigOptionsBuilder(
+ int index) {
+ return getConfigOptionsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigOptionOrBuilder getConfigOptionsOrBuilder(
+ int index) {
+ if (configOptionsBuilder_ == null) {
+ return configOptions_.get(index); } else {
+ return configOptionsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public java.util.List extends cc.arduino.cli.commands.Board.ConfigOptionOrBuilder>
+ getConfigOptionsOrBuilderList() {
+ if (configOptionsBuilder_ != null) {
+ return configOptionsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(configOptions_);
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigOption.Builder addConfigOptionsBuilder() {
+ return getConfigOptionsFieldBuilder().addBuilder(
+ cc.arduino.cli.commands.Board.ConfigOption.getDefaultInstance());
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigOption.Builder addConfigOptionsBuilder(
+ int index) {
+ return getConfigOptionsFieldBuilder().addBuilder(
+ index, cc.arduino.cli.commands.Board.ConfigOption.getDefaultInstance());
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigOption config_options = 3;
+ */
+ public java.util.Listrepeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public java.util.Listrepeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public int getRequiredToolsCount() {
+ if (requiredToolsBuilder_ == null) {
+ return requiredTools_.size();
+ } else {
+ return requiredToolsBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public cc.arduino.cli.commands.Board.RequiredTool getRequiredTools(int index) {
+ if (requiredToolsBuilder_ == null) {
+ return requiredTools_.get(index);
+ } else {
+ return requiredToolsBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public Builder setRequiredTools(
+ int index, cc.arduino.cli.commands.Board.RequiredTool value) {
+ if (requiredToolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRequiredToolsIsMutable();
+ requiredTools_.set(index, value);
+ onChanged();
+ } else {
+ requiredToolsBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public Builder setRequiredTools(
+ int index, cc.arduino.cli.commands.Board.RequiredTool.Builder builderForValue) {
+ if (requiredToolsBuilder_ == null) {
+ ensureRequiredToolsIsMutable();
+ requiredTools_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ requiredToolsBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public Builder addRequiredTools(cc.arduino.cli.commands.Board.RequiredTool value) {
+ if (requiredToolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRequiredToolsIsMutable();
+ requiredTools_.add(value);
+ onChanged();
+ } else {
+ requiredToolsBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public Builder addRequiredTools(
+ int index, cc.arduino.cli.commands.Board.RequiredTool value) {
+ if (requiredToolsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureRequiredToolsIsMutable();
+ requiredTools_.add(index, value);
+ onChanged();
+ } else {
+ requiredToolsBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public Builder addRequiredTools(
+ cc.arduino.cli.commands.Board.RequiredTool.Builder builderForValue) {
+ if (requiredToolsBuilder_ == null) {
+ ensureRequiredToolsIsMutable();
+ requiredTools_.add(builderForValue.build());
+ onChanged();
+ } else {
+ requiredToolsBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public Builder addRequiredTools(
+ int index, cc.arduino.cli.commands.Board.RequiredTool.Builder builderForValue) {
+ if (requiredToolsBuilder_ == null) {
+ ensureRequiredToolsIsMutable();
+ requiredTools_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ requiredToolsBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public Builder addAllRequiredTools(
+ java.lang.Iterable extends cc.arduino.cli.commands.Board.RequiredTool> values) {
+ if (requiredToolsBuilder_ == null) {
+ ensureRequiredToolsIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, requiredTools_);
+ onChanged();
+ } else {
+ requiredToolsBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public Builder clearRequiredTools() {
+ if (requiredToolsBuilder_ == null) {
+ requiredTools_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ requiredToolsBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public Builder removeRequiredTools(int index) {
+ if (requiredToolsBuilder_ == null) {
+ ensureRequiredToolsIsMutable();
+ requiredTools_.remove(index);
+ onChanged();
+ } else {
+ requiredToolsBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public cc.arduino.cli.commands.Board.RequiredTool.Builder getRequiredToolsBuilder(
+ int index) {
+ return getRequiredToolsFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public cc.arduino.cli.commands.Board.RequiredToolOrBuilder getRequiredToolsOrBuilder(
+ int index) {
+ if (requiredToolsBuilder_ == null) {
+ return requiredTools_.get(index); } else {
+ return requiredToolsBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public java.util.List extends cc.arduino.cli.commands.Board.RequiredToolOrBuilder>
+ getRequiredToolsOrBuilderList() {
+ if (requiredToolsBuilder_ != null) {
+ return requiredToolsBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(requiredTools_);
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public cc.arduino.cli.commands.Board.RequiredTool.Builder addRequiredToolsBuilder() {
+ return getRequiredToolsFieldBuilder().addBuilder(
+ cc.arduino.cli.commands.Board.RequiredTool.getDefaultInstance());
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public cc.arduino.cli.commands.Board.RequiredTool.Builder addRequiredToolsBuilder(
+ int index) {
+ return getRequiredToolsFieldBuilder().addBuilder(
+ index, cc.arduino.cli.commands.Board.RequiredTool.getDefaultInstance());
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.RequiredTool required_tools = 4;
+ */
+ public java.util.Liststring option = 1;
+ */
+ java.lang.String getOption();
+ /**
+ * string option = 1;
+ */
+ com.google.protobuf.ByteString
+ getOptionBytes();
+
+ /**
+ * string option_label = 2;
+ */
+ java.lang.String getOptionLabel();
+ /**
+ * string option_label = 2;
+ */
+ com.google.protobuf.ByteString
+ getOptionLabelBytes();
+
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ java.util.Listrepeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ cc.arduino.cli.commands.Board.ConfigValue getValues(int index);
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ int getValuesCount();
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ java.util.List extends cc.arduino.cli.commands.Board.ConfigValueOrBuilder>
+ getValuesOrBuilderList();
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ cc.arduino.cli.commands.Board.ConfigValueOrBuilder getValuesOrBuilder(
+ int index);
+ }
+ /**
+ * Protobuf type {@code cc.arduino.cli.commands.ConfigOption}
+ */
+ public static final class ConfigOption extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cc.arduino.cli.commands.ConfigOption)
+ ConfigOptionOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ConfigOption.newBuilder() to construct.
+ private ConfigOption(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ConfigOption() {
+ option_ = "";
+ optionLabel_ = "";
+ values_ = java.util.Collections.emptyList();
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ConfigOption();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ConfigOption(
+ 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();
+
+ option_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ optionLabel_ = s;
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ values_ = new java.util.ArrayListstring option = 1;
+ */
+ public java.lang.String getOption() {
+ java.lang.Object ref = option_;
+ 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();
+ option_ = s;
+ return s;
+ }
+ }
+ /**
+ * string option = 1;
+ */
+ public com.google.protobuf.ByteString
+ getOptionBytes() {
+ java.lang.Object ref = option_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ option_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OPTION_LABEL_FIELD_NUMBER = 2;
+ private volatile java.lang.Object optionLabel_;
+ /**
+ * string option_label = 2;
+ */
+ public java.lang.String getOptionLabel() {
+ java.lang.Object ref = optionLabel_;
+ 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();
+ optionLabel_ = s;
+ return s;
+ }
+ }
+ /**
+ * string option_label = 2;
+ */
+ public com.google.protobuf.ByteString
+ getOptionLabelBytes() {
+ java.lang.Object ref = optionLabel_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ optionLabel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUES_FIELD_NUMBER = 3;
+ private java.util.Listrepeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public java.util.Listrepeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public java.util.List extends cc.arduino.cli.commands.Board.ConfigValueOrBuilder>
+ getValuesOrBuilderList() {
+ return values_;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public int getValuesCount() {
+ return values_.size();
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigValue getValues(int index) {
+ return values_.get(index);
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigValueOrBuilder getValuesOrBuilder(
+ int index) {
+ return values_.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 (!getOptionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, option_);
+ }
+ if (!getOptionLabelBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, optionLabel_);
+ }
+ for (int i = 0; i < values_.size(); i++) {
+ output.writeMessage(3, values_.get(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getOptionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, option_);
+ }
+ if (!getOptionLabelBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, optionLabel_);
+ }
+ for (int i = 0; i < values_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, values_.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 cc.arduino.cli.commands.Board.ConfigOption)) {
+ return super.equals(obj);
+ }
+ cc.arduino.cli.commands.Board.ConfigOption other = (cc.arduino.cli.commands.Board.ConfigOption) obj;
+
+ if (!getOption()
+ .equals(other.getOption())) return false;
+ if (!getOptionLabel()
+ .equals(other.getOptionLabel())) return false;
+ if (!getValuesList()
+ .equals(other.getValuesList())) 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) + OPTION_FIELD_NUMBER;
+ hash = (53 * hash) + getOption().hashCode();
+ hash = (37 * hash) + OPTION_LABEL_FIELD_NUMBER;
+ hash = (53 * hash) + getOptionLabel().hashCode();
+ if (getValuesCount() > 0) {
+ hash = (37 * hash) + VALUES_FIELD_NUMBER;
+ hash = (53 * hash) + getValuesList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cc.arduino.cli.commands.Board.ConfigOption parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigOption parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigOption parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigOption parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigOption parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigOption parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigOption parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigOption 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 cc.arduino.cli.commands.Board.ConfigOption parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigOption 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 cc.arduino.cli.commands.Board.ConfigOption parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigOption 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(cc.arduino.cli.commands.Board.ConfigOption 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 cc.arduino.cli.commands.ConfigOption}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring option = 1;
+ */
+ public java.lang.String getOption() {
+ java.lang.Object ref = option_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ option_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string option = 1;
+ */
+ public com.google.protobuf.ByteString
+ getOptionBytes() {
+ java.lang.Object ref = option_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ option_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string option = 1;
+ */
+ public Builder setOption(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ option_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string option = 1;
+ */
+ public Builder clearOption() {
+
+ option_ = getDefaultInstance().getOption();
+ onChanged();
+ return this;
+ }
+ /**
+ * string option = 1;
+ */
+ public Builder setOptionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ option_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object optionLabel_ = "";
+ /**
+ * string option_label = 2;
+ */
+ public java.lang.String getOptionLabel() {
+ java.lang.Object ref = optionLabel_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ optionLabel_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string option_label = 2;
+ */
+ public com.google.protobuf.ByteString
+ getOptionLabelBytes() {
+ java.lang.Object ref = optionLabel_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ optionLabel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string option_label = 2;
+ */
+ public Builder setOptionLabel(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ optionLabel_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string option_label = 2;
+ */
+ public Builder clearOptionLabel() {
+
+ optionLabel_ = getDefaultInstance().getOptionLabel();
+ onChanged();
+ return this;
+ }
+ /**
+ * string option_label = 2;
+ */
+ public Builder setOptionLabelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ optionLabel_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.util.Listrepeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public java.util.Listrepeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public int getValuesCount() {
+ if (valuesBuilder_ == null) {
+ return values_.size();
+ } else {
+ return valuesBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigValue getValues(int index) {
+ if (valuesBuilder_ == null) {
+ return values_.get(index);
+ } else {
+ return valuesBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public Builder setValues(
+ int index, cc.arduino.cli.commands.Board.ConfigValue value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.set(index, value);
+ onChanged();
+ } else {
+ valuesBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public Builder setValues(
+ int index, cc.arduino.cli.commands.Board.ConfigValue.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public Builder addValues(cc.arduino.cli.commands.Board.ConfigValue value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(value);
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public Builder addValues(
+ int index, cc.arduino.cli.commands.Board.ConfigValue value) {
+ if (valuesBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureValuesIsMutable();
+ values_.add(index, value);
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public Builder addValues(
+ cc.arduino.cli.commands.Board.ConfigValue.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.add(builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public Builder addValues(
+ int index, cc.arduino.cli.commands.Board.ConfigValue.Builder builderForValue) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ valuesBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public Builder addAllValues(
+ java.lang.Iterable extends cc.arduino.cli.commands.Board.ConfigValue> values) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, values_);
+ onChanged();
+ } else {
+ valuesBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public Builder clearValues() {
+ if (valuesBuilder_ == null) {
+ values_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ } else {
+ valuesBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public Builder removeValues(int index) {
+ if (valuesBuilder_ == null) {
+ ensureValuesIsMutable();
+ values_.remove(index);
+ onChanged();
+ } else {
+ valuesBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigValue.Builder getValuesBuilder(
+ int index) {
+ return getValuesFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigValueOrBuilder getValuesOrBuilder(
+ int index) {
+ if (valuesBuilder_ == null) {
+ return values_.get(index); } else {
+ return valuesBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public java.util.List extends cc.arduino.cli.commands.Board.ConfigValueOrBuilder>
+ getValuesOrBuilderList() {
+ if (valuesBuilder_ != null) {
+ return valuesBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(values_);
+ }
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigValue.Builder addValuesBuilder() {
+ return getValuesFieldBuilder().addBuilder(
+ cc.arduino.cli.commands.Board.ConfigValue.getDefaultInstance());
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public cc.arduino.cli.commands.Board.ConfigValue.Builder addValuesBuilder(
+ int index) {
+ return getValuesFieldBuilder().addBuilder(
+ index, cc.arduino.cli.commands.Board.ConfigValue.getDefaultInstance());
+ }
+ /**
+ * repeated .cc.arduino.cli.commands.ConfigValue values = 3;
+ */
+ public java.util.Liststring value = 1;
+ */
+ java.lang.String getValue();
+ /**
+ * string value = 1;
+ */
+ com.google.protobuf.ByteString
+ getValueBytes();
+
+ /**
+ * string value_label = 2;
+ */
+ java.lang.String getValueLabel();
+ /**
+ * string value_label = 2;
+ */
+ com.google.protobuf.ByteString
+ getValueLabelBytes();
+
+ /**
+ * bool selected = 3;
+ */
+ boolean getSelected();
+ }
+ /**
+ * Protobuf type {@code cc.arduino.cli.commands.ConfigValue}
+ */
+ public static final class ConfigValue extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cc.arduino.cli.commands.ConfigValue)
+ ConfigValueOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use ConfigValue.newBuilder() to construct.
+ private ConfigValue(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private ConfigValue() {
+ value_ = "";
+ valueLabel_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new ConfigValue();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private ConfigValue(
+ 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();
+
+ value_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ valueLabel_ = s;
+ break;
+ }
+ case 24: {
+
+ selected_ = 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 cc.arduino.cli.commands.Board.internal_static_cc_arduino_cli_commands_ConfigValue_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cc.arduino.cli.commands.Board.internal_static_cc_arduino_cli_commands_ConfigValue_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cc.arduino.cli.commands.Board.ConfigValue.class, cc.arduino.cli.commands.Board.ConfigValue.Builder.class);
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 1;
+ private volatile java.lang.Object value_;
+ /**
+ * string value = 1;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ 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();
+ value_ = s;
+ return s;
+ }
+ }
+ /**
+ * string value = 1;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_LABEL_FIELD_NUMBER = 2;
+ private volatile java.lang.Object valueLabel_;
+ /**
+ * string value_label = 2;
+ */
+ public java.lang.String getValueLabel() {
+ java.lang.Object ref = valueLabel_;
+ 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();
+ valueLabel_ = s;
+ return s;
+ }
+ }
+ /**
+ * string value_label = 2;
+ */
+ public com.google.protobuf.ByteString
+ getValueLabelBytes() {
+ java.lang.Object ref = valueLabel_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ valueLabel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SELECTED_FIELD_NUMBER = 3;
+ private boolean selected_;
+ /**
+ * bool selected = 3;
+ */
+ public boolean getSelected() {
+ return selected_;
+ }
+
+ 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 (!getValueBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
+ }
+ if (!getValueLabelBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, valueLabel_);
+ }
+ if (selected_ != false) {
+ output.writeBool(3, selected_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getValueBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
+ }
+ if (!getValueLabelBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, valueLabel_);
+ }
+ if (selected_ != false) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeBoolSize(3, selected_);
+ }
+ 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 cc.arduino.cli.commands.Board.ConfigValue)) {
+ return super.equals(obj);
+ }
+ cc.arduino.cli.commands.Board.ConfigValue other = (cc.arduino.cli.commands.Board.ConfigValue) obj;
+
+ if (!getValue()
+ .equals(other.getValue())) return false;
+ if (!getValueLabel()
+ .equals(other.getValueLabel())) return false;
+ if (getSelected()
+ != other.getSelected()) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + getValue().hashCode();
+ hash = (37 * hash) + VALUE_LABEL_FIELD_NUMBER;
+ hash = (53 * hash) + getValueLabel().hashCode();
+ hash = (37 * hash) + SELECTED_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
+ getSelected());
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cc.arduino.cli.commands.Board.ConfigValue parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigValue parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigValue parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigValue parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigValue parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigValue parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigValue parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigValue 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 cc.arduino.cli.commands.Board.ConfigValue parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigValue 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 cc.arduino.cli.commands.Board.ConfigValue parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.ConfigValue 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(cc.arduino.cli.commands.Board.ConfigValue 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 cc.arduino.cli.commands.ConfigValue}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring value = 1;
+ */
+ public java.lang.String getValue() {
+ java.lang.Object ref = value_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ value_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string value = 1;
+ */
+ public com.google.protobuf.ByteString
+ getValueBytes() {
+ java.lang.Object ref = value_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ value_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string value = 1;
+ */
+ public Builder setValue(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string value = 1;
+ */
+ public Builder clearValue() {
+
+ value_ = getDefaultInstance().getValue();
+ onChanged();
+ return this;
+ }
+ /**
+ * string value = 1;
+ */
+ public Builder setValueBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ value_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object valueLabel_ = "";
+ /**
+ * string value_label = 2;
+ */
+ public java.lang.String getValueLabel() {
+ java.lang.Object ref = valueLabel_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ valueLabel_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string value_label = 2;
+ */
+ public com.google.protobuf.ByteString
+ getValueLabelBytes() {
+ java.lang.Object ref = valueLabel_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ valueLabel_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string value_label = 2;
+ */
+ public Builder setValueLabel(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ valueLabel_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string value_label = 2;
+ */
+ public Builder clearValueLabel() {
+
+ valueLabel_ = getDefaultInstance().getValueLabel();
+ onChanged();
+ return this;
+ }
+ /**
+ * string value_label = 2;
+ */
+ public Builder setValueLabelBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ valueLabel_ = value;
+ onChanged();
+ return this;
+ }
+
+ private boolean selected_ ;
+ /**
+ * bool selected = 3;
+ */
+ public boolean getSelected() {
+ return selected_;
+ }
+ /**
+ * bool selected = 3;
+ */
+ public Builder setSelected(boolean value) {
+
+ selected_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * bool selected = 3;
+ */
+ public Builder clearSelected() {
+
+ selected_ = 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:cc.arduino.cli.commands.ConfigValue)
+ }
+
+ // @@protoc_insertion_point(class_scope:cc.arduino.cli.commands.ConfigValue)
+ private static final cc.arduino.cli.commands.Board.ConfigValue DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cc.arduino.cli.commands.Board.ConfigValue();
+ }
+
+ public static cc.arduino.cli.commands.Board.ConfigValue getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring name = 1;
+ */
+ java.lang.String getName();
+ /**
+ * string name = 1;
+ */
+ com.google.protobuf.ByteString
+ getNameBytes();
+
+ /**
+ * string version = 2;
+ */
+ java.lang.String getVersion();
+ /**
+ * string version = 2;
+ */
+ com.google.protobuf.ByteString
+ getVersionBytes();
+
+ /**
+ * string packager = 3;
+ */
+ java.lang.String getPackager();
+ /**
+ * string packager = 3;
+ */
+ com.google.protobuf.ByteString
+ getPackagerBytes();
+ }
+ /**
+ * Protobuf type {@code cc.arduino.cli.commands.RequiredTool}
+ */
+ public static final class RequiredTool extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cc.arduino.cli.commands.RequiredTool)
+ RequiredToolOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use RequiredTool.newBuilder() to construct.
+ private RequiredTool(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private RequiredTool() {
+ name_ = "";
+ version_ = "";
+ packager_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new RequiredTool();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private RequiredTool(
+ 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();
+
+ name_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ version_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ packager_ = 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 cc.arduino.cli.commands.Board.internal_static_cc_arduino_cli_commands_RequiredTool_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cc.arduino.cli.commands.Board.internal_static_cc_arduino_cli_commands_RequiredTool_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cc.arduino.cli.commands.Board.RequiredTool.class, cc.arduino.cli.commands.Board.RequiredTool.Builder.class);
+ }
+
+ public static final int NAME_FIELD_NUMBER = 1;
+ private volatile java.lang.Object name_;
+ /**
+ * string name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VERSION_FIELD_NUMBER = 2;
+ private volatile java.lang.Object version_;
+ /**
+ * string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ 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();
+ version_ = s;
+ return s;
+ }
+ }
+ /**
+ * string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int PACKAGER_FIELD_NUMBER = 3;
+ private volatile java.lang.Object packager_;
+ /**
+ * string packager = 3;
+ */
+ public java.lang.String getPackager() {
+ java.lang.Object ref = packager_;
+ 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();
+ packager_ = s;
+ return s;
+ }
+ }
+ /**
+ * string packager = 3;
+ */
+ public com.google.protobuf.ByteString
+ getPackagerBytes() {
+ java.lang.Object ref = packager_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ packager_ = 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 (!getNameBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
+ }
+ if (!getVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_);
+ }
+ if (!getPackagerBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, packager_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getNameBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
+ }
+ if (!getVersionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_);
+ }
+ if (!getPackagerBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, packager_);
+ }
+ 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 cc.arduino.cli.commands.Board.RequiredTool)) {
+ return super.equals(obj);
+ }
+ cc.arduino.cli.commands.Board.RequiredTool other = (cc.arduino.cli.commands.Board.RequiredTool) obj;
+
+ if (!getName()
+ .equals(other.getName())) return false;
+ if (!getVersion()
+ .equals(other.getVersion())) return false;
+ if (!getPackager()
+ .equals(other.getPackager())) 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) + NAME_FIELD_NUMBER;
+ hash = (53 * hash) + getName().hashCode();
+ hash = (37 * hash) + VERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getVersion().hashCode();
+ hash = (37 * hash) + PACKAGER_FIELD_NUMBER;
+ hash = (53 * hash) + getPackager().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cc.arduino.cli.commands.Board.RequiredTool parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.RequiredTool parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.RequiredTool parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.RequiredTool parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.RequiredTool parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.RequiredTool parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.RequiredTool parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.RequiredTool 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 cc.arduino.cli.commands.Board.RequiredTool parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.RequiredTool 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 cc.arduino.cli.commands.Board.RequiredTool parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.RequiredTool 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(cc.arduino.cli.commands.Board.RequiredTool 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 cc.arduino.cli.commands.RequiredTool}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring name = 1;
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object version_ = "";
+ /**
+ * string version = 2;
+ */
+ public java.lang.String getVersion() {
+ java.lang.Object ref = version_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ version_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string version = 2;
+ */
+ public com.google.protobuf.ByteString
+ getVersionBytes() {
+ java.lang.Object ref = version_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ version_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string version = 2;
+ */
+ public Builder setVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string version = 2;
+ */
+ public Builder clearVersion() {
+
+ version_ = getDefaultInstance().getVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * string version = 2;
+ */
+ public Builder setVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ version_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object packager_ = "";
+ /**
+ * string packager = 3;
+ */
+ public java.lang.String getPackager() {
+ java.lang.Object ref = packager_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ packager_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string packager = 3;
+ */
+ public com.google.protobuf.ByteString
+ getPackagerBytes() {
+ java.lang.Object ref = packager_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ packager_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string packager = 3;
+ */
+ public Builder setPackager(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ packager_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string packager = 3;
+ */
+ public Builder clearPackager() {
+
+ packager_ = getDefaultInstance().getPackager();
+ onChanged();
+ return this;
+ }
+ /**
+ * string packager = 3;
+ */
+ public Builder setPackagerBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ packager_ = 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:cc.arduino.cli.commands.RequiredTool)
+ }
+
+ // @@protoc_insertion_point(class_scope:cc.arduino.cli.commands.RequiredTool)
+ private static final cc.arduino.cli.commands.Board.RequiredTool DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cc.arduino.cli.commands.Board.RequiredTool();
+ }
+
+ public static cc.arduino.cli.commands.Board.RequiredTool getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser.cc.arduino.cli.commands.Instance instance = 1;
+ */
+ boolean hasInstance();
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ cc.arduino.cli.commands.Common.Instance getInstance();
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ cc.arduino.cli.commands.Common.InstanceOrBuilder getInstanceOrBuilder();
+
+ /**
+ * string board_uri = 2;
+ */
+ java.lang.String getBoardUri();
+ /**
+ * string board_uri = 2;
+ */
+ com.google.protobuf.ByteString
+ getBoardUriBytes();
+
+ /**
+ * string sketch_path = 3;
+ */
+ java.lang.String getSketchPath();
+ /**
+ * string sketch_path = 3;
+ */
+ com.google.protobuf.ByteString
+ getSketchPathBytes();
+
+ /**
+ * string search_timeout = 4;
+ */
+ java.lang.String getSearchTimeout();
+ /**
+ * string search_timeout = 4;
+ */
+ com.google.protobuf.ByteString
+ getSearchTimeoutBytes();
+ }
+ /**
+ * Protobuf type {@code cc.arduino.cli.commands.BoardAttachReq}
+ */
+ public static final class BoardAttachReq extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:cc.arduino.cli.commands.BoardAttachReq)
+ BoardAttachReqOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BoardAttachReq.newBuilder() to construct.
+ private BoardAttachReq(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BoardAttachReq() {
+ boardUri_ = "";
+ sketchPath_ = "";
+ searchTimeout_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BoardAttachReq();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BoardAttachReq(
+ 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: {
+ cc.arduino.cli.commands.Common.Instance.Builder subBuilder = null;
+ if (instance_ != null) {
+ subBuilder = instance_.toBuilder();
+ }
+ instance_ = input.readMessage(cc.arduino.cli.commands.Common.Instance.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(instance_);
+ instance_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ boardUri_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ sketchPath_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ searchTimeout_ = 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 cc.arduino.cli.commands.Board.internal_static_cc_arduino_cli_commands_BoardAttachReq_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return cc.arduino.cli.commands.Board.internal_static_cc_arduino_cli_commands_BoardAttachReq_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ cc.arduino.cli.commands.Board.BoardAttachReq.class, cc.arduino.cli.commands.Board.BoardAttachReq.Builder.class);
+ }
+
+ public static final int INSTANCE_FIELD_NUMBER = 1;
+ private cc.arduino.cli.commands.Common.Instance instance_;
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public boolean hasInstance() {
+ return instance_ != null;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public cc.arduino.cli.commands.Common.Instance getInstance() {
+ return instance_ == null ? cc.arduino.cli.commands.Common.Instance.getDefaultInstance() : instance_;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public cc.arduino.cli.commands.Common.InstanceOrBuilder getInstanceOrBuilder() {
+ return getInstance();
+ }
+
+ public static final int BOARD_URI_FIELD_NUMBER = 2;
+ private volatile java.lang.Object boardUri_;
+ /**
+ * string board_uri = 2;
+ */
+ public java.lang.String getBoardUri() {
+ java.lang.Object ref = boardUri_;
+ 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();
+ boardUri_ = s;
+ return s;
+ }
+ }
+ /**
+ * string board_uri = 2;
+ */
+ public com.google.protobuf.ByteString
+ getBoardUriBytes() {
+ java.lang.Object ref = boardUri_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ boardUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SKETCH_PATH_FIELD_NUMBER = 3;
+ private volatile java.lang.Object sketchPath_;
+ /**
+ * string sketch_path = 3;
+ */
+ public java.lang.String getSketchPath() {
+ java.lang.Object ref = sketchPath_;
+ 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();
+ sketchPath_ = s;
+ return s;
+ }
+ }
+ /**
+ * string sketch_path = 3;
+ */
+ public com.google.protobuf.ByteString
+ getSketchPathBytes() {
+ java.lang.Object ref = sketchPath_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sketchPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SEARCH_TIMEOUT_FIELD_NUMBER = 4;
+ private volatile java.lang.Object searchTimeout_;
+ /**
+ * string search_timeout = 4;
+ */
+ public java.lang.String getSearchTimeout() {
+ java.lang.Object ref = searchTimeout_;
+ 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();
+ searchTimeout_ = s;
+ return s;
+ }
+ }
+ /**
+ * string search_timeout = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSearchTimeoutBytes() {
+ java.lang.Object ref = searchTimeout_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ searchTimeout_ = 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 (instance_ != null) {
+ output.writeMessage(1, getInstance());
+ }
+ if (!getBoardUriBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, boardUri_);
+ }
+ if (!getSketchPathBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sketchPath_);
+ }
+ if (!getSearchTimeoutBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, searchTimeout_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (instance_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getInstance());
+ }
+ if (!getBoardUriBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, boardUri_);
+ }
+ if (!getSketchPathBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sketchPath_);
+ }
+ if (!getSearchTimeoutBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, searchTimeout_);
+ }
+ 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 cc.arduino.cli.commands.Board.BoardAttachReq)) {
+ return super.equals(obj);
+ }
+ cc.arduino.cli.commands.Board.BoardAttachReq other = (cc.arduino.cli.commands.Board.BoardAttachReq) obj;
+
+ if (hasInstance() != other.hasInstance()) return false;
+ if (hasInstance()) {
+ if (!getInstance()
+ .equals(other.getInstance())) return false;
+ }
+ if (!getBoardUri()
+ .equals(other.getBoardUri())) return false;
+ if (!getSketchPath()
+ .equals(other.getSketchPath())) return false;
+ if (!getSearchTimeout()
+ .equals(other.getSearchTimeout())) 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 (hasInstance()) {
+ hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
+ hash = (53 * hash) + getInstance().hashCode();
+ }
+ hash = (37 * hash) + BOARD_URI_FIELD_NUMBER;
+ hash = (53 * hash) + getBoardUri().hashCode();
+ hash = (37 * hash) + SKETCH_PATH_FIELD_NUMBER;
+ hash = (53 * hash) + getSketchPath().hashCode();
+ hash = (37 * hash) + SEARCH_TIMEOUT_FIELD_NUMBER;
+ hash = (53 * hash) + getSearchTimeout().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static cc.arduino.cli.commands.Board.BoardAttachReq parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.BoardAttachReq parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.BoardAttachReq parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.BoardAttachReq parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.BoardAttachReq parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static cc.arduino.cli.commands.Board.BoardAttachReq parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static cc.arduino.cli.commands.Board.BoardAttachReq parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.BoardAttachReq 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 cc.arduino.cli.commands.Board.BoardAttachReq parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.BoardAttachReq 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 cc.arduino.cli.commands.Board.BoardAttachReq parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static cc.arduino.cli.commands.Board.BoardAttachReq 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(cc.arduino.cli.commands.Board.BoardAttachReq 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 cc.arduino.cli.commands.BoardAttachReq}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder.cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public boolean hasInstance() {
+ return instanceBuilder_ != null || instance_ != null;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public cc.arduino.cli.commands.Common.Instance getInstance() {
+ if (instanceBuilder_ == null) {
+ return instance_ == null ? cc.arduino.cli.commands.Common.Instance.getDefaultInstance() : instance_;
+ } else {
+ return instanceBuilder_.getMessage();
+ }
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public Builder setInstance(cc.arduino.cli.commands.Common.Instance value) {
+ if (instanceBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ instance_ = value;
+ onChanged();
+ } else {
+ instanceBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public Builder setInstance(
+ cc.arduino.cli.commands.Common.Instance.Builder builderForValue) {
+ if (instanceBuilder_ == null) {
+ instance_ = builderForValue.build();
+ onChanged();
+ } else {
+ instanceBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public Builder mergeInstance(cc.arduino.cli.commands.Common.Instance value) {
+ if (instanceBuilder_ == null) {
+ if (instance_ != null) {
+ instance_ =
+ cc.arduino.cli.commands.Common.Instance.newBuilder(instance_).mergeFrom(value).buildPartial();
+ } else {
+ instance_ = value;
+ }
+ onChanged();
+ } else {
+ instanceBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public Builder clearInstance() {
+ if (instanceBuilder_ == null) {
+ instance_ = null;
+ onChanged();
+ } else {
+ instance_ = null;
+ instanceBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public cc.arduino.cli.commands.Common.Instance.Builder getInstanceBuilder() {
+
+ onChanged();
+ return getInstanceFieldBuilder().getBuilder();
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ public cc.arduino.cli.commands.Common.InstanceOrBuilder getInstanceOrBuilder() {
+ if (instanceBuilder_ != null) {
+ return instanceBuilder_.getMessageOrBuilder();
+ } else {
+ return instance_ == null ?
+ cc.arduino.cli.commands.Common.Instance.getDefaultInstance() : instance_;
+ }
+ }
+ /**
+ * .cc.arduino.cli.commands.Instance instance = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ cc.arduino.cli.commands.Common.Instance, cc.arduino.cli.commands.Common.Instance.Builder, cc.arduino.cli.commands.Common.InstanceOrBuilder>
+ getInstanceFieldBuilder() {
+ if (instanceBuilder_ == null) {
+ instanceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ cc.arduino.cli.commands.Common.Instance, cc.arduino.cli.commands.Common.Instance.Builder, cc.arduino.cli.commands.Common.InstanceOrBuilder>(
+ getInstance(),
+ getParentForChildren(),
+ isClean());
+ instance_ = null;
+ }
+ return instanceBuilder_;
+ }
+
+ private java.lang.Object boardUri_ = "";
+ /**
+ * string board_uri = 2;
+ */
+ public java.lang.String getBoardUri() {
+ java.lang.Object ref = boardUri_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ boardUri_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string board_uri = 2;
+ */
+ public com.google.protobuf.ByteString
+ getBoardUriBytes() {
+ java.lang.Object ref = boardUri_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ boardUri_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string board_uri = 2;
+ */
+ public Builder setBoardUri(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ boardUri_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string board_uri = 2;
+ */
+ public Builder clearBoardUri() {
+
+ boardUri_ = getDefaultInstance().getBoardUri();
+ onChanged();
+ return this;
+ }
+ /**
+ * string board_uri = 2;
+ */
+ public Builder setBoardUriBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ boardUri_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object sketchPath_ = "";
+ /**
+ * string sketch_path = 3;
+ */
+ public java.lang.String getSketchPath() {
+ java.lang.Object ref = sketchPath_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ sketchPath_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string sketch_path = 3;
+ */
+ public com.google.protobuf.ByteString
+ getSketchPathBytes() {
+ java.lang.Object ref = sketchPath_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ sketchPath_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string sketch_path = 3;
+ */
+ public Builder setSketchPath(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ sketchPath_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string sketch_path = 3;
+ */
+ public Builder clearSketchPath() {
+
+ sketchPath_ = getDefaultInstance().getSketchPath();
+ onChanged();
+ return this;
+ }
+ /**
+ * string sketch_path = 3;
+ */
+ public Builder setSketchPathBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ sketchPath_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object searchTimeout_ = "";
+ /**
+ * string search_timeout = 4;
+ */
+ public java.lang.String getSearchTimeout() {
+ java.lang.Object ref = searchTimeout_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ searchTimeout_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string search_timeout = 4;
+ */
+ public com.google.protobuf.ByteString
+ getSearchTimeoutBytes() {
+ java.lang.Object ref = searchTimeout_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ searchTimeout_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string search_timeout = 4;
+ */
+ public Builder setSearchTimeout(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ searchTimeout_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string search_timeout = 4;
+ */
+ public Builder clearSearchTimeout() {
+
+ searchTimeout_ = getDefaultInstance().getSearchTimeout();
+ onChanged();
+ return this;
+ }
+ /**
+ * string search_timeout = 4;
+ */
+ public Builder setSearchTimeoutBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ searchTimeout_ = 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:cc.arduino.cli.commands.BoardAttachReq)
+ }
+
+ // @@protoc_insertion_point(class_scope:cc.arduino.cli.commands.BoardAttachReq)
+ private static final cc.arduino.cli.commands.Board.BoardAttachReq DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new cc.arduino.cli.commands.Board.BoardAttachReq();
+ }
+
+ public static cc.arduino.cli.commands.Board.BoardAttachReq getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser