mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
Updated GRPC/arduino-cli to version 0.7.2
This commit is contained in:
parent
197992c8f5
commit
b30379dfbc
@ -35,10 +35,15 @@ import java.util.Iterator;
|
||||
|
||||
import cc.arduino.cli.commands.ArduinoCoreGrpc;
|
||||
import cc.arduino.cli.commands.ArduinoCoreGrpc.ArduinoCoreBlockingStub;
|
||||
import cc.arduino.cli.commands.Commands.Configuration;
|
||||
import cc.arduino.cli.commands.Commands.InitReq;
|
||||
import cc.arduino.cli.commands.Commands.InitResp;
|
||||
import cc.arduino.cli.commands.Common.Instance;
|
||||
import cc.arduino.cli.settings.SettingsGrpc;
|
||||
import cc.arduino.cli.settings.SettingsOuterClass;
|
||||
import cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest;
|
||||
import cc.arduino.cli.settings.SettingsOuterClass.RawData;
|
||||
import cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse;
|
||||
import cc.arduino.cli.settings.SettingsGrpc.SettingsBlockingStub;
|
||||
import io.grpc.ManagedChannel;
|
||||
import io.grpc.ManagedChannelBuilder;
|
||||
import processing.app.BaseNoGui;
|
||||
@ -48,7 +53,8 @@ import processing.app.helpers.ProcessUtils;
|
||||
public class ArduinoCore {
|
||||
|
||||
private Process cliProcess;
|
||||
private ArduinoCoreBlockingStub blocking;
|
||||
private ArduinoCoreBlockingStub coreBlocking;
|
||||
private SettingsBlockingStub settingsBlocking;
|
||||
// private ArduinoCoreStub async;
|
||||
|
||||
public ArduinoCore() throws IOException {
|
||||
@ -82,17 +88,35 @@ public class ArduinoCore {
|
||||
.usePlaintext() //
|
||||
.maxInboundMessageSize(Integer.MAX_VALUE) //
|
||||
.build();
|
||||
blocking = ArduinoCoreGrpc.newBlockingStub(channel);
|
||||
coreBlocking = ArduinoCoreGrpc.newBlockingStub(channel);
|
||||
settingsBlocking = SettingsGrpc.newBlockingStub(channel);
|
||||
// async = ArduinoCoreGrpc.newStub(channel);
|
||||
}
|
||||
|
||||
public void setDataDir(File dataDir) {
|
||||
settingsBlocking
|
||||
.setValue(SettingsOuterClass.Value.newBuilder().setKey("directories") //
|
||||
.setJsonData("{ \"data\": \"" + dataDir.getAbsolutePath() + "\" }") //
|
||||
.build());
|
||||
File downloadsDir = new File(dataDir, "staging");
|
||||
settingsBlocking
|
||||
.setValue(SettingsOuterClass.Value.newBuilder().setKey("directories") //
|
||||
.setJsonData("{ \"downloads\": \"" + downloadsDir.getAbsolutePath()
|
||||
+ "\" }") //
|
||||
.build());
|
||||
}
|
||||
|
||||
public void setSketchbookDir(File dataDir) {
|
||||
settingsBlocking
|
||||
.setValue(SettingsOuterClass.Value.newBuilder().setKey("directories") //
|
||||
.setJsonData("{ \"user\": \"" + dataDir.getAbsolutePath() + "\" }") //
|
||||
.build());
|
||||
}
|
||||
|
||||
public ArduinoCoreInstance init(File dataDir, File sketchbookDir) {
|
||||
InitReq req = InitReq.newBuilder()
|
||||
.setConfiguration(Configuration.newBuilder() //
|
||||
.setDataDir(dataDir.getAbsolutePath()) //
|
||||
.setSketchbookDir(sketchbookDir.getAbsolutePath()))
|
||||
.build();
|
||||
Iterator<InitResp> resp = blocking.init(req);
|
||||
setDataDir(dataDir);
|
||||
setSketchbookDir(sketchbookDir);
|
||||
Iterator<InitResp> resp = coreBlocking.init(InitReq.getDefaultInstance());
|
||||
Instance instance = null;
|
||||
while (resp.hasNext()) {
|
||||
InitResp r = resp.next();
|
||||
@ -110,14 +134,14 @@ public class ArduinoCore {
|
||||
instance = r.getInstance();
|
||||
}
|
||||
}
|
||||
return new ArduinoCoreInstance(instance, blocking);
|
||||
return new ArduinoCoreInstance(instance, coreBlocking);
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
ArduinoCore core = new ArduinoCore();
|
||||
ArduinoCoreInstance instance = core.init(new File("/mnt/ramdisk"),
|
||||
new File("/mnt/ramdisk/sketchbook"));
|
||||
ArduinoCoreInstance instance = core
|
||||
.init(new File("/mnt/ramdisk"), new File("/mnt/ramdisk/sketchbook"));
|
||||
instance.boardDetails("arduino:samd:mkr1000");
|
||||
instance.compile("arduino:samd:mkr1000",
|
||||
"/home/megabug/Arduino/alloc_check");
|
||||
|
@ -14,1272 +14,10 @@ public final class Commands {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
public interface ConfigurationOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:cc.arduino.cli.commands.Configuration)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* dataDir represents the current root of the arduino tree (defaulted to
|
||||
* `$HOME/.arduino15` on linux).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string dataDir = 1;</code>
|
||||
*/
|
||||
java.lang.String getDataDir();
|
||||
/**
|
||||
* <pre>
|
||||
* dataDir represents the current root of the arduino tree (defaulted to
|
||||
* `$HOME/.arduino15` on linux).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string dataDir = 1;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getDataDirBytes();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* sketchbookDir represents the current root of the sketchbooks tree
|
||||
* (defaulted to `$HOME/Arduino`).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sketchbookDir = 2;</code>
|
||||
*/
|
||||
java.lang.String getSketchbookDir();
|
||||
/**
|
||||
* <pre>
|
||||
* sketchbookDir represents the current root of the sketchbooks tree
|
||||
* (defaulted to `$HOME/Arduino`).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sketchbookDir = 2;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getSketchbookDirBytes();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* ArduinoIDEDirectory is the directory of the Arduino IDE if the CLI runs
|
||||
* together with it.
|
||||
* </pre>
|
||||
*
|
||||
* <code>string downloadsDir = 3;</code>
|
||||
*/
|
||||
java.lang.String getDownloadsDir();
|
||||
/**
|
||||
* <pre>
|
||||
* ArduinoIDEDirectory is the directory of the Arduino IDE if the CLI runs
|
||||
* together with it.
|
||||
* </pre>
|
||||
*
|
||||
* <code>string downloadsDir = 3;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getDownloadsDirBytes();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
java.util.List<java.lang.String>
|
||||
getBoardManagerAdditionalUrlsList();
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
int getBoardManagerAdditionalUrlsCount();
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
java.lang.String getBoardManagerAdditionalUrls(int index);
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getBoardManagerAdditionalUrlsBytes(int index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Configuration contains information to instantiate an Arduino Platform Service
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code cc.arduino.cli.commands.Configuration}
|
||||
*/
|
||||
public static final class Configuration extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:cc.arduino.cli.commands.Configuration)
|
||||
ConfigurationOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use Configuration.newBuilder() to construct.
|
||||
private Configuration(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private Configuration() {
|
||||
dataDir_ = "";
|
||||
sketchbookDir_ = "";
|
||||
downloadsDir_ = "";
|
||||
boardManagerAdditionalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new Configuration();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private Configuration(
|
||||
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();
|
||||
|
||||
dataDir_ = s;
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
|
||||
sketchbookDir_ = s;
|
||||
break;
|
||||
}
|
||||
case 26: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
|
||||
downloadsDir_ = s;
|
||||
break;
|
||||
}
|
||||
case 34: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
boardManagerAdditionalUrls_ = new com.google.protobuf.LazyStringArrayList();
|
||||
mutable_bitField0_ |= 0x00000001;
|
||||
}
|
||||
boardManagerAdditionalUrls_.add(s);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
done = true;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
throw e.setUnfinishedMessage(this);
|
||||
} catch (java.io.IOException e) {
|
||||
throw new com.google.protobuf.InvalidProtocolBufferException(
|
||||
e).setUnfinishedMessage(this);
|
||||
} finally {
|
||||
if (((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
boardManagerAdditionalUrls_ = boardManagerAdditionalUrls_.getUnmodifiableView();
|
||||
}
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
}
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cc.arduino.cli.commands.Commands.internal_static_cc_arduino_cli_commands_Configuration_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.commands.Commands.internal_static_cc_arduino_cli_commands_Configuration_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.commands.Commands.Configuration.class, cc.arduino.cli.commands.Commands.Configuration.Builder.class);
|
||||
}
|
||||
|
||||
public static final int DATADIR_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object dataDir_;
|
||||
/**
|
||||
* <pre>
|
||||
* dataDir represents the current root of the arduino tree (defaulted to
|
||||
* `$HOME/.arduino15` on linux).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string dataDir = 1;</code>
|
||||
*/
|
||||
public java.lang.String getDataDir() {
|
||||
java.lang.Object ref = dataDir_;
|
||||
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();
|
||||
dataDir_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* dataDir represents the current root of the arduino tree (defaulted to
|
||||
* `$HOME/.arduino15` on linux).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string dataDir = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getDataDirBytes() {
|
||||
java.lang.Object ref = dataDir_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
dataDir_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
public static final int SKETCHBOOKDIR_FIELD_NUMBER = 2;
|
||||
private volatile java.lang.Object sketchbookDir_;
|
||||
/**
|
||||
* <pre>
|
||||
* sketchbookDir represents the current root of the sketchbooks tree
|
||||
* (defaulted to `$HOME/Arduino`).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sketchbookDir = 2;</code>
|
||||
*/
|
||||
public java.lang.String getSketchbookDir() {
|
||||
java.lang.Object ref = sketchbookDir_;
|
||||
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();
|
||||
sketchbookDir_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* sketchbookDir represents the current root of the sketchbooks tree
|
||||
* (defaulted to `$HOME/Arduino`).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sketchbookDir = 2;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getSketchbookDirBytes() {
|
||||
java.lang.Object ref = sketchbookDir_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
sketchbookDir_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
public static final int DOWNLOADSDIR_FIELD_NUMBER = 3;
|
||||
private volatile java.lang.Object downloadsDir_;
|
||||
/**
|
||||
* <pre>
|
||||
* ArduinoIDEDirectory is the directory of the Arduino IDE if the CLI runs
|
||||
* together with it.
|
||||
* </pre>
|
||||
*
|
||||
* <code>string downloadsDir = 3;</code>
|
||||
*/
|
||||
public java.lang.String getDownloadsDir() {
|
||||
java.lang.Object ref = downloadsDir_;
|
||||
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();
|
||||
downloadsDir_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* ArduinoIDEDirectory is the directory of the Arduino IDE if the CLI runs
|
||||
* together with it.
|
||||
* </pre>
|
||||
*
|
||||
* <code>string downloadsDir = 3;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getDownloadsDirBytes() {
|
||||
java.lang.Object ref = downloadsDir_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
downloadsDir_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
public static final int BOARDMANAGERADDITIONALURLS_FIELD_NUMBER = 4;
|
||||
private com.google.protobuf.LazyStringList boardManagerAdditionalUrls_;
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public com.google.protobuf.ProtocolStringList
|
||||
getBoardManagerAdditionalUrlsList() {
|
||||
return boardManagerAdditionalUrls_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public int getBoardManagerAdditionalUrlsCount() {
|
||||
return boardManagerAdditionalUrls_.size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public java.lang.String getBoardManagerAdditionalUrls(int index) {
|
||||
return boardManagerAdditionalUrls_.get(index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getBoardManagerAdditionalUrlsBytes(int index) {
|
||||
return boardManagerAdditionalUrls_.getByteString(index);
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
byte isInitialized = memoizedIsInitialized;
|
||||
if (isInitialized == 1) return true;
|
||||
if (isInitialized == 0) return false;
|
||||
|
||||
memoizedIsInitialized = 1;
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (!getDataDirBytes().isEmpty()) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dataDir_);
|
||||
}
|
||||
if (!getSketchbookDirBytes().isEmpty()) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, sketchbookDir_);
|
||||
}
|
||||
if (!getDownloadsDirBytes().isEmpty()) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, downloadsDir_);
|
||||
}
|
||||
for (int i = 0; i < boardManagerAdditionalUrls_.size(); i++) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, boardManagerAdditionalUrls_.getRaw(i));
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!getDataDirBytes().isEmpty()) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dataDir_);
|
||||
}
|
||||
if (!getSketchbookDirBytes().isEmpty()) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, sketchbookDir_);
|
||||
}
|
||||
if (!getDownloadsDirBytes().isEmpty()) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, downloadsDir_);
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < boardManagerAdditionalUrls_.size(); i++) {
|
||||
dataSize += computeStringSizeNoTag(boardManagerAdditionalUrls_.getRaw(i));
|
||||
}
|
||||
size += dataSize;
|
||||
size += 1 * getBoardManagerAdditionalUrlsList().size();
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public boolean equals(final java.lang.Object obj) {
|
||||
if (obj == this) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof cc.arduino.cli.commands.Commands.Configuration)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
cc.arduino.cli.commands.Commands.Configuration other = (cc.arduino.cli.commands.Commands.Configuration) obj;
|
||||
|
||||
if (!getDataDir()
|
||||
.equals(other.getDataDir())) return false;
|
||||
if (!getSketchbookDir()
|
||||
.equals(other.getSketchbookDir())) return false;
|
||||
if (!getDownloadsDir()
|
||||
.equals(other.getDownloadsDir())) return false;
|
||||
if (!getBoardManagerAdditionalUrlsList()
|
||||
.equals(other.getBoardManagerAdditionalUrlsList())) 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) + DATADIR_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getDataDir().hashCode();
|
||||
hash = (37 * hash) + SKETCHBOOKDIR_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getSketchbookDir().hashCode();
|
||||
hash = (37 * hash) + DOWNLOADSDIR_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getDownloadsDir().hashCode();
|
||||
if (getBoardManagerAdditionalUrlsCount() > 0) {
|
||||
hash = (37 * hash) + BOARDMANAGERADDITIONALURLS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getBoardManagerAdditionalUrlsList().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.commands.Commands.Configuration parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.commands.Commands.Configuration 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.Commands.Configuration parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.commands.Commands.Configuration 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.Commands.Configuration parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.commands.Commands.Configuration parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cc.arduino.cli.commands.Commands.Configuration parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.commands.Commands.Configuration 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.Commands.Configuration parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.commands.Commands.Configuration 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.Commands.Configuration parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.commands.Commands.Configuration 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.Commands.Configuration 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;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* Configuration contains information to instantiate an Arduino Platform Service
|
||||
* </pre>
|
||||
*
|
||||
* Protobuf type {@code cc.arduino.cli.commands.Configuration}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:cc.arduino.cli.commands.Configuration)
|
||||
cc.arduino.cli.commands.Commands.ConfigurationOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cc.arduino.cli.commands.Commands.internal_static_cc_arduino_cli_commands_Configuration_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.commands.Commands.internal_static_cc_arduino_cli_commands_Configuration_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.commands.Commands.Configuration.class, cc.arduino.cli.commands.Commands.Configuration.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using cc.arduino.cli.commands.Commands.Configuration.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
dataDir_ = "";
|
||||
|
||||
sketchbookDir_ = "";
|
||||
|
||||
downloadsDir_ = "";
|
||||
|
||||
boardManagerAdditionalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return cc.arduino.cli.commands.Commands.internal_static_cc_arduino_cli_commands_Configuration_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.commands.Commands.Configuration getDefaultInstanceForType() {
|
||||
return cc.arduino.cli.commands.Commands.Configuration.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.commands.Commands.Configuration build() {
|
||||
cc.arduino.cli.commands.Commands.Configuration result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.commands.Commands.Configuration buildPartial() {
|
||||
cc.arduino.cli.commands.Commands.Configuration result = new cc.arduino.cli.commands.Commands.Configuration(this);
|
||||
int from_bitField0_ = bitField0_;
|
||||
result.dataDir_ = dataDir_;
|
||||
result.sketchbookDir_ = sketchbookDir_;
|
||||
result.downloadsDir_ = downloadsDir_;
|
||||
if (((bitField0_ & 0x00000001) != 0)) {
|
||||
boardManagerAdditionalUrls_ = boardManagerAdditionalUrls_.getUnmodifiableView();
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
}
|
||||
result.boardManagerAdditionalUrls_ = boardManagerAdditionalUrls_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof cc.arduino.cli.commands.Commands.Configuration) {
|
||||
return mergeFrom((cc.arduino.cli.commands.Commands.Configuration)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(cc.arduino.cli.commands.Commands.Configuration other) {
|
||||
if (other == cc.arduino.cli.commands.Commands.Configuration.getDefaultInstance()) return this;
|
||||
if (!other.getDataDir().isEmpty()) {
|
||||
dataDir_ = other.dataDir_;
|
||||
onChanged();
|
||||
}
|
||||
if (!other.getSketchbookDir().isEmpty()) {
|
||||
sketchbookDir_ = other.sketchbookDir_;
|
||||
onChanged();
|
||||
}
|
||||
if (!other.getDownloadsDir().isEmpty()) {
|
||||
downloadsDir_ = other.downloadsDir_;
|
||||
onChanged();
|
||||
}
|
||||
if (!other.boardManagerAdditionalUrls_.isEmpty()) {
|
||||
if (boardManagerAdditionalUrls_.isEmpty()) {
|
||||
boardManagerAdditionalUrls_ = other.boardManagerAdditionalUrls_;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
} else {
|
||||
ensureBoardManagerAdditionalUrlsIsMutable();
|
||||
boardManagerAdditionalUrls_.addAll(other.boardManagerAdditionalUrls_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
cc.arduino.cli.commands.Commands.Configuration parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (cc.arduino.cli.commands.Commands.Configuration) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
private int bitField0_;
|
||||
|
||||
private java.lang.Object dataDir_ = "";
|
||||
/**
|
||||
* <pre>
|
||||
* dataDir represents the current root of the arduino tree (defaulted to
|
||||
* `$HOME/.arduino15` on linux).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string dataDir = 1;</code>
|
||||
*/
|
||||
public java.lang.String getDataDir() {
|
||||
java.lang.Object ref = dataDir_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
dataDir_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* dataDir represents the current root of the arduino tree (defaulted to
|
||||
* `$HOME/.arduino15` on linux).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string dataDir = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getDataDirBytes() {
|
||||
java.lang.Object ref = dataDir_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
dataDir_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* dataDir represents the current root of the arduino tree (defaulted to
|
||||
* `$HOME/.arduino15` on linux).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string dataDir = 1;</code>
|
||||
*/
|
||||
public Builder setDataDir(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
dataDir_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* dataDir represents the current root of the arduino tree (defaulted to
|
||||
* `$HOME/.arduino15` on linux).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string dataDir = 1;</code>
|
||||
*/
|
||||
public Builder clearDataDir() {
|
||||
|
||||
dataDir_ = getDefaultInstance().getDataDir();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* dataDir represents the current root of the arduino tree (defaulted to
|
||||
* `$HOME/.arduino15` on linux).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string dataDir = 1;</code>
|
||||
*/
|
||||
public Builder setDataDirBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
dataDir_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object sketchbookDir_ = "";
|
||||
/**
|
||||
* <pre>
|
||||
* sketchbookDir represents the current root of the sketchbooks tree
|
||||
* (defaulted to `$HOME/Arduino`).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sketchbookDir = 2;</code>
|
||||
*/
|
||||
public java.lang.String getSketchbookDir() {
|
||||
java.lang.Object ref = sketchbookDir_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
sketchbookDir_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* sketchbookDir represents the current root of the sketchbooks tree
|
||||
* (defaulted to `$HOME/Arduino`).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sketchbookDir = 2;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getSketchbookDirBytes() {
|
||||
java.lang.Object ref = sketchbookDir_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
sketchbookDir_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* sketchbookDir represents the current root of the sketchbooks tree
|
||||
* (defaulted to `$HOME/Arduino`).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sketchbookDir = 2;</code>
|
||||
*/
|
||||
public Builder setSketchbookDir(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
sketchbookDir_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* sketchbookDir represents the current root of the sketchbooks tree
|
||||
* (defaulted to `$HOME/Arduino`).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sketchbookDir = 2;</code>
|
||||
*/
|
||||
public Builder clearSketchbookDir() {
|
||||
|
||||
sketchbookDir_ = getDefaultInstance().getSketchbookDir();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* sketchbookDir represents the current root of the sketchbooks tree
|
||||
* (defaulted to `$HOME/Arduino`).
|
||||
* </pre>
|
||||
*
|
||||
* <code>string sketchbookDir = 2;</code>
|
||||
*/
|
||||
public Builder setSketchbookDirBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
sketchbookDir_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object downloadsDir_ = "";
|
||||
/**
|
||||
* <pre>
|
||||
* ArduinoIDEDirectory is the directory of the Arduino IDE if the CLI runs
|
||||
* together with it.
|
||||
* </pre>
|
||||
*
|
||||
* <code>string downloadsDir = 3;</code>
|
||||
*/
|
||||
public java.lang.String getDownloadsDir() {
|
||||
java.lang.Object ref = downloadsDir_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
downloadsDir_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* ArduinoIDEDirectory is the directory of the Arduino IDE if the CLI runs
|
||||
* together with it.
|
||||
* </pre>
|
||||
*
|
||||
* <code>string downloadsDir = 3;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getDownloadsDirBytes() {
|
||||
java.lang.Object ref = downloadsDir_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
downloadsDir_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* ArduinoIDEDirectory is the directory of the Arduino IDE if the CLI runs
|
||||
* together with it.
|
||||
* </pre>
|
||||
*
|
||||
* <code>string downloadsDir = 3;</code>
|
||||
*/
|
||||
public Builder setDownloadsDir(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
downloadsDir_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* ArduinoIDEDirectory is the directory of the Arduino IDE if the CLI runs
|
||||
* together with it.
|
||||
* </pre>
|
||||
*
|
||||
* <code>string downloadsDir = 3;</code>
|
||||
*/
|
||||
public Builder clearDownloadsDir() {
|
||||
|
||||
downloadsDir_ = getDefaultInstance().getDownloadsDir();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* ArduinoIDEDirectory is the directory of the Arduino IDE if the CLI runs
|
||||
* together with it.
|
||||
* </pre>
|
||||
*
|
||||
* <code>string downloadsDir = 3;</code>
|
||||
*/
|
||||
public Builder setDownloadsDirBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
downloadsDir_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.LazyStringList boardManagerAdditionalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
private void ensureBoardManagerAdditionalUrlsIsMutable() {
|
||||
if (!((bitField0_ & 0x00000001) != 0)) {
|
||||
boardManagerAdditionalUrls_ = new com.google.protobuf.LazyStringArrayList(boardManagerAdditionalUrls_);
|
||||
bitField0_ |= 0x00000001;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public com.google.protobuf.ProtocolStringList
|
||||
getBoardManagerAdditionalUrlsList() {
|
||||
return boardManagerAdditionalUrls_.getUnmodifiableView();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public int getBoardManagerAdditionalUrlsCount() {
|
||||
return boardManagerAdditionalUrls_.size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public java.lang.String getBoardManagerAdditionalUrls(int index) {
|
||||
return boardManagerAdditionalUrls_.get(index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getBoardManagerAdditionalUrlsBytes(int index) {
|
||||
return boardManagerAdditionalUrls_.getByteString(index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public Builder setBoardManagerAdditionalUrls(
|
||||
int index, java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureBoardManagerAdditionalUrlsIsMutable();
|
||||
boardManagerAdditionalUrls_.set(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public Builder addBoardManagerAdditionalUrls(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureBoardManagerAdditionalUrlsIsMutable();
|
||||
boardManagerAdditionalUrls_.add(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public Builder addAllBoardManagerAdditionalUrls(
|
||||
java.lang.Iterable<java.lang.String> values) {
|
||||
ensureBoardManagerAdditionalUrlsIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, boardManagerAdditionalUrls_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public Builder clearBoardManagerAdditionalUrls() {
|
||||
boardManagerAdditionalUrls_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
bitField0_ = (bitField0_ & ~0x00000001);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* BoardManagerAdditionalUrls contains the additional URL for 3rd party
|
||||
* packages
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string boardManagerAdditionalUrls = 4;</code>
|
||||
*/
|
||||
public Builder addBoardManagerAdditionalUrlsBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
ensureBoardManagerAdditionalUrlsIsMutable();
|
||||
boardManagerAdditionalUrls_.add(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.setUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final Builder mergeUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
return super.mergeUnknownFields(unknownFields);
|
||||
}
|
||||
|
||||
|
||||
// @@protoc_insertion_point(builder_scope:cc.arduino.cli.commands.Configuration)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:cc.arduino.cli.commands.Configuration)
|
||||
private static final cc.arduino.cli.commands.Commands.Configuration DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new cc.arduino.cli.commands.Commands.Configuration();
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.commands.Commands.Configuration getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<Configuration>
|
||||
PARSER = new com.google.protobuf.AbstractParser<Configuration>() {
|
||||
@java.lang.Override
|
||||
public Configuration parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new Configuration(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<Configuration> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<Configuration> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.commands.Commands.Configuration getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public interface InitReqOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:cc.arduino.cli.commands.InitReq)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
boolean hasConfiguration();
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
cc.arduino.cli.commands.Commands.Configuration getConfiguration();
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
cc.arduino.cli.commands.Commands.ConfigurationOrBuilder getConfigurationOrBuilder();
|
||||
|
||||
/**
|
||||
* <code>bool library_manager_only = 2;</code>
|
||||
*/
|
||||
@ -1330,19 +68,6 @@ public final class Commands {
|
||||
case 0:
|
||||
done = true;
|
||||
break;
|
||||
case 10: {
|
||||
cc.arduino.cli.commands.Commands.Configuration.Builder subBuilder = null;
|
||||
if (configuration_ != null) {
|
||||
subBuilder = configuration_.toBuilder();
|
||||
}
|
||||
configuration_ = input.readMessage(cc.arduino.cli.commands.Commands.Configuration.parser(), extensionRegistry);
|
||||
if (subBuilder != null) {
|
||||
subBuilder.mergeFrom(configuration_);
|
||||
configuration_ = subBuilder.buildPartial();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case 16: {
|
||||
|
||||
libraryManagerOnly_ = input.readBool();
|
||||
@ -1380,27 +105,6 @@ public final class Commands {
|
||||
cc.arduino.cli.commands.Commands.InitReq.class, cc.arduino.cli.commands.Commands.InitReq.Builder.class);
|
||||
}
|
||||
|
||||
public static final int CONFIGURATION_FIELD_NUMBER = 1;
|
||||
private cc.arduino.cli.commands.Commands.Configuration configuration_;
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
public boolean hasConfiguration() {
|
||||
return configuration_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
public cc.arduino.cli.commands.Commands.Configuration getConfiguration() {
|
||||
return configuration_ == null ? cc.arduino.cli.commands.Commands.Configuration.getDefaultInstance() : configuration_;
|
||||
}
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
public cc.arduino.cli.commands.Commands.ConfigurationOrBuilder getConfigurationOrBuilder() {
|
||||
return getConfiguration();
|
||||
}
|
||||
|
||||
public static final int LIBRARY_MANAGER_ONLY_FIELD_NUMBER = 2;
|
||||
private boolean libraryManagerOnly_;
|
||||
/**
|
||||
@ -1424,9 +128,6 @@ public final class Commands {
|
||||
@java.lang.Override
|
||||
public void writeTo(com.google.protobuf.CodedOutputStream output)
|
||||
throws java.io.IOException {
|
||||
if (configuration_ != null) {
|
||||
output.writeMessage(1, getConfiguration());
|
||||
}
|
||||
if (libraryManagerOnly_ != false) {
|
||||
output.writeBool(2, libraryManagerOnly_);
|
||||
}
|
||||
@ -1439,10 +140,6 @@ public final class Commands {
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (configuration_ != null) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeMessageSize(1, getConfiguration());
|
||||
}
|
||||
if (libraryManagerOnly_ != false) {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeBoolSize(2, libraryManagerOnly_);
|
||||
@ -1462,11 +159,6 @@ public final class Commands {
|
||||
}
|
||||
cc.arduino.cli.commands.Commands.InitReq other = (cc.arduino.cli.commands.Commands.InitReq) obj;
|
||||
|
||||
if (hasConfiguration() != other.hasConfiguration()) return false;
|
||||
if (hasConfiguration()) {
|
||||
if (!getConfiguration()
|
||||
.equals(other.getConfiguration())) return false;
|
||||
}
|
||||
if (getLibraryManagerOnly()
|
||||
!= other.getLibraryManagerOnly()) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
@ -1480,10 +172,6 @@ public final class Commands {
|
||||
}
|
||||
int hash = 41;
|
||||
hash = (19 * hash) + getDescriptor().hashCode();
|
||||
if (hasConfiguration()) {
|
||||
hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getConfiguration().hashCode();
|
||||
}
|
||||
hash = (37 * hash) + LIBRARY_MANAGER_ONLY_FIELD_NUMBER;
|
||||
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
|
||||
getLibraryManagerOnly());
|
||||
@ -1620,12 +308,6 @@ public final class Commands {
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
if (configurationBuilder_ == null) {
|
||||
configuration_ = null;
|
||||
} else {
|
||||
configuration_ = null;
|
||||
configurationBuilder_ = null;
|
||||
}
|
||||
libraryManagerOnly_ = false;
|
||||
|
||||
return this;
|
||||
@ -1654,11 +336,6 @@ public final class Commands {
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.commands.Commands.InitReq buildPartial() {
|
||||
cc.arduino.cli.commands.Commands.InitReq result = new cc.arduino.cli.commands.Commands.InitReq(this);
|
||||
if (configurationBuilder_ == null) {
|
||||
result.configuration_ = configuration_;
|
||||
} else {
|
||||
result.configuration_ = configurationBuilder_.build();
|
||||
}
|
||||
result.libraryManagerOnly_ = libraryManagerOnly_;
|
||||
onBuilt();
|
||||
return result;
|
||||
@ -1708,9 +385,6 @@ public final class Commands {
|
||||
|
||||
public Builder mergeFrom(cc.arduino.cli.commands.Commands.InitReq other) {
|
||||
if (other == cc.arduino.cli.commands.Commands.InitReq.getDefaultInstance()) return this;
|
||||
if (other.hasConfiguration()) {
|
||||
mergeConfiguration(other.getConfiguration());
|
||||
}
|
||||
if (other.getLibraryManagerOnly() != false) {
|
||||
setLibraryManagerOnly(other.getLibraryManagerOnly());
|
||||
}
|
||||
@ -1743,123 +417,6 @@ public final class Commands {
|
||||
return this;
|
||||
}
|
||||
|
||||
private cc.arduino.cli.commands.Commands.Configuration configuration_;
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
cc.arduino.cli.commands.Commands.Configuration, cc.arduino.cli.commands.Commands.Configuration.Builder, cc.arduino.cli.commands.Commands.ConfigurationOrBuilder> configurationBuilder_;
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
public boolean hasConfiguration() {
|
||||
return configurationBuilder_ != null || configuration_ != null;
|
||||
}
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
public cc.arduino.cli.commands.Commands.Configuration getConfiguration() {
|
||||
if (configurationBuilder_ == null) {
|
||||
return configuration_ == null ? cc.arduino.cli.commands.Commands.Configuration.getDefaultInstance() : configuration_;
|
||||
} else {
|
||||
return configurationBuilder_.getMessage();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
public Builder setConfiguration(cc.arduino.cli.commands.Commands.Configuration value) {
|
||||
if (configurationBuilder_ == null) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
configuration_ = value;
|
||||
onChanged();
|
||||
} else {
|
||||
configurationBuilder_.setMessage(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
public Builder setConfiguration(
|
||||
cc.arduino.cli.commands.Commands.Configuration.Builder builderForValue) {
|
||||
if (configurationBuilder_ == null) {
|
||||
configuration_ = builderForValue.build();
|
||||
onChanged();
|
||||
} else {
|
||||
configurationBuilder_.setMessage(builderForValue.build());
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
public Builder mergeConfiguration(cc.arduino.cli.commands.Commands.Configuration value) {
|
||||
if (configurationBuilder_ == null) {
|
||||
if (configuration_ != null) {
|
||||
configuration_ =
|
||||
cc.arduino.cli.commands.Commands.Configuration.newBuilder(configuration_).mergeFrom(value).buildPartial();
|
||||
} else {
|
||||
configuration_ = value;
|
||||
}
|
||||
onChanged();
|
||||
} else {
|
||||
configurationBuilder_.mergeFrom(value);
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
public Builder clearConfiguration() {
|
||||
if (configurationBuilder_ == null) {
|
||||
configuration_ = null;
|
||||
onChanged();
|
||||
} else {
|
||||
configuration_ = null;
|
||||
configurationBuilder_ = null;
|
||||
}
|
||||
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
public cc.arduino.cli.commands.Commands.Configuration.Builder getConfigurationBuilder() {
|
||||
|
||||
onChanged();
|
||||
return getConfigurationFieldBuilder().getBuilder();
|
||||
}
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
public cc.arduino.cli.commands.Commands.ConfigurationOrBuilder getConfigurationOrBuilder() {
|
||||
if (configurationBuilder_ != null) {
|
||||
return configurationBuilder_.getMessageOrBuilder();
|
||||
} else {
|
||||
return configuration_ == null ?
|
||||
cc.arduino.cli.commands.Commands.Configuration.getDefaultInstance() : configuration_;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>.cc.arduino.cli.commands.Configuration configuration = 1;</code>
|
||||
*/
|
||||
private com.google.protobuf.SingleFieldBuilderV3<
|
||||
cc.arduino.cli.commands.Commands.Configuration, cc.arduino.cli.commands.Commands.Configuration.Builder, cc.arduino.cli.commands.Commands.ConfigurationOrBuilder>
|
||||
getConfigurationFieldBuilder() {
|
||||
if (configurationBuilder_ == null) {
|
||||
configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
||||
cc.arduino.cli.commands.Commands.Configuration, cc.arduino.cli.commands.Commands.Configuration.Builder, cc.arduino.cli.commands.Commands.ConfigurationOrBuilder>(
|
||||
getConfiguration(),
|
||||
getParentForChildren(),
|
||||
isClean());
|
||||
configuration_ = null;
|
||||
}
|
||||
return configurationBuilder_;
|
||||
}
|
||||
|
||||
private boolean libraryManagerOnly_ ;
|
||||
/**
|
||||
* <code>bool library_manager_only = 2;</code>
|
||||
@ -9077,11 +7634,6 @@ public final class Commands {
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_cc_arduino_cli_commands_Configuration_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_cc_arduino_cli_commands_Configuration_fieldAccessorTable;
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_cc_arduino_cli_commands_InitReq_descriptor;
|
||||
private static final
|
||||
@ -9155,101 +7707,97 @@ public final class Commands {
|
||||
"i.commands\032\025commands/common.proto\032\024comma" +
|
||||
"nds/board.proto\032\026commands/compile.proto\032" +
|
||||
"\023commands/core.proto\032\025commands/upload.pr" +
|
||||
"oto\032\022commands/lib.proto\"q\n\rConfiguration" +
|
||||
"\022\017\n\007dataDir\030\001 \001(\t\022\025\n\rsketchbookDir\030\002 \001(\t" +
|
||||
"\022\024\n\014downloadsDir\030\003 \001(\t\022\"\n\032boardManagerAd" +
|
||||
"ditionalUrls\030\004 \003(\t\"f\n\007InitReq\022=\n\rconfigu" +
|
||||
"ration\030\001 \001(\0132&.cc.arduino.cli.commands.C" +
|
||||
"onfiguration\022\034\n\024library_manager_only\030\002 \001" +
|
||||
"(\010\"\202\002\n\010InitResp\0223\n\010instance\030\001 \001(\0132!.cc.a" +
|
||||
"rduino.cli.commands.Instance\022\036\n\026platform" +
|
||||
"s_index_errors\030\002 \003(\t\022\035\n\025libraries_index_" +
|
||||
"error\030\003 \001(\t\022D\n\021download_progress\030\004 \001(\0132)" +
|
||||
".cc.arduino.cli.commands.DownloadProgres" +
|
||||
"s\022<\n\rtask_progress\030\005 \001(\0132%.cc.arduino.cl" +
|
||||
"i.commands.TaskProgress\"A\n\nDestroyReq\0223\n" +
|
||||
"oto\032\022commands/lib.proto\"\'\n\007InitReq\022\034\n\024li" +
|
||||
"brary_manager_only\030\002 \001(\010\"\202\002\n\010InitResp\0223\n" +
|
||||
"\010instance\030\001 \001(\0132!.cc.arduino.cli.command" +
|
||||
"s.Instance\"\r\n\013DestroyResp\"@\n\tRescanReq\0223" +
|
||||
"\n\010instance\030\001 \001(\0132!.cc.arduino.cli.comman" +
|
||||
"ds.Instance\"K\n\nRescanResp\022\036\n\026platforms_i" +
|
||||
"ndex_errors\030\001 \003(\t\022\035\n\025libraries_index_err" +
|
||||
"or\030\002 \001(\t\"E\n\016UpdateIndexReq\0223\n\010instance\030\001" +
|
||||
" \001(\0132!.cc.arduino.cli.commands.Instance\"" +
|
||||
"W\n\017UpdateIndexResp\022D\n\021download_progress\030" +
|
||||
"s.Instance\022\036\n\026platforms_index_errors\030\002 \003" +
|
||||
"(\t\022\035\n\025libraries_index_error\030\003 \001(\t\022D\n\021dow" +
|
||||
"nload_progress\030\004 \001(\0132).cc.arduino.cli.co" +
|
||||
"mmands.DownloadProgress\022<\n\rtask_progress" +
|
||||
"\030\005 \001(\0132%.cc.arduino.cli.commands.TaskPro" +
|
||||
"gress\"A\n\nDestroyReq\0223\n\010instance\030\001 \001(\0132!." +
|
||||
"cc.arduino.cli.commands.Instance\"\r\n\013Dest" +
|
||||
"royResp\"@\n\tRescanReq\0223\n\010instance\030\001 \001(\0132!" +
|
||||
".cc.arduino.cli.commands.Instance\"K\n\nRes" +
|
||||
"canResp\022\036\n\026platforms_index_errors\030\001 \003(\t\022" +
|
||||
"\035\n\025libraries_index_error\030\002 \001(\t\"E\n\016Update" +
|
||||
"IndexReq\0223\n\010instance\030\001 \001(\0132!.cc.arduino." +
|
||||
"cli.commands.Instance\"W\n\017UpdateIndexResp" +
|
||||
"\022D\n\021download_progress\030\001 \001(\0132).cc.arduino" +
|
||||
".cli.commands.DownloadProgress\"N\n\027Update" +
|
||||
"LibrariesIndexReq\0223\n\010instance\030\001 \001(\0132!.cc" +
|
||||
".arduino.cli.commands.Instance\"`\n\030Update" +
|
||||
"LibrariesIndexResp\022D\n\021download_progress\030" +
|
||||
"\001 \001(\0132).cc.arduino.cli.commands.Download" +
|
||||
"Progress\"N\n\027UpdateLibrariesIndexReq\0223\n\010i" +
|
||||
"nstance\030\001 \001(\0132!.cc.arduino.cli.commands." +
|
||||
"Instance\"`\n\030UpdateLibrariesIndexResp\022D\n\021" +
|
||||
"download_progress\030\001 \001(\0132).cc.arduino.cli" +
|
||||
".commands.DownloadProgress\"\014\n\nVersionReq" +
|
||||
"\"\036\n\013VersionResp\022\017\n\007version\030\001 \001(\t2\272\024\n\013Ard" +
|
||||
"uinoCore\022O\n\004Init\022 .cc.arduino.cli.comman" +
|
||||
"ds.InitReq\032!.cc.arduino.cli.commands.Ini" +
|
||||
"tResp\"\0000\001\022V\n\007Destroy\022#.cc.arduino.cli.co" +
|
||||
"mmands.DestroyReq\032$.cc.arduino.cli.comma" +
|
||||
"nds.DestroyResp\"\000\022S\n\006Rescan\022\".cc.arduino" +
|
||||
".cli.commands.RescanReq\032#.cc.arduino.cli" +
|
||||
".commands.RescanResp\"\000\022d\n\013UpdateIndex\022\'." +
|
||||
"cc.arduino.cli.commands.UpdateIndexReq\032(" +
|
||||
".cc.arduino.cli.commands.UpdateIndexResp" +
|
||||
"\"\0000\001\022\177\n\024UpdateLibrariesIndex\0220.cc.arduin" +
|
||||
"o.cli.commands.UpdateLibrariesIndexReq\0321" +
|
||||
".cc.arduino.cli.commands.UpdateLibraries" +
|
||||
"IndexResp\"\0000\001\022V\n\007Version\022#.cc.arduino.cl" +
|
||||
"i.commands.VersionReq\032$.cc.arduino.cli.c" +
|
||||
"ommands.VersionResp\"\000\022c\n\014BoardDetails\022(." +
|
||||
"cc.arduino.cli.commands.BoardDetailsReq\032" +
|
||||
").cc.arduino.cli.commands.BoardDetailsRe" +
|
||||
"sp\022b\n\013BoardAttach\022\'.cc.arduino.cli.comma" +
|
||||
"nds.BoardAttachReq\032(.cc.arduino.cli.comm" +
|
||||
"ands.BoardAttachResp0\001\022Z\n\tBoardList\022%.cc" +
|
||||
".arduino.cli.commands.BoardListReq\032&.cc." +
|
||||
"arduino.cli.commands.BoardListResp\022c\n\014Bo" +
|
||||
"ardListAll\022(.cc.arduino.cli.commands.Boa" +
|
||||
"rdListAllReq\032).cc.arduino.cli.commands.B" +
|
||||
"oardListAllResp\022V\n\007Compile\022#.cc.arduino." +
|
||||
"cli.commands.CompileReq\032$.cc.arduino.cli" +
|
||||
".commands.CompileResp0\001\022n\n\017PlatformInsta" +
|
||||
"ll\022+.cc.arduino.cli.commands.PlatformIns" +
|
||||
"tallReq\032,.cc.arduino.cli.commands.Platfo" +
|
||||
"rmInstallResp0\001\022q\n\020PlatformDownload\022,.cc" +
|
||||
".arduino.cli.commands.PlatformDownloadRe" +
|
||||
"q\032-.cc.arduino.cli.commands.PlatformDown" +
|
||||
"loadResp0\001\022t\n\021PlatformUninstall\022-.cc.ard" +
|
||||
"uino.cli.commands.PlatformUninstallReq\032." +
|
||||
".cc.arduino.cli.commands.PlatformUninsta" +
|
||||
"llResp0\001\022n\n\017PlatformUpgrade\022+.cc.arduino" +
|
||||
".cli.commands.PlatformUpgradeReq\032,.cc.ar" +
|
||||
"duino.cli.commands.PlatformUpgradeResp0\001" +
|
||||
"\022S\n\006Upload\022\".cc.arduino.cli.commands.Upl" +
|
||||
"oadReq\032#.cc.arduino.cli.commands.UploadR" +
|
||||
"esp0\001\022i\n\016PlatformSearch\022*.cc.arduino.cli" +
|
||||
".commands.PlatformSearchReq\032+.cc.arduino" +
|
||||
".cli.commands.PlatformSearchResp\022c\n\014Plat" +
|
||||
"formList\022(.cc.arduino.cli.commands.Platf" +
|
||||
"ormListReq\032).cc.arduino.cli.commands.Pla" +
|
||||
"tformListResp\022n\n\017LibraryDownload\022+.cc.ar" +
|
||||
"duino.cli.commands.LibraryDownloadReq\032,." +
|
||||
"cc.arduino.cli.commands.LibraryDownloadR" +
|
||||
"esp0\001\022k\n\016LibraryInstall\022*.cc.arduino.cli" +
|
||||
".commands.LibraryInstallReq\032+.cc.arduino" +
|
||||
".cli.commands.LibraryInstallResp0\001\022q\n\020Li" +
|
||||
"braryUninstall\022,.cc.arduino.cli.commands" +
|
||||
".LibraryUninstallReq\032-.cc.arduino.cli.co" +
|
||||
"mmands.LibraryUninstallResp0\001\022t\n\021Library" +
|
||||
"UpgradeAll\022-.cc.arduino.cli.commands.Lib" +
|
||||
"raryUpgradeAllReq\032..cc.arduino.cli.comma" +
|
||||
"nds.LibraryUpgradeAllResp0\001\022\215\001\n\032LibraryR" +
|
||||
"esolveDependencies\0226.cc.arduino.cli.comm" +
|
||||
"ands.LibraryResolveDependenciesReq\0327.cc." +
|
||||
"arduino.cli.commands.LibraryResolveDepen" +
|
||||
"denciesResp\022f\n\rLibrarySearch\022).cc.arduin" +
|
||||
"o.cli.commands.LibrarySearchReq\032*.cc.ard" +
|
||||
"uino.cli.commands.LibrarySearchResp\022`\n\013L" +
|
||||
"ibraryList\022\'.cc.arduino.cli.commands.Lib" +
|
||||
"raryListReq\032(.cc.arduino.cli.commands.Li" +
|
||||
"braryListRespB-Z+github.com/arduino/ardu" +
|
||||
"ino-cli/rpc/commandsb\006proto3"
|
||||
"Progress\"\014\n\nVersionReq\"\036\n\013VersionResp\022\017\n" +
|
||||
"\007version\030\001 \001(\t2\272\024\n\013ArduinoCore\022O\n\004Init\022 " +
|
||||
".cc.arduino.cli.commands.InitReq\032!.cc.ar" +
|
||||
"duino.cli.commands.InitResp\"\0000\001\022V\n\007Destr" +
|
||||
"oy\022#.cc.arduino.cli.commands.DestroyReq\032" +
|
||||
"$.cc.arduino.cli.commands.DestroyResp\"\000\022" +
|
||||
"S\n\006Rescan\022\".cc.arduino.cli.commands.Resc" +
|
||||
"anReq\032#.cc.arduino.cli.commands.RescanRe" +
|
||||
"sp\"\000\022d\n\013UpdateIndex\022\'.cc.arduino.cli.com" +
|
||||
"mands.UpdateIndexReq\032(.cc.arduino.cli.co" +
|
||||
"mmands.UpdateIndexResp\"\0000\001\022\177\n\024UpdateLibr" +
|
||||
"ariesIndex\0220.cc.arduino.cli.commands.Upd" +
|
||||
"ateLibrariesIndexReq\0321.cc.arduino.cli.co" +
|
||||
"mmands.UpdateLibrariesIndexResp\"\0000\001\022V\n\007V" +
|
||||
"ersion\022#.cc.arduino.cli.commands.Version" +
|
||||
"Req\032$.cc.arduino.cli.commands.VersionRes" +
|
||||
"p\"\000\022c\n\014BoardDetails\022(.cc.arduino.cli.com" +
|
||||
"mands.BoardDetailsReq\032).cc.arduino.cli.c" +
|
||||
"ommands.BoardDetailsResp\022b\n\013BoardAttach\022" +
|
||||
"\'.cc.arduino.cli.commands.BoardAttachReq" +
|
||||
"\032(.cc.arduino.cli.commands.BoardAttachRe" +
|
||||
"sp0\001\022Z\n\tBoardList\022%.cc.arduino.cli.comma" +
|
||||
"nds.BoardListReq\032&.cc.arduino.cli.comman" +
|
||||
"ds.BoardListResp\022c\n\014BoardListAll\022(.cc.ar" +
|
||||
"duino.cli.commands.BoardListAllReq\032).cc." +
|
||||
"arduino.cli.commands.BoardListAllResp\022V\n" +
|
||||
"\007Compile\022#.cc.arduino.cli.commands.Compi" +
|
||||
"leReq\032$.cc.arduino.cli.commands.CompileR" +
|
||||
"esp0\001\022n\n\017PlatformInstall\022+.cc.arduino.cl" +
|
||||
"i.commands.PlatformInstallReq\032,.cc.ardui" +
|
||||
"no.cli.commands.PlatformInstallResp0\001\022q\n" +
|
||||
"\020PlatformDownload\022,.cc.arduino.cli.comma" +
|
||||
"nds.PlatformDownloadReq\032-.cc.arduino.cli" +
|
||||
".commands.PlatformDownloadResp0\001\022t\n\021Plat" +
|
||||
"formUninstall\022-.cc.arduino.cli.commands." +
|
||||
"PlatformUninstallReq\032..cc.arduino.cli.co" +
|
||||
"mmands.PlatformUninstallResp0\001\022n\n\017Platfo" +
|
||||
"rmUpgrade\022+.cc.arduino.cli.commands.Plat" +
|
||||
"formUpgradeReq\032,.cc.arduino.cli.commands" +
|
||||
".PlatformUpgradeResp0\001\022S\n\006Upload\022\".cc.ar" +
|
||||
"duino.cli.commands.UploadReq\032#.cc.arduin" +
|
||||
"o.cli.commands.UploadResp0\001\022i\n\016PlatformS" +
|
||||
"earch\022*.cc.arduino.cli.commands.Platform" +
|
||||
"SearchReq\032+.cc.arduino.cli.commands.Plat" +
|
||||
"formSearchResp\022c\n\014PlatformList\022(.cc.ardu" +
|
||||
"ino.cli.commands.PlatformListReq\032).cc.ar" +
|
||||
"duino.cli.commands.PlatformListResp\022n\n\017L" +
|
||||
"ibraryDownload\022+.cc.arduino.cli.commands" +
|
||||
".LibraryDownloadReq\032,.cc.arduino.cli.com" +
|
||||
"mands.LibraryDownloadResp0\001\022k\n\016LibraryIn" +
|
||||
"stall\022*.cc.arduino.cli.commands.LibraryI" +
|
||||
"nstallReq\032+.cc.arduino.cli.commands.Libr" +
|
||||
"aryInstallResp0\001\022q\n\020LibraryUninstall\022,.c" +
|
||||
"c.arduino.cli.commands.LibraryUninstallR" +
|
||||
"eq\032-.cc.arduino.cli.commands.LibraryUnin" +
|
||||
"stallResp0\001\022t\n\021LibraryUpgradeAll\022-.cc.ar" +
|
||||
"duino.cli.commands.LibraryUpgradeAllReq\032" +
|
||||
"..cc.arduino.cli.commands.LibraryUpgrade" +
|
||||
"AllResp0\001\022\215\001\n\032LibraryResolveDependencies" +
|
||||
"\0226.cc.arduino.cli.commands.LibraryResolv" +
|
||||
"eDependenciesReq\0327.cc.arduino.cli.comman" +
|
||||
"ds.LibraryResolveDependenciesResp\022f\n\rLib" +
|
||||
"rarySearch\022).cc.arduino.cli.commands.Lib" +
|
||||
"rarySearchReq\032*.cc.arduino.cli.commands." +
|
||||
"LibrarySearchResp\022`\n\013LibraryList\022\'.cc.ar" +
|
||||
"duino.cli.commands.LibraryListReq\032(.cc.a" +
|
||||
"rduino.cli.commands.LibraryListRespB-Z+g" +
|
||||
"ithub.com/arduino/arduino-cli/rpc/comman" +
|
||||
"dsb\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@ -9261,80 +7809,74 @@ public final class Commands {
|
||||
cc.arduino.cli.commands.Upload.getDescriptor(),
|
||||
cc.arduino.cli.commands.Lib.getDescriptor(),
|
||||
});
|
||||
internal_static_cc_arduino_cli_commands_Configuration_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_cc_arduino_cli_commands_Configuration_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_Configuration_descriptor,
|
||||
new java.lang.String[] { "DataDir", "SketchbookDir", "DownloadsDir", "BoardManagerAdditionalUrls", });
|
||||
internal_static_cc_arduino_cli_commands_InitReq_descriptor =
|
||||
getDescriptor().getMessageTypes().get(1);
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_cc_arduino_cli_commands_InitReq_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_InitReq_descriptor,
|
||||
new java.lang.String[] { "Configuration", "LibraryManagerOnly", });
|
||||
new java.lang.String[] { "LibraryManagerOnly", });
|
||||
internal_static_cc_arduino_cli_commands_InitResp_descriptor =
|
||||
getDescriptor().getMessageTypes().get(2);
|
||||
getDescriptor().getMessageTypes().get(1);
|
||||
internal_static_cc_arduino_cli_commands_InitResp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_InitResp_descriptor,
|
||||
new java.lang.String[] { "Instance", "PlatformsIndexErrors", "LibrariesIndexError", "DownloadProgress", "TaskProgress", });
|
||||
internal_static_cc_arduino_cli_commands_DestroyReq_descriptor =
|
||||
getDescriptor().getMessageTypes().get(3);
|
||||
getDescriptor().getMessageTypes().get(2);
|
||||
internal_static_cc_arduino_cli_commands_DestroyReq_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_DestroyReq_descriptor,
|
||||
new java.lang.String[] { "Instance", });
|
||||
internal_static_cc_arduino_cli_commands_DestroyResp_descriptor =
|
||||
getDescriptor().getMessageTypes().get(4);
|
||||
getDescriptor().getMessageTypes().get(3);
|
||||
internal_static_cc_arduino_cli_commands_DestroyResp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_DestroyResp_descriptor,
|
||||
new java.lang.String[] { });
|
||||
internal_static_cc_arduino_cli_commands_RescanReq_descriptor =
|
||||
getDescriptor().getMessageTypes().get(5);
|
||||
getDescriptor().getMessageTypes().get(4);
|
||||
internal_static_cc_arduino_cli_commands_RescanReq_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_RescanReq_descriptor,
|
||||
new java.lang.String[] { "Instance", });
|
||||
internal_static_cc_arduino_cli_commands_RescanResp_descriptor =
|
||||
getDescriptor().getMessageTypes().get(6);
|
||||
getDescriptor().getMessageTypes().get(5);
|
||||
internal_static_cc_arduino_cli_commands_RescanResp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_RescanResp_descriptor,
|
||||
new java.lang.String[] { "PlatformsIndexErrors", "LibrariesIndexError", });
|
||||
internal_static_cc_arduino_cli_commands_UpdateIndexReq_descriptor =
|
||||
getDescriptor().getMessageTypes().get(7);
|
||||
getDescriptor().getMessageTypes().get(6);
|
||||
internal_static_cc_arduino_cli_commands_UpdateIndexReq_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_UpdateIndexReq_descriptor,
|
||||
new java.lang.String[] { "Instance", });
|
||||
internal_static_cc_arduino_cli_commands_UpdateIndexResp_descriptor =
|
||||
getDescriptor().getMessageTypes().get(8);
|
||||
getDescriptor().getMessageTypes().get(7);
|
||||
internal_static_cc_arduino_cli_commands_UpdateIndexResp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_UpdateIndexResp_descriptor,
|
||||
new java.lang.String[] { "DownloadProgress", });
|
||||
internal_static_cc_arduino_cli_commands_UpdateLibrariesIndexReq_descriptor =
|
||||
getDescriptor().getMessageTypes().get(9);
|
||||
getDescriptor().getMessageTypes().get(8);
|
||||
internal_static_cc_arduino_cli_commands_UpdateLibrariesIndexReq_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_UpdateLibrariesIndexReq_descriptor,
|
||||
new java.lang.String[] { "Instance", });
|
||||
internal_static_cc_arduino_cli_commands_UpdateLibrariesIndexResp_descriptor =
|
||||
getDescriptor().getMessageTypes().get(10);
|
||||
getDescriptor().getMessageTypes().get(9);
|
||||
internal_static_cc_arduino_cli_commands_UpdateLibrariesIndexResp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_UpdateLibrariesIndexResp_descriptor,
|
||||
new java.lang.String[] { "DownloadProgress", });
|
||||
internal_static_cc_arduino_cli_commands_VersionReq_descriptor =
|
||||
getDescriptor().getMessageTypes().get(11);
|
||||
getDescriptor().getMessageTypes().get(10);
|
||||
internal_static_cc_arduino_cli_commands_VersionReq_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_VersionReq_descriptor,
|
||||
new java.lang.String[] { });
|
||||
internal_static_cc_arduino_cli_commands_VersionResp_descriptor =
|
||||
getDescriptor().getMessageTypes().get(12);
|
||||
getDescriptor().getMessageTypes().get(11);
|
||||
internal_static_cc_arduino_cli_commands_VersionResp_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_VersionResp_descriptor,
|
||||
|
@ -228,6 +228,41 @@ public final class Compile {
|
||||
* <code>int32 jobs = 14;</code>
|
||||
*/
|
||||
int getJobs();
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
java.util.List<java.lang.String>
|
||||
getLibrariesList();
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
int getLibrariesCount();
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
java.lang.String getLibraries(int index);
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getLibrariesBytes(int index);
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code cc.arduino.cli.commands.CompileReq}
|
||||
@ -250,6 +285,7 @@ public final class Compile {
|
||||
warnings_ = "";
|
||||
vidPid_ = "";
|
||||
exportFile_ = "";
|
||||
libraries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@ -372,6 +408,15 @@ public final class Compile {
|
||||
jobs_ = input.readInt32();
|
||||
break;
|
||||
}
|
||||
case 122: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
|
||||
libraries_ = new com.google.protobuf.LazyStringArrayList();
|
||||
mutable_bitField0_ |= 0x00000002;
|
||||
}
|
||||
libraries_.add(s);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
if (!parseUnknownField(
|
||||
input, unknownFields, extensionRegistry, tag)) {
|
||||
@ -390,6 +435,9 @@ public final class Compile {
|
||||
if (((mutable_bitField0_ & 0x00000001) != 0)) {
|
||||
buildProperties_ = buildProperties_.getUnmodifiableView();
|
||||
}
|
||||
if (((mutable_bitField0_ & 0x00000002) != 0)) {
|
||||
libraries_ = libraries_.getUnmodifiableView();
|
||||
}
|
||||
this.unknownFields = unknownFields.build();
|
||||
makeExtensionsImmutable();
|
||||
}
|
||||
@ -824,6 +872,51 @@ public final class Compile {
|
||||
return jobs_;
|
||||
}
|
||||
|
||||
public static final int LIBRARIES_FIELD_NUMBER = 15;
|
||||
private com.google.protobuf.LazyStringList libraries_;
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public com.google.protobuf.ProtocolStringList
|
||||
getLibrariesList() {
|
||||
return libraries_;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public int getLibrariesCount() {
|
||||
return libraries_.size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public java.lang.String getLibraries(int index) {
|
||||
return libraries_.get(index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLibrariesBytes(int index) {
|
||||
return libraries_.getByteString(index);
|
||||
}
|
||||
|
||||
private byte memoizedIsInitialized = -1;
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
@ -880,6 +973,9 @@ public final class Compile {
|
||||
if (jobs_ != 0) {
|
||||
output.writeInt32(14, jobs_);
|
||||
}
|
||||
for (int i = 0; i < libraries_.size(); i++) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 15, libraries_.getRaw(i));
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@ -942,6 +1038,14 @@ public final class Compile {
|
||||
size += com.google.protobuf.CodedOutputStream
|
||||
.computeInt32Size(14, jobs_);
|
||||
}
|
||||
{
|
||||
int dataSize = 0;
|
||||
for (int i = 0; i < libraries_.size(); i++) {
|
||||
dataSize += computeStringSizeNoTag(libraries_.getRaw(i));
|
||||
}
|
||||
size += dataSize;
|
||||
size += 1 * getLibrariesList().size();
|
||||
}
|
||||
size += unknownFields.getSerializedSize();
|
||||
memoizedSize = size;
|
||||
return size;
|
||||
@ -988,6 +1092,8 @@ public final class Compile {
|
||||
.equals(other.getExportFile())) return false;
|
||||
if (getJobs()
|
||||
!= other.getJobs()) return false;
|
||||
if (!getLibrariesList()
|
||||
.equals(other.getLibrariesList())) return false;
|
||||
if (!unknownFields.equals(other.unknownFields)) return false;
|
||||
return true;
|
||||
}
|
||||
@ -1035,6 +1141,10 @@ public final class Compile {
|
||||
hash = (53 * hash) + getExportFile().hashCode();
|
||||
hash = (37 * hash) + JOBS_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getJobs();
|
||||
if (getLibrariesCount() > 0) {
|
||||
hash = (37 * hash) + LIBRARIES_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getLibrariesList().hashCode();
|
||||
}
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
@ -1200,6 +1310,8 @@ public final class Compile {
|
||||
|
||||
jobs_ = 0;
|
||||
|
||||
libraries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
return this;
|
||||
}
|
||||
|
||||
@ -1249,6 +1361,11 @@ public final class Compile {
|
||||
result.vidPid_ = vidPid_;
|
||||
result.exportFile_ = exportFile_;
|
||||
result.jobs_ = jobs_;
|
||||
if (((bitField0_ & 0x00000002) != 0)) {
|
||||
libraries_ = libraries_.getUnmodifiableView();
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
}
|
||||
result.libraries_ = libraries_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
@ -1353,6 +1470,16 @@ public final class Compile {
|
||||
if (other.getJobs() != 0) {
|
||||
setJobs(other.getJobs());
|
||||
}
|
||||
if (!other.libraries_.isEmpty()) {
|
||||
if (libraries_.isEmpty()) {
|
||||
libraries_ = other.libraries_;
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
} else {
|
||||
ensureLibrariesIsMutable();
|
||||
libraries_.addAll(other.libraries_);
|
||||
}
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
@ -2422,6 +2549,136 @@ public final class Compile {
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private com.google.protobuf.LazyStringList libraries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
private void ensureLibrariesIsMutable() {
|
||||
if (!((bitField0_ & 0x00000002) != 0)) {
|
||||
libraries_ = new com.google.protobuf.LazyStringArrayList(libraries_);
|
||||
bitField0_ |= 0x00000002;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public com.google.protobuf.ProtocolStringList
|
||||
getLibrariesList() {
|
||||
return libraries_.getUnmodifiableView();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public int getLibrariesCount() {
|
||||
return libraries_.size();
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public java.lang.String getLibraries(int index) {
|
||||
return libraries_.get(index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getLibrariesBytes(int index) {
|
||||
return libraries_.getByteString(index);
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public Builder setLibraries(
|
||||
int index, java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureLibrariesIsMutable();
|
||||
libraries_.set(index, value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public Builder addLibraries(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
ensureLibrariesIsMutable();
|
||||
libraries_.add(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public Builder addAllLibraries(
|
||||
java.lang.Iterable<java.lang.String> values) {
|
||||
ensureLibrariesIsMutable();
|
||||
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
||||
values, libraries_);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public Builder clearLibraries() {
|
||||
libraries_ = com.google.protobuf.LazyStringArrayList.EMPTY;
|
||||
bitField0_ = (bitField0_ & ~0x00000002);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <pre>
|
||||
* List of custom libraries paths separated by commas. Or can be used multiple times for multiple libraries paths.
|
||||
* </pre>
|
||||
*
|
||||
* <code>repeated string libraries = 15;</code>
|
||||
*/
|
||||
public Builder addLibrariesBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
ensureLibrariesIsMutable();
|
||||
libraries_.add(value);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
@java.lang.Override
|
||||
public final Builder setUnknownFields(
|
||||
final com.google.protobuf.UnknownFieldSet unknownFields) {
|
||||
@ -3045,7 +3302,7 @@ public final class Compile {
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\026commands/compile.proto\022\027cc.arduino.cli" +
|
||||
".commands\032\025commands/common.proto\"\267\002\n\nCom" +
|
||||
".commands\032\025commands/common.proto\"\312\002\n\nCom" +
|
||||
"pileReq\0223\n\010instance\030\001 \001(\0132!.cc.arduino.c" +
|
||||
"li.commands.Instance\022\014\n\004fqbn\030\002 \001(\t\022\022\n\nsk" +
|
||||
"etchPath\030\003 \001(\t\022\026\n\016showProperties\030\004 \001(\010\022\022" +
|
||||
@ -3053,10 +3310,10 @@ public final class Compile {
|
||||
"(\t\022\021\n\tbuildPath\030\007 \001(\t\022\027\n\017buildProperties" +
|
||||
"\030\010 \003(\t\022\020\n\010warnings\030\t \001(\t\022\017\n\007verbose\030\n \001(" +
|
||||
"\010\022\r\n\005quiet\030\013 \001(\010\022\016\n\006vidPid\030\014 \001(\t\022\022\n\nexpo" +
|
||||
"rtFile\030\r \001(\t\022\014\n\004jobs\030\016 \001(\005\"5\n\013CompileRes" +
|
||||
"p\022\022\n\nout_stream\030\001 \001(\014\022\022\n\nerr_stream\030\002 \001(" +
|
||||
"\014B-Z+github.com/arduino/arduino-cli/rpc/" +
|
||||
"commandsb\006proto3"
|
||||
"rtFile\030\r \001(\t\022\014\n\004jobs\030\016 \001(\005\022\021\n\tlibraries\030" +
|
||||
"\017 \003(\t\"5\n\013CompileResp\022\022\n\nout_stream\030\001 \001(\014" +
|
||||
"\022\022\n\nerr_stream\030\002 \001(\014B-Z+github.com/ardui" +
|
||||
"no/arduino-cli/rpc/commandsb\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
@ -3068,7 +3325,7 @@ public final class Compile {
|
||||
internal_static_cc_arduino_cli_commands_CompileReq_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_commands_CompileReq_descriptor,
|
||||
new java.lang.String[] { "Instance", "Fqbn", "SketchPath", "ShowProperties", "Preprocess", "BuildCachePath", "BuildPath", "BuildProperties", "Warnings", "Verbose", "Quiet", "VidPid", "ExportFile", "Jobs", });
|
||||
new java.lang.String[] { "Instance", "Fqbn", "SketchPath", "ShowProperties", "Preprocess", "BuildCachePath", "BuildPath", "BuildProperties", "Warnings", "Verbose", "Quiet", "VidPid", "ExportFile", "Jobs", "Libraries", });
|
||||
internal_static_cc_arduino_cli_commands_CompileResp_descriptor =
|
||||
getDescriptor().getMessageTypes().get(1);
|
||||
internal_static_cc_arduino_cli_commands_CompileResp_fieldAccessorTable = new
|
||||
|
505
arduino-core/src/cc/arduino/cli/settings/SettingsGrpc.java
Normal file
505
arduino-core/src/cc/arduino/cli/settings/SettingsGrpc.java
Normal file
@ -0,0 +1,505 @@
|
||||
package cc.arduino.cli.settings;
|
||||
|
||||
import static io.grpc.MethodDescriptor.generateFullMethodName;
|
||||
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
|
||||
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
|
||||
import static io.grpc.stub.ClientCalls.futureUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
|
||||
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
|
||||
|
||||
/**
|
||||
*/
|
||||
@javax.annotation.Generated(
|
||||
value = "by gRPC proto compiler (version 1.20.0)",
|
||||
comments = "Source: settings/settings.proto")
|
||||
public final class SettingsGrpc {
|
||||
|
||||
private SettingsGrpc() {}
|
||||
|
||||
public static final String SERVICE_NAME = "cc.arduino.cli.settings.Settings";
|
||||
|
||||
// Static method descriptors that strictly reflect the proto.
|
||||
private static volatile io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData> getGetAllMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetAll",
|
||||
requestType = cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest.class,
|
||||
responseType = cc.arduino.cli.settings.SettingsOuterClass.RawData.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData> getGetAllMethod() {
|
||||
io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest, cc.arduino.cli.settings.SettingsOuterClass.RawData> getGetAllMethod;
|
||||
if ((getGetAllMethod = SettingsGrpc.getGetAllMethod) == null) {
|
||||
synchronized (SettingsGrpc.class) {
|
||||
if ((getGetAllMethod = SettingsGrpc.getGetAllMethod) == null) {
|
||||
SettingsGrpc.getGetAllMethod = getGetAllMethod =
|
||||
io.grpc.MethodDescriptor.<cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest, cc.arduino.cli.settings.SettingsOuterClass.RawData>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"cc.arduino.cli.settings.Settings", "GetAll"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SettingsMethodDescriptorSupplier("GetAll"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetAllMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.RawData,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.MergeResponse> getMergeMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "Merge",
|
||||
requestType = cc.arduino.cli.settings.SettingsOuterClass.RawData.class,
|
||||
responseType = cc.arduino.cli.settings.SettingsOuterClass.MergeResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.RawData,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.MergeResponse> getMergeMethod() {
|
||||
io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.RawData, cc.arduino.cli.settings.SettingsOuterClass.MergeResponse> getMergeMethod;
|
||||
if ((getMergeMethod = SettingsGrpc.getMergeMethod) == null) {
|
||||
synchronized (SettingsGrpc.class) {
|
||||
if ((getMergeMethod = SettingsGrpc.getMergeMethod) == null) {
|
||||
SettingsGrpc.getMergeMethod = getMergeMethod =
|
||||
io.grpc.MethodDescriptor.<cc.arduino.cli.settings.SettingsOuterClass.RawData, cc.arduino.cli.settings.SettingsOuterClass.MergeResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"cc.arduino.cli.settings.Settings", "Merge"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.MergeResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SettingsMethodDescriptorSupplier("Merge"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getMergeMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value> getGetValueMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "GetValue",
|
||||
requestType = cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest.class,
|
||||
responseType = cc.arduino.cli.settings.SettingsOuterClass.Value.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value> getGetValueMethod() {
|
||||
io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest, cc.arduino.cli.settings.SettingsOuterClass.Value> getGetValueMethod;
|
||||
if ((getGetValueMethod = SettingsGrpc.getGetValueMethod) == null) {
|
||||
synchronized (SettingsGrpc.class) {
|
||||
if ((getGetValueMethod = SettingsGrpc.getGetValueMethod) == null) {
|
||||
SettingsGrpc.getGetValueMethod = getGetValueMethod =
|
||||
io.grpc.MethodDescriptor.<cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest, cc.arduino.cli.settings.SettingsOuterClass.Value>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"cc.arduino.cli.settings.Settings", "GetValue"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SettingsMethodDescriptorSupplier("GetValue"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getGetValueMethod;
|
||||
}
|
||||
|
||||
private static volatile io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.Value,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse> getSetValueMethod;
|
||||
|
||||
@io.grpc.stub.annotations.RpcMethod(
|
||||
fullMethodName = SERVICE_NAME + '/' + "SetValue",
|
||||
requestType = cc.arduino.cli.settings.SettingsOuterClass.Value.class,
|
||||
responseType = cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse.class,
|
||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
public static io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.Value,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse> getSetValueMethod() {
|
||||
io.grpc.MethodDescriptor<cc.arduino.cli.settings.SettingsOuterClass.Value, cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse> getSetValueMethod;
|
||||
if ((getSetValueMethod = SettingsGrpc.getSetValueMethod) == null) {
|
||||
synchronized (SettingsGrpc.class) {
|
||||
if ((getSetValueMethod = SettingsGrpc.getSetValueMethod) == null) {
|
||||
SettingsGrpc.getSetValueMethod = getSetValueMethod =
|
||||
io.grpc.MethodDescriptor.<cc.arduino.cli.settings.SettingsOuterClass.Value, cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse>newBuilder()
|
||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
||||
.setFullMethodName(generateFullMethodName(
|
||||
"cc.arduino.cli.settings.Settings", "SetValue"))
|
||||
.setSampledToLocalTracing(true)
|
||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value.getDefaultInstance()))
|
||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse.getDefaultInstance()))
|
||||
.setSchemaDescriptor(new SettingsMethodDescriptorSupplier("SetValue"))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return getSetValueMethod;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new async stub that supports all call types for the service
|
||||
*/
|
||||
public static SettingsStub newStub(io.grpc.Channel channel) {
|
||||
return new SettingsStub(channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
||||
*/
|
||||
public static SettingsBlockingStub newBlockingStub(
|
||||
io.grpc.Channel channel) {
|
||||
return new SettingsBlockingStub(channel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
||||
*/
|
||||
public static SettingsFutureStub newFutureStub(
|
||||
io.grpc.Channel channel) {
|
||||
return new SettingsFutureStub(channel);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static abstract class SettingsImplBase implements io.grpc.BindableService {
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getAll(cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest request,
|
||||
io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.RawData> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetAllMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void merge(cc.arduino.cli.settings.SettingsOuterClass.RawData request,
|
||||
io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.MergeResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getMergeMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getValue(cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest request,
|
||||
io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.Value> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getGetValueMethod(), responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setValue(cc.arduino.cli.settings.SettingsOuterClass.Value request,
|
||||
io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse> responseObserver) {
|
||||
asyncUnimplementedUnaryCall(getSetValueMethod(), responseObserver);
|
||||
}
|
||||
|
||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
||||
.addMethod(
|
||||
getGetAllMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData>(
|
||||
this, METHODID_GET_ALL)))
|
||||
.addMethod(
|
||||
getMergeMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.MergeResponse>(
|
||||
this, METHODID_MERGE)))
|
||||
.addMethod(
|
||||
getGetValueMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value>(
|
||||
this, METHODID_GET_VALUE)))
|
||||
.addMethod(
|
||||
getSetValueMethod(),
|
||||
asyncUnaryCall(
|
||||
new MethodHandlers<
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value,
|
||||
cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse>(
|
||||
this, METHODID_SET_VALUE)))
|
||||
.build();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class SettingsStub extends io.grpc.stub.AbstractStub<SettingsStub> {
|
||||
private SettingsStub(io.grpc.Channel channel) {
|
||||
super(channel);
|
||||
}
|
||||
|
||||
private SettingsStub(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected SettingsStub build(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
return new SettingsStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getAll(cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest request,
|
||||
io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.RawData> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getGetAllMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void merge(cc.arduino.cli.settings.SettingsOuterClass.RawData request,
|
||||
io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.MergeResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getMergeMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void getValue(cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest request,
|
||||
io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.Value> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getGetValueMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public void setValue(cc.arduino.cli.settings.SettingsOuterClass.Value request,
|
||||
io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse> responseObserver) {
|
||||
asyncUnaryCall(
|
||||
getChannel().newCall(getSetValueMethod(), getCallOptions()), request, responseObserver);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class SettingsBlockingStub extends io.grpc.stub.AbstractStub<SettingsBlockingStub> {
|
||||
private SettingsBlockingStub(io.grpc.Channel channel) {
|
||||
super(channel);
|
||||
}
|
||||
|
||||
private SettingsBlockingStub(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected SettingsBlockingStub build(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
return new SettingsBlockingStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.RawData getAll(cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetAllMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.MergeResponse merge(cc.arduino.cli.settings.SettingsOuterClass.RawData request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getMergeMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.Value getValue(cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getGetValueMethod(), getCallOptions(), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse setValue(cc.arduino.cli.settings.SettingsOuterClass.Value request) {
|
||||
return blockingUnaryCall(
|
||||
getChannel(), getSetValueMethod(), getCallOptions(), request);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public static final class SettingsFutureStub extends io.grpc.stub.AbstractStub<SettingsFutureStub> {
|
||||
private SettingsFutureStub(io.grpc.Channel channel) {
|
||||
super(channel);
|
||||
}
|
||||
|
||||
private SettingsFutureStub(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
super(channel, callOptions);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected SettingsFutureStub build(io.grpc.Channel channel,
|
||||
io.grpc.CallOptions callOptions) {
|
||||
return new SettingsFutureStub(channel, callOptions);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cc.arduino.cli.settings.SettingsOuterClass.RawData> getAll(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getGetAllMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cc.arduino.cli.settings.SettingsOuterClass.MergeResponse> merge(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getMergeMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cc.arduino.cli.settings.SettingsOuterClass.Value> getValue(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getGetValueMethod(), getCallOptions()), request);
|
||||
}
|
||||
|
||||
/**
|
||||
*/
|
||||
public com.google.common.util.concurrent.ListenableFuture<cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse> setValue(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value request) {
|
||||
return futureUnaryCall(
|
||||
getChannel().newCall(getSetValueMethod(), getCallOptions()), request);
|
||||
}
|
||||
}
|
||||
|
||||
private static final int METHODID_GET_ALL = 0;
|
||||
private static final int METHODID_MERGE = 1;
|
||||
private static final int METHODID_GET_VALUE = 2;
|
||||
private static final int METHODID_SET_VALUE = 3;
|
||||
|
||||
private static final class MethodHandlers<Req, Resp> implements
|
||||
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
|
||||
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
|
||||
private final SettingsImplBase serviceImpl;
|
||||
private final int methodId;
|
||||
|
||||
MethodHandlers(SettingsImplBase serviceImpl, int methodId) {
|
||||
this.serviceImpl = serviceImpl;
|
||||
this.methodId = methodId;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
case METHODID_GET_ALL:
|
||||
serviceImpl.getAll((cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest) request,
|
||||
(io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.RawData>) responseObserver);
|
||||
break;
|
||||
case METHODID_MERGE:
|
||||
serviceImpl.merge((cc.arduino.cli.settings.SettingsOuterClass.RawData) request,
|
||||
(io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.MergeResponse>) responseObserver);
|
||||
break;
|
||||
case METHODID_GET_VALUE:
|
||||
serviceImpl.getValue((cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest) request,
|
||||
(io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.Value>) responseObserver);
|
||||
break;
|
||||
case METHODID_SET_VALUE:
|
||||
serviceImpl.setValue((cc.arduino.cli.settings.SettingsOuterClass.Value) request,
|
||||
(io.grpc.stub.StreamObserver<cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse>) responseObserver);
|
||||
break;
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@java.lang.SuppressWarnings("unchecked")
|
||||
public io.grpc.stub.StreamObserver<Req> invoke(
|
||||
io.grpc.stub.StreamObserver<Resp> responseObserver) {
|
||||
switch (methodId) {
|
||||
default:
|
||||
throw new AssertionError();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private static abstract class SettingsBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
||||
SettingsBaseDescriptorSupplier() {}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.getDescriptor();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
||||
return getFileDescriptor().findServiceByName("Settings");
|
||||
}
|
||||
}
|
||||
|
||||
private static final class SettingsFileDescriptorSupplier
|
||||
extends SettingsBaseDescriptorSupplier {
|
||||
SettingsFileDescriptorSupplier() {}
|
||||
}
|
||||
|
||||
private static final class SettingsMethodDescriptorSupplier
|
||||
extends SettingsBaseDescriptorSupplier
|
||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
||||
private final String methodName;
|
||||
|
||||
SettingsMethodDescriptorSupplier(String methodName) {
|
||||
this.methodName = methodName;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
|
||||
return getServiceDescriptor().findMethodByName(methodName);
|
||||
}
|
||||
}
|
||||
|
||||
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
|
||||
|
||||
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
|
||||
io.grpc.ServiceDescriptor result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
synchronized (SettingsGrpc.class) {
|
||||
result = serviceDescriptor;
|
||||
if (result == null) {
|
||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
||||
.setSchemaDescriptor(new SettingsFileDescriptorSupplier())
|
||||
.addMethod(getGetAllMethod())
|
||||
.addMethod(getMergeMethod())
|
||||
.addMethod(getGetValueMethod())
|
||||
.addMethod(getSetValueMethod())
|
||||
.build();
|
||||
}
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
3172
arduino-core/src/cc/arduino/cli/settings/SettingsOuterClass.java
Normal file
3172
arduino-core/src/cc/arduino/cli/settings/SettingsOuterClass.java
Normal file
@ -0,0 +1,3172 @@
|
||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
// source: settings/settings.proto
|
||||
|
||||
package cc.arduino.cli.settings;
|
||||
|
||||
public final class SettingsOuterClass {
|
||||
private SettingsOuterClass() {}
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
||||
}
|
||||
|
||||
public static void registerAllExtensions(
|
||||
com.google.protobuf.ExtensionRegistry registry) {
|
||||
registerAllExtensions(
|
||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
||||
}
|
||||
public interface RawDataOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:cc.arduino.cli.settings.RawData)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string jsonData = 1;</code>
|
||||
*/
|
||||
java.lang.String getJsonData();
|
||||
/**
|
||||
* <code>string jsonData = 1;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getJsonDataBytes();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code cc.arduino.cli.settings.RawData}
|
||||
*/
|
||||
public static final class RawData extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:cc.arduino.cli.settings.RawData)
|
||||
RawDataOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use RawData.newBuilder() to construct.
|
||||
private RawData(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private RawData() {
|
||||
jsonData_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new RawData();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private RawData(
|
||||
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();
|
||||
|
||||
jsonData_ = 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.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_RawData_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_RawData_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData.class, cc.arduino.cli.settings.SettingsOuterClass.RawData.Builder.class);
|
||||
}
|
||||
|
||||
public static final int JSONDATA_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object jsonData_;
|
||||
/**
|
||||
* <code>string jsonData = 1;</code>
|
||||
*/
|
||||
public java.lang.String getJsonData() {
|
||||
java.lang.Object ref = jsonData_;
|
||||
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();
|
||||
jsonData_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string jsonData = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getJsonDataBytes() {
|
||||
java.lang.Object ref = jsonData_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
jsonData_ = 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 (!getJsonDataBytes().isEmpty()) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, jsonData_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!getJsonDataBytes().isEmpty()) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, jsonData_);
|
||||
}
|
||||
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.settings.SettingsOuterClass.RawData)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData other = (cc.arduino.cli.settings.SettingsOuterClass.RawData) obj;
|
||||
|
||||
if (!getJsonData()
|
||||
.equals(other.getJsonData())) 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) + JSONDATA_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getJsonData().hashCode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.RawData parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.RawData 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.settings.SettingsOuterClass.RawData parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.RawData 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.settings.SettingsOuterClass.RawData parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.RawData parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.RawData parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.RawData 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.settings.SettingsOuterClass.RawData parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.RawData 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.settings.SettingsOuterClass.RawData parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.RawData 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.settings.SettingsOuterClass.RawData 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.settings.RawData}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:cc.arduino.cli.settings.RawData)
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawDataOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_RawData_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_RawData_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData.class, cc.arduino.cli.settings.SettingsOuterClass.RawData.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using cc.arduino.cli.settings.SettingsOuterClass.RawData.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
jsonData_ = "";
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_RawData_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.RawData getDefaultInstanceForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.RawData.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.RawData build() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.RawData buildPartial() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData result = new cc.arduino.cli.settings.SettingsOuterClass.RawData(this);
|
||||
result.jsonData_ = jsonData_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof cc.arduino.cli.settings.SettingsOuterClass.RawData) {
|
||||
return mergeFrom((cc.arduino.cli.settings.SettingsOuterClass.RawData)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(cc.arduino.cli.settings.SettingsOuterClass.RawData other) {
|
||||
if (other == cc.arduino.cli.settings.SettingsOuterClass.RawData.getDefaultInstance()) return this;
|
||||
if (!other.getJsonData().isEmpty()) {
|
||||
jsonData_ = other.jsonData_;
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.RawData parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (cc.arduino.cli.settings.SettingsOuterClass.RawData) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object jsonData_ = "";
|
||||
/**
|
||||
* <code>string jsonData = 1;</code>
|
||||
*/
|
||||
public java.lang.String getJsonData() {
|
||||
java.lang.Object ref = jsonData_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
jsonData_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string jsonData = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getJsonDataBytes() {
|
||||
java.lang.Object ref = jsonData_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
jsonData_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string jsonData = 1;</code>
|
||||
*/
|
||||
public Builder setJsonData(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
jsonData_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string jsonData = 1;</code>
|
||||
*/
|
||||
public Builder clearJsonData() {
|
||||
|
||||
jsonData_ = getDefaultInstance().getJsonData();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string jsonData = 1;</code>
|
||||
*/
|
||||
public Builder setJsonDataBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
jsonData_ = 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.settings.RawData)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:cc.arduino.cli.settings.RawData)
|
||||
private static final cc.arduino.cli.settings.SettingsOuterClass.RawData DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new cc.arduino.cli.settings.SettingsOuterClass.RawData();
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.RawData getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<RawData>
|
||||
PARSER = new com.google.protobuf.AbstractParser<RawData>() {
|
||||
@java.lang.Override
|
||||
public RawData parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new RawData(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<RawData> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<RawData> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.RawData getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public interface ValueOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:cc.arduino.cli.settings.Value)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
java.lang.String getKey();
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getKeyBytes();
|
||||
|
||||
/**
|
||||
* <code>string jsonData = 2;</code>
|
||||
*/
|
||||
java.lang.String getJsonData();
|
||||
/**
|
||||
* <code>string jsonData = 2;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getJsonDataBytes();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code cc.arduino.cli.settings.Value}
|
||||
*/
|
||||
public static final class Value extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:cc.arduino.cli.settings.Value)
|
||||
ValueOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use Value.newBuilder() to construct.
|
||||
private Value(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private Value() {
|
||||
key_ = "";
|
||||
jsonData_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new Value();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private Value(
|
||||
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();
|
||||
|
||||
key_ = s;
|
||||
break;
|
||||
}
|
||||
case 18: {
|
||||
java.lang.String s = input.readStringRequireUtf8();
|
||||
|
||||
jsonData_ = 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.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_Value_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_Value_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value.class, cc.arduino.cli.settings.SettingsOuterClass.Value.Builder.class);
|
||||
}
|
||||
|
||||
public static final int KEY_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object key_;
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public java.lang.String getKey() {
|
||||
java.lang.Object ref = key_;
|
||||
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();
|
||||
key_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getKeyBytes() {
|
||||
java.lang.Object ref = key_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
key_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
|
||||
public static final int JSONDATA_FIELD_NUMBER = 2;
|
||||
private volatile java.lang.Object jsonData_;
|
||||
/**
|
||||
* <code>string jsonData = 2;</code>
|
||||
*/
|
||||
public java.lang.String getJsonData() {
|
||||
java.lang.Object ref = jsonData_;
|
||||
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();
|
||||
jsonData_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string jsonData = 2;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getJsonDataBytes() {
|
||||
java.lang.Object ref = jsonData_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
jsonData_ = 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 (!getKeyBytes().isEmpty()) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
|
||||
}
|
||||
if (!getJsonDataBytes().isEmpty()) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, jsonData_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!getKeyBytes().isEmpty()) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
|
||||
}
|
||||
if (!getJsonDataBytes().isEmpty()) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, jsonData_);
|
||||
}
|
||||
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.settings.SettingsOuterClass.Value)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value other = (cc.arduino.cli.settings.SettingsOuterClass.Value) obj;
|
||||
|
||||
if (!getKey()
|
||||
.equals(other.getKey())) return false;
|
||||
if (!getJsonData()
|
||||
.equals(other.getJsonData())) 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) + KEY_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getKey().hashCode();
|
||||
hash = (37 * hash) + JSONDATA_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getJsonData().hashCode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.Value parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.Value 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.settings.SettingsOuterClass.Value parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.Value 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.settings.SettingsOuterClass.Value parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.Value parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.Value parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.Value 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.settings.SettingsOuterClass.Value parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.Value 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.settings.SettingsOuterClass.Value parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.Value 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.settings.SettingsOuterClass.Value 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.settings.Value}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:cc.arduino.cli.settings.Value)
|
||||
cc.arduino.cli.settings.SettingsOuterClass.ValueOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_Value_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_Value_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value.class, cc.arduino.cli.settings.SettingsOuterClass.Value.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using cc.arduino.cli.settings.SettingsOuterClass.Value.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
key_ = "";
|
||||
|
||||
jsonData_ = "";
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_Value_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.Value getDefaultInstanceForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.Value.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.Value build() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.Value buildPartial() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value result = new cc.arduino.cli.settings.SettingsOuterClass.Value(this);
|
||||
result.key_ = key_;
|
||||
result.jsonData_ = jsonData_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof cc.arduino.cli.settings.SettingsOuterClass.Value) {
|
||||
return mergeFrom((cc.arduino.cli.settings.SettingsOuterClass.Value)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(cc.arduino.cli.settings.SettingsOuterClass.Value other) {
|
||||
if (other == cc.arduino.cli.settings.SettingsOuterClass.Value.getDefaultInstance()) return this;
|
||||
if (!other.getKey().isEmpty()) {
|
||||
key_ = other.key_;
|
||||
onChanged();
|
||||
}
|
||||
if (!other.getJsonData().isEmpty()) {
|
||||
jsonData_ = other.jsonData_;
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.Value parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (cc.arduino.cli.settings.SettingsOuterClass.Value) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object key_ = "";
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public java.lang.String getKey() {
|
||||
java.lang.Object ref = key_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
key_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getKeyBytes() {
|
||||
java.lang.Object ref = key_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
key_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public Builder setKey(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
key_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public Builder clearKey() {
|
||||
|
||||
key_ = getDefaultInstance().getKey();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public Builder setKeyBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
key_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object jsonData_ = "";
|
||||
/**
|
||||
* <code>string jsonData = 2;</code>
|
||||
*/
|
||||
public java.lang.String getJsonData() {
|
||||
java.lang.Object ref = jsonData_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
jsonData_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string jsonData = 2;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getJsonDataBytes() {
|
||||
java.lang.Object ref = jsonData_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
jsonData_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string jsonData = 2;</code>
|
||||
*/
|
||||
public Builder setJsonData(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
jsonData_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string jsonData = 2;</code>
|
||||
*/
|
||||
public Builder clearJsonData() {
|
||||
|
||||
jsonData_ = getDefaultInstance().getJsonData();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string jsonData = 2;</code>
|
||||
*/
|
||||
public Builder setJsonDataBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
jsonData_ = 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.settings.Value)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:cc.arduino.cli.settings.Value)
|
||||
private static final cc.arduino.cli.settings.SettingsOuterClass.Value DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new cc.arduino.cli.settings.SettingsOuterClass.Value();
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.Value getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<Value>
|
||||
PARSER = new com.google.protobuf.AbstractParser<Value>() {
|
||||
@java.lang.Override
|
||||
public Value parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new Value(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<Value> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<Value> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.Value getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public interface GetAllRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:cc.arduino.cli.settings.GetAllRequest)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code cc.arduino.cli.settings.GetAllRequest}
|
||||
*/
|
||||
public static final class GetAllRequest extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:cc.arduino.cli.settings.GetAllRequest)
|
||||
GetAllRequestOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetAllRequest.newBuilder() to construct.
|
||||
private GetAllRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private GetAllRequest() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetAllRequest();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private GetAllRequest(
|
||||
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;
|
||||
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.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_GetAllRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_GetAllRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest.class, cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest.Builder.class);
|
||||
}
|
||||
|
||||
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 {
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
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.settings.SettingsOuterClass.GetAllRequest)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest other = (cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest) obj;
|
||||
|
||||
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 = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest 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.settings.SettingsOuterClass.GetAllRequest parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest 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.settings.SettingsOuterClass.GetAllRequest parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest 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.settings.SettingsOuterClass.GetAllRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest 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.settings.SettingsOuterClass.GetAllRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest 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.settings.SettingsOuterClass.GetAllRequest 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.settings.GetAllRequest}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:cc.arduino.cli.settings.GetAllRequest)
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetAllRequestOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_GetAllRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_GetAllRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest.class, cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_GetAllRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest getDefaultInstanceForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest build() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest buildPartial() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest result = new cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest(this);
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest) {
|
||||
return mergeFrom((cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest other) {
|
||||
if (other == cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest.getDefaultInstance()) return this;
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
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.settings.GetAllRequest)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:cc.arduino.cli.settings.GetAllRequest)
|
||||
private static final cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest();
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<GetAllRequest>
|
||||
PARSER = new com.google.protobuf.AbstractParser<GetAllRequest>() {
|
||||
@java.lang.Override
|
||||
public GetAllRequest parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new GetAllRequest(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<GetAllRequest> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<GetAllRequest> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.GetAllRequest getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public interface GetValueRequestOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:cc.arduino.cli.settings.GetValueRequest)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
java.lang.String getKey();
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
com.google.protobuf.ByteString
|
||||
getKeyBytes();
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code cc.arduino.cli.settings.GetValueRequest}
|
||||
*/
|
||||
public static final class GetValueRequest extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:cc.arduino.cli.settings.GetValueRequest)
|
||||
GetValueRequestOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use GetValueRequest.newBuilder() to construct.
|
||||
private GetValueRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private GetValueRequest() {
|
||||
key_ = "";
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new GetValueRequest();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private GetValueRequest(
|
||||
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();
|
||||
|
||||
key_ = 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.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_GetValueRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_GetValueRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest.class, cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest.Builder.class);
|
||||
}
|
||||
|
||||
public static final int KEY_FIELD_NUMBER = 1;
|
||||
private volatile java.lang.Object key_;
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public java.lang.String getKey() {
|
||||
java.lang.Object ref = key_;
|
||||
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();
|
||||
key_ = s;
|
||||
return s;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getKeyBytes() {
|
||||
java.lang.Object ref = key_;
|
||||
if (ref instanceof java.lang.String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
key_ = 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 (!getKeyBytes().isEmpty()) {
|
||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
|
||||
}
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
if (!getKeyBytes().isEmpty()) {
|
||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
|
||||
}
|
||||
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.settings.SettingsOuterClass.GetValueRequest)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest other = (cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest) obj;
|
||||
|
||||
if (!getKey()
|
||||
.equals(other.getKey())) 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) + KEY_FIELD_NUMBER;
|
||||
hash = (53 * hash) + getKey().hashCode();
|
||||
hash = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest 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.settings.SettingsOuterClass.GetValueRequest parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest 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.settings.SettingsOuterClass.GetValueRequest parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest 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.settings.SettingsOuterClass.GetValueRequest parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest 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.settings.SettingsOuterClass.GetValueRequest parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest 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.settings.SettingsOuterClass.GetValueRequest 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.settings.GetValueRequest}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:cc.arduino.cli.settings.GetValueRequest)
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetValueRequestOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_GetValueRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_GetValueRequest_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest.class, cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
key_ = "";
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_GetValueRequest_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest getDefaultInstanceForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest build() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest buildPartial() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest result = new cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest(this);
|
||||
result.key_ = key_;
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest) {
|
||||
return mergeFrom((cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest other) {
|
||||
if (other == cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest.getDefaultInstance()) return this;
|
||||
if (!other.getKey().isEmpty()) {
|
||||
key_ = other.key_;
|
||||
onChanged();
|
||||
}
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
return this;
|
||||
}
|
||||
|
||||
private java.lang.Object key_ = "";
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public java.lang.String getKey() {
|
||||
java.lang.Object ref = key_;
|
||||
if (!(ref instanceof java.lang.String)) {
|
||||
com.google.protobuf.ByteString bs =
|
||||
(com.google.protobuf.ByteString) ref;
|
||||
java.lang.String s = bs.toStringUtf8();
|
||||
key_ = s;
|
||||
return s;
|
||||
} else {
|
||||
return (java.lang.String) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public com.google.protobuf.ByteString
|
||||
getKeyBytes() {
|
||||
java.lang.Object ref = key_;
|
||||
if (ref instanceof String) {
|
||||
com.google.protobuf.ByteString b =
|
||||
com.google.protobuf.ByteString.copyFromUtf8(
|
||||
(java.lang.String) ref);
|
||||
key_ = b;
|
||||
return b;
|
||||
} else {
|
||||
return (com.google.protobuf.ByteString) ref;
|
||||
}
|
||||
}
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public Builder setKey(
|
||||
java.lang.String value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
|
||||
key_ = value;
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public Builder clearKey() {
|
||||
|
||||
key_ = getDefaultInstance().getKey();
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
/**
|
||||
* <code>string key = 1;</code>
|
||||
*/
|
||||
public Builder setKeyBytes(
|
||||
com.google.protobuf.ByteString value) {
|
||||
if (value == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
checkByteStringIsUtf8(value);
|
||||
|
||||
key_ = 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.settings.GetValueRequest)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:cc.arduino.cli.settings.GetValueRequest)
|
||||
private static final cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest();
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<GetValueRequest>
|
||||
PARSER = new com.google.protobuf.AbstractParser<GetValueRequest>() {
|
||||
@java.lang.Override
|
||||
public GetValueRequest parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new GetValueRequest(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<GetValueRequest> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<GetValueRequest> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.GetValueRequest getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public interface MergeResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:cc.arduino.cli.settings.MergeResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code cc.arduino.cli.settings.MergeResponse}
|
||||
*/
|
||||
public static final class MergeResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:cc.arduino.cli.settings.MergeResponse)
|
||||
MergeResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use MergeResponse.newBuilder() to construct.
|
||||
private MergeResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private MergeResponse() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new MergeResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private MergeResponse(
|
||||
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;
|
||||
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.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_MergeResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_MergeResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.MergeResponse.class, cc.arduino.cli.settings.SettingsOuterClass.MergeResponse.Builder.class);
|
||||
}
|
||||
|
||||
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 {
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
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.settings.SettingsOuterClass.MergeResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
cc.arduino.cli.settings.SettingsOuterClass.MergeResponse other = (cc.arduino.cli.settings.SettingsOuterClass.MergeResponse) obj;
|
||||
|
||||
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 = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.MergeResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.MergeResponse 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.settings.SettingsOuterClass.MergeResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.MergeResponse 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.settings.SettingsOuterClass.MergeResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.MergeResponse parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.MergeResponse parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.MergeResponse 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.settings.SettingsOuterClass.MergeResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.MergeResponse 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.settings.SettingsOuterClass.MergeResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.MergeResponse 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.settings.SettingsOuterClass.MergeResponse 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.settings.MergeResponse}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:cc.arduino.cli.settings.MergeResponse)
|
||||
cc.arduino.cli.settings.SettingsOuterClass.MergeResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_MergeResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_MergeResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.MergeResponse.class, cc.arduino.cli.settings.SettingsOuterClass.MergeResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using cc.arduino.cli.settings.SettingsOuterClass.MergeResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_MergeResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.MergeResponse getDefaultInstanceForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.MergeResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.MergeResponse build() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.MergeResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.MergeResponse buildPartial() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.MergeResponse result = new cc.arduino.cli.settings.SettingsOuterClass.MergeResponse(this);
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof cc.arduino.cli.settings.SettingsOuterClass.MergeResponse) {
|
||||
return mergeFrom((cc.arduino.cli.settings.SettingsOuterClass.MergeResponse)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(cc.arduino.cli.settings.SettingsOuterClass.MergeResponse other) {
|
||||
if (other == cc.arduino.cli.settings.SettingsOuterClass.MergeResponse.getDefaultInstance()) return this;
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.MergeResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (cc.arduino.cli.settings.SettingsOuterClass.MergeResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
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.settings.MergeResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:cc.arduino.cli.settings.MergeResponse)
|
||||
private static final cc.arduino.cli.settings.SettingsOuterClass.MergeResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new cc.arduino.cli.settings.SettingsOuterClass.MergeResponse();
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.MergeResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<MergeResponse>
|
||||
PARSER = new com.google.protobuf.AbstractParser<MergeResponse>() {
|
||||
@java.lang.Override
|
||||
public MergeResponse parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new MergeResponse(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<MergeResponse> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<MergeResponse> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.MergeResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public interface SetValueResponseOrBuilder extends
|
||||
// @@protoc_insertion_point(interface_extends:cc.arduino.cli.settings.SetValueResponse)
|
||||
com.google.protobuf.MessageOrBuilder {
|
||||
}
|
||||
/**
|
||||
* Protobuf type {@code cc.arduino.cli.settings.SetValueResponse}
|
||||
*/
|
||||
public static final class SetValueResponse extends
|
||||
com.google.protobuf.GeneratedMessageV3 implements
|
||||
// @@protoc_insertion_point(message_implements:cc.arduino.cli.settings.SetValueResponse)
|
||||
SetValueResponseOrBuilder {
|
||||
private static final long serialVersionUID = 0L;
|
||||
// Use SetValueResponse.newBuilder() to construct.
|
||||
private SetValueResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
||||
super(builder);
|
||||
}
|
||||
private SetValueResponse() {
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
@SuppressWarnings({"unused"})
|
||||
protected java.lang.Object newInstance(
|
||||
UnusedPrivateParameter unused) {
|
||||
return new SetValueResponse();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final com.google.protobuf.UnknownFieldSet
|
||||
getUnknownFields() {
|
||||
return this.unknownFields;
|
||||
}
|
||||
private SetValueResponse(
|
||||
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;
|
||||
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.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_SetValueResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_SetValueResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse.class, cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse.Builder.class);
|
||||
}
|
||||
|
||||
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 {
|
||||
unknownFields.writeTo(output);
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public int getSerializedSize() {
|
||||
int size = memoizedSize;
|
||||
if (size != -1) return size;
|
||||
|
||||
size = 0;
|
||||
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.settings.SettingsOuterClass.SetValueResponse)) {
|
||||
return super.equals(obj);
|
||||
}
|
||||
cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse other = (cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse) obj;
|
||||
|
||||
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 = (29 * hash) + unknownFields.hashCode();
|
||||
memoizedHashCode = hash;
|
||||
return hash;
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse parseFrom(
|
||||
java.nio.ByteBuffer data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse 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.settings.SettingsOuterClass.SetValueResponse parseFrom(
|
||||
com.google.protobuf.ByteString data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse 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.settings.SettingsOuterClass.SetValueResponse parseFrom(byte[] data)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse parseFrom(
|
||||
byte[] data,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return PARSER.parseFrom(data, extensionRegistry);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse parseFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse 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.settings.SettingsOuterClass.SetValueResponse parseDelimitedFrom(java.io.InputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseDelimitedWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse 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.settings.SettingsOuterClass.SetValueResponse parseFrom(
|
||||
com.google.protobuf.CodedInputStream input)
|
||||
throws java.io.IOException {
|
||||
return com.google.protobuf.GeneratedMessageV3
|
||||
.parseWithIOException(PARSER, input);
|
||||
}
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse 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.settings.SettingsOuterClass.SetValueResponse 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.settings.SetValueResponse}
|
||||
*/
|
||||
public static final class Builder extends
|
||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
||||
// @@protoc_insertion_point(builder_implements:cc.arduino.cli.settings.SetValueResponse)
|
||||
cc.arduino.cli.settings.SettingsOuterClass.SetValueResponseOrBuilder {
|
||||
public static final com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptor() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_SetValueResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internalGetFieldAccessorTable() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_SetValueResponse_fieldAccessorTable
|
||||
.ensureFieldAccessorsInitialized(
|
||||
cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse.class, cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse.Builder.class);
|
||||
}
|
||||
|
||||
// Construct using cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse.newBuilder()
|
||||
private Builder() {
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
|
||||
private Builder(
|
||||
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
|
||||
super(parent);
|
||||
maybeForceBuilderInitialization();
|
||||
}
|
||||
private void maybeForceBuilderInitialization() {
|
||||
if (com.google.protobuf.GeneratedMessageV3
|
||||
.alwaysUseFieldBuilders) {
|
||||
}
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clear() {
|
||||
super.clear();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Descriptors.Descriptor
|
||||
getDescriptorForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.internal_static_cc_arduino_cli_settings_SetValueResponse_descriptor;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse getDefaultInstanceForType() {
|
||||
return cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse.getDefaultInstance();
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse build() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse result = buildPartial();
|
||||
if (!result.isInitialized()) {
|
||||
throw newUninitializedMessageException(result);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse buildPartial() {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse result = new cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse(this);
|
||||
onBuilt();
|
||||
return result;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder clone() {
|
||||
return super.clone();
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.setField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
||||
return super.clearField(field);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder clearOneof(
|
||||
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
||||
return super.clearOneof(oneof);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder setRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
int index, java.lang.Object value) {
|
||||
return super.setRepeatedField(field, index, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder addRepeatedField(
|
||||
com.google.protobuf.Descriptors.FieldDescriptor field,
|
||||
java.lang.Object value) {
|
||||
return super.addRepeatedField(field, value);
|
||||
}
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(com.google.protobuf.Message other) {
|
||||
if (other instanceof cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse) {
|
||||
return mergeFrom((cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse)other);
|
||||
} else {
|
||||
super.mergeFrom(other);
|
||||
return this;
|
||||
}
|
||||
}
|
||||
|
||||
public Builder mergeFrom(cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse other) {
|
||||
if (other == cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse.getDefaultInstance()) return this;
|
||||
this.mergeUnknownFields(other.unknownFields);
|
||||
onChanged();
|
||||
return this;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public final boolean isInitialized() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public Builder mergeFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws java.io.IOException {
|
||||
cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse parsedMessage = null;
|
||||
try {
|
||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
||||
parsedMessage = (cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse) e.getUnfinishedMessage();
|
||||
throw e.unwrapIOException();
|
||||
} finally {
|
||||
if (parsedMessage != null) {
|
||||
mergeFrom(parsedMessage);
|
||||
}
|
||||
}
|
||||
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.settings.SetValueResponse)
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(class_scope:cc.arduino.cli.settings.SetValueResponse)
|
||||
private static final cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse DEFAULT_INSTANCE;
|
||||
static {
|
||||
DEFAULT_INSTANCE = new cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse();
|
||||
}
|
||||
|
||||
public static cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse getDefaultInstance() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Parser<SetValueResponse>
|
||||
PARSER = new com.google.protobuf.AbstractParser<SetValueResponse>() {
|
||||
@java.lang.Override
|
||||
public SetValueResponse parsePartialFrom(
|
||||
com.google.protobuf.CodedInputStream input,
|
||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
||||
return new SetValueResponse(input, extensionRegistry);
|
||||
}
|
||||
};
|
||||
|
||||
public static com.google.protobuf.Parser<SetValueResponse> parser() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public com.google.protobuf.Parser<SetValueResponse> getParserForType() {
|
||||
return PARSER;
|
||||
}
|
||||
|
||||
@java.lang.Override
|
||||
public cc.arduino.cli.settings.SettingsOuterClass.SetValueResponse getDefaultInstanceForType() {
|
||||
return DEFAULT_INSTANCE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_cc_arduino_cli_settings_RawData_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_cc_arduino_cli_settings_RawData_fieldAccessorTable;
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_cc_arduino_cli_settings_Value_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_cc_arduino_cli_settings_Value_fieldAccessorTable;
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_cc_arduino_cli_settings_GetAllRequest_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_cc_arduino_cli_settings_GetAllRequest_fieldAccessorTable;
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_cc_arduino_cli_settings_GetValueRequest_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_cc_arduino_cli_settings_GetValueRequest_fieldAccessorTable;
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_cc_arduino_cli_settings_MergeResponse_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_cc_arduino_cli_settings_MergeResponse_fieldAccessorTable;
|
||||
private static final com.google.protobuf.Descriptors.Descriptor
|
||||
internal_static_cc_arduino_cli_settings_SetValueResponse_descriptor;
|
||||
private static final
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
||||
internal_static_cc_arduino_cli_settings_SetValueResponse_fieldAccessorTable;
|
||||
|
||||
public static com.google.protobuf.Descriptors.FileDescriptor
|
||||
getDescriptor() {
|
||||
return descriptor;
|
||||
}
|
||||
private static com.google.protobuf.Descriptors.FileDescriptor
|
||||
descriptor;
|
||||
static {
|
||||
java.lang.String[] descriptorData = {
|
||||
"\n\027settings/settings.proto\022\027cc.arduino.cl" +
|
||||
"i.settings\"\033\n\007RawData\022\020\n\010jsonData\030\001 \001(\t\"" +
|
||||
"&\n\005Value\022\013\n\003key\030\001 \001(\t\022\020\n\010jsonData\030\002 \001(\t\"" +
|
||||
"\017\n\rGetAllRequest\"\036\n\017GetValueRequest\022\013\n\003k" +
|
||||
"ey\030\001 \001(\t\"\017\n\rMergeResponse\"\022\n\020SetValueRes" +
|
||||
"ponse2\336\002\n\010Settings\022R\n\006GetAll\022&.cc.arduin" +
|
||||
"o.cli.settings.GetAllRequest\032 .cc.arduin" +
|
||||
"o.cli.settings.RawData\022Q\n\005Merge\022 .cc.ard" +
|
||||
"uino.cli.settings.RawData\032&.cc.arduino.c" +
|
||||
"li.settings.MergeResponse\022T\n\010GetValue\022(." +
|
||||
"cc.arduino.cli.settings.GetValueRequest\032" +
|
||||
"\036.cc.arduino.cli.settings.Value\022U\n\010SetVa" +
|
||||
"lue\022\036.cc.arduino.cli.settings.Value\032).cc" +
|
||||
".arduino.cli.settings.SetValueResponseB-" +
|
||||
"Z+github.com/arduino/arduino-cli/rpc/set" +
|
||||
"tingsb\006proto3"
|
||||
};
|
||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
||||
.internalBuildGeneratedFileFrom(descriptorData,
|
||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
||||
});
|
||||
internal_static_cc_arduino_cli_settings_RawData_descriptor =
|
||||
getDescriptor().getMessageTypes().get(0);
|
||||
internal_static_cc_arduino_cli_settings_RawData_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_settings_RawData_descriptor,
|
||||
new java.lang.String[] { "JsonData", });
|
||||
internal_static_cc_arduino_cli_settings_Value_descriptor =
|
||||
getDescriptor().getMessageTypes().get(1);
|
||||
internal_static_cc_arduino_cli_settings_Value_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_settings_Value_descriptor,
|
||||
new java.lang.String[] { "Key", "JsonData", });
|
||||
internal_static_cc_arduino_cli_settings_GetAllRequest_descriptor =
|
||||
getDescriptor().getMessageTypes().get(2);
|
||||
internal_static_cc_arduino_cli_settings_GetAllRequest_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_settings_GetAllRequest_descriptor,
|
||||
new java.lang.String[] { });
|
||||
internal_static_cc_arduino_cli_settings_GetValueRequest_descriptor =
|
||||
getDescriptor().getMessageTypes().get(3);
|
||||
internal_static_cc_arduino_cli_settings_GetValueRequest_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_settings_GetValueRequest_descriptor,
|
||||
new java.lang.String[] { "Key", });
|
||||
internal_static_cc_arduino_cli_settings_MergeResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(4);
|
||||
internal_static_cc_arduino_cli_settings_MergeResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_settings_MergeResponse_descriptor,
|
||||
new java.lang.String[] { });
|
||||
internal_static_cc_arduino_cli_settings_SetValueResponse_descriptor =
|
||||
getDescriptor().getMessageTypes().get(5);
|
||||
internal_static_cc_arduino_cli_settings_SetValueResponse_fieldAccessorTable = new
|
||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
||||
internal_static_cc_arduino_cli_settings_SetValueResponse_descriptor,
|
||||
new java.lang.String[] { });
|
||||
}
|
||||
|
||||
// @@protoc_insertion_point(outer_class_scope)
|
||||
}
|
@ -54,7 +54,7 @@ public class UserLibrary {
|
||||
protected File installedFolder;
|
||||
|
||||
public static final String LOCATION_IDE = "ide";
|
||||
public static final String LOCATION_SKETCHBOOK = "sketchbook";
|
||||
public static final String LOCATION_SKETCHBOOK = "user";
|
||||
public static final String LOCATION_CORE = "platform";
|
||||
public static final String LOCATION_REF_CORE = "ref-platform";
|
||||
protected String location;
|
||||
|
Loading…
x
Reference in New Issue
Block a user