
org.yamcs.protobuf.FileTransferOption Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yamcs/protobuf/filetransfer/filetransfer.proto
package org.yamcs.protobuf;
/**
*
*CUSTOMISABLE FILE TRANSFER OPTIONS
*
*
* Protobuf type {@code yamcs.protobuf.filetransfer.FileTransferOption}
*/
public final class FileTransferOption extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.filetransfer.FileTransferOption)
FileTransferOptionOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileTransferOption.newBuilder() to construct.
private FileTransferOption(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileTransferOption() {
name_ = "";
type_ = 0;
title_ = "";
description_ = "";
associatedText_ = "";
default_ = "";
values_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileTransferOption();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FileTransferOption(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 16: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.FileTransferOption.Type value = org.yamcs.protobuf.FileTransferOption.Type.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(2, rawValue);
} else {
bitField0_ |= 0x00000002;
type_ = rawValue;
}
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
title_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
description_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
associatedText_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
default_ = bs;
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
values_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
values_.add(
input.readMessage(org.yamcs.protobuf.FileTransferOption.Value.PARSER, extensionRegistry));
break;
}
case 64: {
bitField0_ |= 0x00000040;
allowCustomOption_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000040) != 0)) {
values_ = java.util.Collections.unmodifiableList(values_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.FileTransferOption.class, org.yamcs.protobuf.FileTransferOption.Builder.class);
}
/**
* Protobuf enum {@code yamcs.protobuf.filetransfer.FileTransferOption.Type}
*/
public enum Type
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Shown as checkbox in the UI
*
*
* BOOLEAN = 0;
*/
BOOLEAN(0),
/**
*
* Shown as a number field or drop-down if values is specified
*
*
* DOUBLE = 1;
*/
DOUBLE(1),
/**
*
* Shown as text field or drop-down if values is specified
*
*
* STRING = 2;
*/
STRING(2),
;
/**
*
* Shown as checkbox in the UI
*
*
* BOOLEAN = 0;
*/
public static final int BOOLEAN_VALUE = 0;
/**
*
* Shown as a number field or drop-down if values is specified
*
*
* DOUBLE = 1;
*/
public static final int DOUBLE_VALUE = 1;
/**
*
* Shown as text field or drop-down if values is specified
*
*
* STRING = 2;
*/
public static final int STRING_VALUE = 2;
public final int getNumber() {
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Type valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Type forNumber(int value) {
switch (value) {
case 0: return BOOLEAN;
case 1: return DOUBLE;
case 2: return STRING;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Type> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Type findValueByNumber(int number) {
return Type.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return org.yamcs.protobuf.FileTransferOption.getDescriptor().getEnumTypes().get(0);
}
private static final Type[] VALUES = values();
public static Type valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private Type(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:yamcs.protobuf.filetransfer.FileTransferOption.Type)
}
public interface ValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.filetransfer.FileTransferOption.Value)
com.google.protobuf.MessageOrBuilder {
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @return The value.
*/
java.lang.String getValue();
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @return Whether the verboseName field is set.
*/
boolean hasVerboseName();
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @return The verboseName.
*/
java.lang.String getVerboseName();
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @return The bytes for verboseName.
*/
com.google.protobuf.ByteString
getVerboseNameBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.filetransfer.FileTransferOption.Value}
*/
public static final class Value extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.filetransfer.FileTransferOption.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() {
value_ = "";
verboseName_ = "";
}
@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();
}
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
value_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
verboseName_ = bs;
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 org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferOption_Value_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferOption_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.FileTransferOption.Value.class, org.yamcs.protobuf.FileTransferOption.Value.Builder.class);
}
private int bitField0_;
public static final int VALUE_FIELD_NUMBER = 1;
private volatile java.lang.Object value_;
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERBOSENAME_FIELD_NUMBER = 2;
private volatile java.lang.Object verboseName_;
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @return Whether the verboseName field is set.
*/
@java.lang.Override
public boolean hasVerboseName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @return The verboseName.
*/
@java.lang.Override
public java.lang.String getVerboseName() {
java.lang.Object ref = verboseName_;
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();
if (bs.isValidUtf8()) {
verboseName_ = s;
}
return s;
}
}
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @return The bytes for verboseName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getVerboseNameBytes() {
java.lang.Object ref = verboseName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
verboseName_ = 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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, verboseName_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, verboseName_);
}
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 org.yamcs.protobuf.FileTransferOption.Value)) {
return super.equals(obj);
}
org.yamcs.protobuf.FileTransferOption.Value other = (org.yamcs.protobuf.FileTransferOption.Value) obj;
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (hasVerboseName() != other.hasVerboseName()) return false;
if (hasVerboseName()) {
if (!getVerboseName()
.equals(other.getVerboseName())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
if (hasVerboseName()) {
hash = (37 * hash) + VERBOSENAME_FIELD_NUMBER;
hash = (53 * hash) + getVerboseName().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.FileTransferOption.Value parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.FileTransferOption.Value parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.FileTransferOption.Value parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.FileTransferOption.Value parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.FileTransferOption.Value parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.FileTransferOption.Value parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.FileTransferOption.Value parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.FileTransferOption.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 org.yamcs.protobuf.FileTransferOption.Value parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.FileTransferOption.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 org.yamcs.protobuf.FileTransferOption.Value parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.FileTransferOption.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(org.yamcs.protobuf.FileTransferOption.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 yamcs.protobuf.filetransfer.FileTransferOption.Value}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.filetransfer.FileTransferOption.Value)
org.yamcs.protobuf.FileTransferOption.ValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferOption_Value_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferOption_Value_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.FileTransferOption.Value.class, org.yamcs.protobuf.FileTransferOption.Value.Builder.class);
}
// Construct using org.yamcs.protobuf.FileTransferOption.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();
value_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
verboseName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferOption_Value_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.FileTransferOption.Value getDefaultInstanceForType() {
return org.yamcs.protobuf.FileTransferOption.Value.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.FileTransferOption.Value build() {
org.yamcs.protobuf.FileTransferOption.Value result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.FileTransferOption.Value buildPartial() {
org.yamcs.protobuf.FileTransferOption.Value result = new org.yamcs.protobuf.FileTransferOption.Value(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.value_ = value_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.verboseName_ = verboseName_;
result.bitField0_ = to_bitField0_;
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 org.yamcs.protobuf.FileTransferOption.Value) {
return mergeFrom((org.yamcs.protobuf.FileTransferOption.Value)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.FileTransferOption.Value other) {
if (other == org.yamcs.protobuf.FileTransferOption.Value.getDefaultInstance()) return this;
if (other.hasValue()) {
bitField0_ |= 0x00000001;
value_ = other.value_;
onChanged();
}
if (other.hasVerboseName()) {
bitField0_ |= 0x00000002;
verboseName_ = other.verboseName_;
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 {
org.yamcs.protobuf.FileTransferOption.Value parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.FileTransferOption.Value) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object value_ = "";
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
value_ = value;
onChanged();
return this;
}
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000001);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
*
* Real value for the option (used to sent to the server)
*
*
* optional string value = 1;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
value_ = value;
onChanged();
return this;
}
private java.lang.Object verboseName_ = "";
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @return Whether the verboseName field is set.
*/
public boolean hasVerboseName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @return The verboseName.
*/
public java.lang.String getVerboseName() {
java.lang.Object ref = verboseName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
verboseName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @return The bytes for verboseName.
*/
public com.google.protobuf.ByteString
getVerboseNameBytes() {
java.lang.Object ref = verboseName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
verboseName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @param value The verboseName to set.
* @return This builder for chaining.
*/
public Builder setVerboseName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
verboseName_ = value;
onChanged();
return this;
}
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @return This builder for chaining.
*/
public Builder clearVerboseName() {
bitField0_ = (bitField0_ & ~0x00000002);
verboseName_ = getDefaultInstance().getVerboseName();
onChanged();
return this;
}
/**
*
* Display name for the value
*
*
* optional string verboseName = 2;
* @param value The bytes for verboseName to set.
* @return This builder for chaining.
*/
public Builder setVerboseNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
verboseName_ = 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:yamcs.protobuf.filetransfer.FileTransferOption.Value)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.filetransfer.FileTransferOption.Value)
private static final org.yamcs.protobuf.FileTransferOption.Value DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.FileTransferOption.Value();
}
public static org.yamcs.protobuf.FileTransferOption.Value getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.yamcs.protobuf.FileTransferOption.Value getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
*
* Identifier
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Identifier
*
*
* optional string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* Identifier
*
*
* optional string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private int type_;
/**
*
* Option type
*
*
* optional .yamcs.protobuf.filetransfer.FileTransferOption.Type type = 2;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Option type
*
*
* optional .yamcs.protobuf.filetransfer.FileTransferOption.Type type = 2;
* @return The type.
*/
@java.lang.Override public org.yamcs.protobuf.FileTransferOption.Type getType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.FileTransferOption.Type result = org.yamcs.protobuf.FileTransferOption.Type.valueOf(type_);
return result == null ? org.yamcs.protobuf.FileTransferOption.Type.BOOLEAN : result;
}
public static final int TITLE_FIELD_NUMBER = 3;
private volatile java.lang.Object title_;
/**
*
* Title for the option
*
*
* optional string title = 3;
* @return Whether the title field is set.
*/
@java.lang.Override
public boolean hasTitle() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Title for the option
*
*
* optional string title = 3;
* @return The title.
*/
@java.lang.Override
public java.lang.String getTitle() {
java.lang.Object ref = title_;
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();
if (bs.isValidUtf8()) {
title_ = s;
}
return s;
}
}
/**
*
* Title for the option
*
*
* optional string title = 3;
* @return The bytes for title.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DESCRIPTION_FIELD_NUMBER = 4;
private volatile java.lang.Object description_;
/**
*
* Help text shown on hover
*
*
* optional string description = 4;
* @return Whether the description field is set.
*/
@java.lang.Override
public boolean hasDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Help text shown on hover
*
*
* optional string description = 4;
* @return The description.
*/
@java.lang.Override
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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();
if (bs.isValidUtf8()) {
description_ = s;
}
return s;
}
}
/**
*
* Help text shown on hover
*
*
* optional string description = 4;
* @return The bytes for description.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ASSOCIATEDTEXT_FIELD_NUMBER = 5;
private volatile java.lang.Object associatedText_;
/**
*
* Placeholder for fields and label for checkboxes
*
*
* optional string associatedText = 5;
* @return Whether the associatedText field is set.
*/
@java.lang.Override
public boolean hasAssociatedText() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Placeholder for fields and label for checkboxes
*
*
* optional string associatedText = 5;
* @return The associatedText.
*/
@java.lang.Override
public java.lang.String getAssociatedText() {
java.lang.Object ref = associatedText_;
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();
if (bs.isValidUtf8()) {
associatedText_ = s;
}
return s;
}
}
/**
*
* Placeholder for fields and label for checkboxes
*
*
* optional string associatedText = 5;
* @return The bytes for associatedText.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getAssociatedTextBytes() {
java.lang.Object ref = associatedText_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
associatedText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULT_FIELD_NUMBER = 6;
private volatile java.lang.Object default_;
/**
*
* Default value for the field
*
*
* optional string default = 6;
* @return Whether the default field is set.
*/
@java.lang.Override
public boolean hasDefault() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Default value for the field
*
*
* optional string default = 6;
* @return The default.
*/
@java.lang.Override
public java.lang.String getDefault() {
java.lang.Object ref = default_;
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();
if (bs.isValidUtf8()) {
default_ = s;
}
return s;
}
}
/**
*
* Default value for the field
*
*
* optional string default = 6;
* @return The bytes for default.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDefaultBytes() {
java.lang.Object ref = default_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
default_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUES_FIELD_NUMBER = 7;
private java.util.List values_;
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
@java.lang.Override
public java.util.List getValuesList() {
return values_;
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.FileTransferOption.ValueOrBuilder>
getValuesOrBuilderList() {
return values_;
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
@java.lang.Override
public int getValuesCount() {
return values_.size();
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
@java.lang.Override
public org.yamcs.protobuf.FileTransferOption.Value getValues(int index) {
return values_.get(index);
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
@java.lang.Override
public org.yamcs.protobuf.FileTransferOption.ValueOrBuilder getValuesOrBuilder(
int index) {
return values_.get(index);
}
public static final int ALLOWCUSTOMOPTION_FIELD_NUMBER = 8;
private boolean allowCustomOption_;
/**
*
* Whether a custom field is needed when using the drop-down menu
*
*
* optional bool allowCustomOption = 8;
* @return Whether the allowCustomOption field is set.
*/
@java.lang.Override
public boolean hasAllowCustomOption() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Whether a custom field is needed when using the drop-down menu
*
*
* optional bool allowCustomOption = 8;
* @return The allowCustomOption.
*/
@java.lang.Override
public boolean getAllowCustomOption() {
return allowCustomOption_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeEnum(2, type_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, title_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, associatedText_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, default_);
}
for (int i = 0; i < values_.size(); i++) {
output.writeMessage(7, values_.get(i));
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(8, allowCustomOption_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(2, type_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, title_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, associatedText_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, default_);
}
for (int i = 0; i < values_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, values_.get(i));
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(8, allowCustomOption_);
}
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 org.yamcs.protobuf.FileTransferOption)) {
return super.equals(obj);
}
org.yamcs.protobuf.FileTransferOption other = (org.yamcs.protobuf.FileTransferOption) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (type_ != other.type_) return false;
}
if (hasTitle() != other.hasTitle()) return false;
if (hasTitle()) {
if (!getTitle()
.equals(other.getTitle())) return false;
}
if (hasDescription() != other.hasDescription()) return false;
if (hasDescription()) {
if (!getDescription()
.equals(other.getDescription())) return false;
}
if (hasAssociatedText() != other.hasAssociatedText()) return false;
if (hasAssociatedText()) {
if (!getAssociatedText()
.equals(other.getAssociatedText())) return false;
}
if (hasDefault() != other.hasDefault()) return false;
if (hasDefault()) {
if (!getDefault()
.equals(other.getDefault())) return false;
}
if (!getValuesList()
.equals(other.getValuesList())) return false;
if (hasAllowCustomOption() != other.hasAllowCustomOption()) return false;
if (hasAllowCustomOption()) {
if (getAllowCustomOption()
!= other.getAllowCustomOption()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + type_;
}
if (hasTitle()) {
hash = (37 * hash) + TITLE_FIELD_NUMBER;
hash = (53 * hash) + getTitle().hashCode();
}
if (hasDescription()) {
hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
hash = (53 * hash) + getDescription().hashCode();
}
if (hasAssociatedText()) {
hash = (37 * hash) + ASSOCIATEDTEXT_FIELD_NUMBER;
hash = (53 * hash) + getAssociatedText().hashCode();
}
if (hasDefault()) {
hash = (37 * hash) + DEFAULT_FIELD_NUMBER;
hash = (53 * hash) + getDefault().hashCode();
}
if (getValuesCount() > 0) {
hash = (37 * hash) + VALUES_FIELD_NUMBER;
hash = (53 * hash) + getValuesList().hashCode();
}
if (hasAllowCustomOption()) {
hash = (37 * hash) + ALLOWCUSTOMOPTION_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getAllowCustomOption());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.FileTransferOption parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.FileTransferOption parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.FileTransferOption parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.FileTransferOption parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.FileTransferOption parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.FileTransferOption parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.FileTransferOption parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.FileTransferOption 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 org.yamcs.protobuf.FileTransferOption parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.FileTransferOption 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 org.yamcs.protobuf.FileTransferOption parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.FileTransferOption 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(org.yamcs.protobuf.FileTransferOption 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;
}
/**
*
*CUSTOMISABLE FILE TRANSFER OPTIONS
*
*
* Protobuf type {@code yamcs.protobuf.filetransfer.FileTransferOption}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.filetransfer.FileTransferOption)
org.yamcs.protobuf.FileTransferOptionOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferOption_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferOption_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.FileTransferOption.class, org.yamcs.protobuf.FileTransferOption.Builder.class);
}
// Construct using org.yamcs.protobuf.FileTransferOption.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getValuesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
title_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
description_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
associatedText_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
default_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
valuesBuilder_.clear();
}
allowCustomOption_ = false;
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferOption_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.FileTransferOption getDefaultInstanceForType() {
return org.yamcs.protobuf.FileTransferOption.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.FileTransferOption build() {
org.yamcs.protobuf.FileTransferOption result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.FileTransferOption buildPartial() {
org.yamcs.protobuf.FileTransferOption result = new org.yamcs.protobuf.FileTransferOption(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.type_ = type_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.title_ = title_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.description_ = description_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.associatedText_ = associatedText_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.default_ = default_;
if (valuesBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
values_ = java.util.Collections.unmodifiableList(values_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.values_ = values_;
} else {
result.values_ = valuesBuilder_.build();
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.allowCustomOption_ = allowCustomOption_;
to_bitField0_ |= 0x00000040;
}
result.bitField0_ = to_bitField0_;
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 org.yamcs.protobuf.FileTransferOption) {
return mergeFrom((org.yamcs.protobuf.FileTransferOption)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.FileTransferOption other) {
if (other == org.yamcs.protobuf.FileTransferOption.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasTitle()) {
bitField0_ |= 0x00000004;
title_ = other.title_;
onChanged();
}
if (other.hasDescription()) {
bitField0_ |= 0x00000008;
description_ = other.description_;
onChanged();
}
if (other.hasAssociatedText()) {
bitField0_ |= 0x00000010;
associatedText_ = other.associatedText_;
onChanged();
}
if (other.hasDefault()) {
bitField0_ |= 0x00000020;
default_ = other.default_;
onChanged();
}
if (valuesBuilder_ == null) {
if (!other.values_.isEmpty()) {
if (values_.isEmpty()) {
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureValuesIsMutable();
values_.addAll(other.values_);
}
onChanged();
}
} else {
if (!other.values_.isEmpty()) {
if (valuesBuilder_.isEmpty()) {
valuesBuilder_.dispose();
valuesBuilder_ = null;
values_ = other.values_;
bitField0_ = (bitField0_ & ~0x00000040);
valuesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getValuesFieldBuilder() : null;
} else {
valuesBuilder_.addAllMessages(other.values_);
}
}
}
if (other.hasAllowCustomOption()) {
setAllowCustomOption(other.getAllowCustomOption());
}
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 {
org.yamcs.protobuf.FileTransferOption parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.FileTransferOption) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
*
* Identifier
*
*
* optional string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Identifier
*
*
* optional string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Identifier
*
*
* optional string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Identifier
*
*
* optional string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
*
* Identifier
*
*
* optional string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Identifier
*
*
* optional string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private int type_ = 0;
/**
*
* Option type
*
*
* optional .yamcs.protobuf.filetransfer.FileTransferOption.Type type = 2;
* @return Whether the type field is set.
*/
@java.lang.Override public boolean hasType() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Option type
*
*
* optional .yamcs.protobuf.filetransfer.FileTransferOption.Type type = 2;
* @return The type.
*/
@java.lang.Override
public org.yamcs.protobuf.FileTransferOption.Type getType() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.FileTransferOption.Type result = org.yamcs.protobuf.FileTransferOption.Type.valueOf(type_);
return result == null ? org.yamcs.protobuf.FileTransferOption.Type.BOOLEAN : result;
}
/**
*
* Option type
*
*
* optional .yamcs.protobuf.filetransfer.FileTransferOption.Type type = 2;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(org.yamcs.protobuf.FileTransferOption.Type value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
type_ = value.getNumber();
onChanged();
return this;
}
/**
*
* Option type
*
*
* optional .yamcs.protobuf.filetransfer.FileTransferOption.Type type = 2;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000002);
type_ = 0;
onChanged();
return this;
}
private java.lang.Object title_ = "";
/**
*
* Title for the option
*
*
* optional string title = 3;
* @return Whether the title field is set.
*/
public boolean hasTitle() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Title for the option
*
*
* optional string title = 3;
* @return The title.
*/
public java.lang.String getTitle() {
java.lang.Object ref = title_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
title_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Title for the option
*
*
* optional string title = 3;
* @return The bytes for title.
*/
public com.google.protobuf.ByteString
getTitleBytes() {
java.lang.Object ref = title_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
title_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Title for the option
*
*
* optional string title = 3;
* @param value The title to set.
* @return This builder for chaining.
*/
public Builder setTitle(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
title_ = value;
onChanged();
return this;
}
/**
*
* Title for the option
*
*
* optional string title = 3;
* @return This builder for chaining.
*/
public Builder clearTitle() {
bitField0_ = (bitField0_ & ~0x00000004);
title_ = getDefaultInstance().getTitle();
onChanged();
return this;
}
/**
*
* Title for the option
*
*
* optional string title = 3;
* @param value The bytes for title to set.
* @return This builder for chaining.
*/
public Builder setTitleBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
title_ = value;
onChanged();
return this;
}
private java.lang.Object description_ = "";
/**
*
* Help text shown on hover
*
*
* optional string description = 4;
* @return Whether the description field is set.
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Help text shown on hover
*
*
* optional string description = 4;
* @return The description.
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
description_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Help text shown on hover
*
*
* optional string description = 4;
* @return The bytes for description.
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Help text shown on hover
*
*
* optional string description = 4;
* @param value The description to set.
* @return This builder for chaining.
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
description_ = value;
onChanged();
return this;
}
/**
*
* Help text shown on hover
*
*
* optional string description = 4;
* @return This builder for chaining.
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000008);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
*
* Help text shown on hover
*
*
* optional string description = 4;
* @param value The bytes for description to set.
* @return This builder for chaining.
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
description_ = value;
onChanged();
return this;
}
private java.lang.Object associatedText_ = "";
/**
*
* Placeholder for fields and label for checkboxes
*
*
* optional string associatedText = 5;
* @return Whether the associatedText field is set.
*/
public boolean hasAssociatedText() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Placeholder for fields and label for checkboxes
*
*
* optional string associatedText = 5;
* @return The associatedText.
*/
public java.lang.String getAssociatedText() {
java.lang.Object ref = associatedText_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
associatedText_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Placeholder for fields and label for checkboxes
*
*
* optional string associatedText = 5;
* @return The bytes for associatedText.
*/
public com.google.protobuf.ByteString
getAssociatedTextBytes() {
java.lang.Object ref = associatedText_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
associatedText_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Placeholder for fields and label for checkboxes
*
*
* optional string associatedText = 5;
* @param value The associatedText to set.
* @return This builder for chaining.
*/
public Builder setAssociatedText(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
associatedText_ = value;
onChanged();
return this;
}
/**
*
* Placeholder for fields and label for checkboxes
*
*
* optional string associatedText = 5;
* @return This builder for chaining.
*/
public Builder clearAssociatedText() {
bitField0_ = (bitField0_ & ~0x00000010);
associatedText_ = getDefaultInstance().getAssociatedText();
onChanged();
return this;
}
/**
*
* Placeholder for fields and label for checkboxes
*
*
* optional string associatedText = 5;
* @param value The bytes for associatedText to set.
* @return This builder for chaining.
*/
public Builder setAssociatedTextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
associatedText_ = value;
onChanged();
return this;
}
private java.lang.Object default_ = "";
/**
*
* Default value for the field
*
*
* optional string default = 6;
* @return Whether the default field is set.
*/
public boolean hasDefault() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Default value for the field
*
*
* optional string default = 6;
* @return The default.
*/
public java.lang.String getDefault() {
java.lang.Object ref = default_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
default_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Default value for the field
*
*
* optional string default = 6;
* @return The bytes for default.
*/
public com.google.protobuf.ByteString
getDefaultBytes() {
java.lang.Object ref = default_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
default_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Default value for the field
*
*
* optional string default = 6;
* @param value The default to set.
* @return This builder for chaining.
*/
public Builder setDefault(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
default_ = value;
onChanged();
return this;
}
/**
*
* Default value for the field
*
*
* optional string default = 6;
* @return This builder for chaining.
*/
public Builder clearDefault() {
bitField0_ = (bitField0_ & ~0x00000020);
default_ = getDefaultInstance().getDefault();
onChanged();
return this;
}
/**
*
* Default value for the field
*
*
* optional string default = 6;
* @param value The bytes for default to set.
* @return This builder for chaining.
*/
public Builder setDefaultBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
default_ = value;
onChanged();
return this;
}
private java.util.List values_ =
java.util.Collections.emptyList();
private void ensureValuesIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
values_ = new java.util.ArrayList(values_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.FileTransferOption.Value, org.yamcs.protobuf.FileTransferOption.Value.Builder, org.yamcs.protobuf.FileTransferOption.ValueOrBuilder> valuesBuilder_;
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public java.util.List getValuesList() {
if (valuesBuilder_ == null) {
return java.util.Collections.unmodifiableList(values_);
} else {
return valuesBuilder_.getMessageList();
}
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public int getValuesCount() {
if (valuesBuilder_ == null) {
return values_.size();
} else {
return valuesBuilder_.getCount();
}
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public org.yamcs.protobuf.FileTransferOption.Value getValues(int index) {
if (valuesBuilder_ == null) {
return values_.get(index);
} else {
return valuesBuilder_.getMessage(index);
}
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public Builder setValues(
int index, org.yamcs.protobuf.FileTransferOption.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.set(index, value);
onChanged();
} else {
valuesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public Builder setValues(
int index, org.yamcs.protobuf.FileTransferOption.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.set(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public Builder addValues(org.yamcs.protobuf.FileTransferOption.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(value);
onChanged();
} else {
valuesBuilder_.addMessage(value);
}
return this;
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public Builder addValues(
int index, org.yamcs.protobuf.FileTransferOption.Value value) {
if (valuesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValuesIsMutable();
values_.add(index, value);
onChanged();
} else {
valuesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public Builder addValues(
org.yamcs.protobuf.FileTransferOption.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public Builder addValues(
int index, org.yamcs.protobuf.FileTransferOption.Value.Builder builderForValue) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.add(index, builderForValue.build());
onChanged();
} else {
valuesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public Builder addAllValues(
java.lang.Iterable extends org.yamcs.protobuf.FileTransferOption.Value> values) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, values_);
onChanged();
} else {
valuesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public Builder clearValues() {
if (valuesBuilder_ == null) {
values_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
valuesBuilder_.clear();
}
return this;
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public Builder removeValues(int index) {
if (valuesBuilder_ == null) {
ensureValuesIsMutable();
values_.remove(index);
onChanged();
} else {
valuesBuilder_.remove(index);
}
return this;
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public org.yamcs.protobuf.FileTransferOption.Value.Builder getValuesBuilder(
int index) {
return getValuesFieldBuilder().getBuilder(index);
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public org.yamcs.protobuf.FileTransferOption.ValueOrBuilder getValuesOrBuilder(
int index) {
if (valuesBuilder_ == null) {
return values_.get(index); } else {
return valuesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public java.util.List extends org.yamcs.protobuf.FileTransferOption.ValueOrBuilder>
getValuesOrBuilderList() {
if (valuesBuilder_ != null) {
return valuesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(values_);
}
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public org.yamcs.protobuf.FileTransferOption.Value.Builder addValuesBuilder() {
return getValuesFieldBuilder().addBuilder(
org.yamcs.protobuf.FileTransferOption.Value.getDefaultInstance());
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public org.yamcs.protobuf.FileTransferOption.Value.Builder addValuesBuilder(
int index) {
return getValuesFieldBuilder().addBuilder(
index, org.yamcs.protobuf.FileTransferOption.Value.getDefaultInstance());
}
/**
*
* Values for potential dropdown menu
*
*
* repeated .yamcs.protobuf.filetransfer.FileTransferOption.Value values = 7;
*/
public java.util.List
getValuesBuilderList() {
return getValuesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.FileTransferOption.Value, org.yamcs.protobuf.FileTransferOption.Value.Builder, org.yamcs.protobuf.FileTransferOption.ValueOrBuilder>
getValuesFieldBuilder() {
if (valuesBuilder_ == null) {
valuesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.FileTransferOption.Value, org.yamcs.protobuf.FileTransferOption.Value.Builder, org.yamcs.protobuf.FileTransferOption.ValueOrBuilder>(
values_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
values_ = null;
}
return valuesBuilder_;
}
private boolean allowCustomOption_ ;
/**
*
* Whether a custom field is needed when using the drop-down menu
*
*
* optional bool allowCustomOption = 8;
* @return Whether the allowCustomOption field is set.
*/
@java.lang.Override
public boolean hasAllowCustomOption() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Whether a custom field is needed when using the drop-down menu
*
*
* optional bool allowCustomOption = 8;
* @return The allowCustomOption.
*/
@java.lang.Override
public boolean getAllowCustomOption() {
return allowCustomOption_;
}
/**
*
* Whether a custom field is needed when using the drop-down menu
*
*
* optional bool allowCustomOption = 8;
* @param value The allowCustomOption to set.
* @return This builder for chaining.
*/
public Builder setAllowCustomOption(boolean value) {
bitField0_ |= 0x00000080;
allowCustomOption_ = value;
onChanged();
return this;
}
/**
*
* Whether a custom field is needed when using the drop-down menu
*
*
* optional bool allowCustomOption = 8;
* @return This builder for chaining.
*/
public Builder clearAllowCustomOption() {
bitField0_ = (bitField0_ & ~0x00000080);
allowCustomOption_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yamcs.protobuf.filetransfer.FileTransferOption)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.filetransfer.FileTransferOption)
private static final org.yamcs.protobuf.FileTransferOption DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.FileTransferOption();
}
public static org.yamcs.protobuf.FileTransferOption getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileTransferOption parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FileTransferOption(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.yamcs.protobuf.FileTransferOption getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy