
org.yamcs.protobuf.FileTransferCapabilities 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;
/**
* Protobuf type {@code yamcs.protobuf.filetransfer.FileTransferCapabilities}
*/
public final class FileTransferCapabilities extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.filetransfer.FileTransferCapabilities)
FileTransferCapabilitiesOrBuilder {
private static final long serialVersionUID = 0L;
// Use FileTransferCapabilities.newBuilder() to construct.
private FileTransferCapabilities(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private FileTransferCapabilities() {
fileListExtraColumns_ = java.util.Collections.emptyList();
fileActions_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new FileTransferCapabilities();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FileTransferCapabilities(
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 8: {
bitField0_ |= 0x00000001;
upload_ = input.readBool();
break;
}
case 16: {
bitField0_ |= 0x00000002;
download_ = input.readBool();
break;
}
case 32: {
bitField0_ |= 0x00000004;
remotePath_ = input.readBool();
break;
}
case 40: {
bitField0_ |= 0x00000008;
fileList_ = input.readBool();
break;
}
case 48: {
bitField0_ |= 0x00000010;
hasTransferType_ = input.readBool();
break;
}
case 58: {
if (!((mutable_bitField0_ & 0x00000040) != 0)) {
fileListExtraColumns_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000040;
}
fileListExtraColumns_.add(
input.readMessage(org.yamcs.protobuf.ExtraColumnInfo.PARSER, extensionRegistry));
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) != 0)) {
fileActions_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
fileActions_.add(
input.readMessage(org.yamcs.protobuf.actions.ActionInfo.PARSER, extensionRegistry));
break;
}
case 72: {
bitField0_ |= 0x00000020;
pauseResume_ = 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)) {
fileListExtraColumns_ = java.util.Collections.unmodifiableList(fileListExtraColumns_);
}
if (((mutable_bitField0_ & 0x00000080) != 0)) {
fileActions_ = java.util.Collections.unmodifiableList(fileActions_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferCapabilities_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferCapabilities_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.FileTransferCapabilities.class, org.yamcs.protobuf.FileTransferCapabilities.Builder.class);
}
private int bitField0_;
public static final int UPLOAD_FIELD_NUMBER = 1;
private boolean upload_;
/**
*
* Whether the transfer service supports uploads
*
*
* optional bool upload = 1;
* @return Whether the upload field is set.
*/
@java.lang.Override
public boolean hasUpload() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Whether the transfer service supports uploads
*
*
* optional bool upload = 1;
* @return The upload.
*/
@java.lang.Override
public boolean getUpload() {
return upload_;
}
public static final int DOWNLOAD_FIELD_NUMBER = 2;
private boolean download_;
/**
*
* Whether the transfer service supports downloads
*
*
* optional bool download = 2;
* @return Whether the download field is set.
*/
@java.lang.Override
public boolean hasDownload() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Whether the transfer service supports downloads
*
*
* optional bool download = 2;
* @return The download.
*/
@java.lang.Override
public boolean getDownload() {
return download_;
}
public static final int REMOTEPATH_FIELD_NUMBER = 4;
private boolean remotePath_;
/**
*
* Whether the transfer service supports specifying an upload path
*
*
* optional bool remotePath = 4;
* @return Whether the remotePath field is set.
*/
@java.lang.Override
public boolean hasRemotePath() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Whether the transfer service supports specifying an upload path
*
*
* optional bool remotePath = 4;
* @return The remotePath.
*/
@java.lang.Override
public boolean getRemotePath() {
return remotePath_;
}
public static final int FILELIST_FIELD_NUMBER = 5;
private boolean fileList_;
/**
*
* Whether the transfer service supports remote file listings
*
*
* optional bool fileList = 5;
* @return Whether the fileList field is set.
*/
@java.lang.Override
public boolean hasFileList() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Whether the transfer service supports remote file listings
*
*
* optional bool fileList = 5;
* @return The fileList.
*/
@java.lang.Override
public boolean getFileList() {
return fileList_;
}
public static final int HASTRANSFERTYPE_FIELD_NUMBER = 6;
private boolean hasTransferType_;
/**
*
* Whether transfers contain a column describing the Transfer Type
*
*
* optional bool hasTransferType = 6;
* @return Whether the hasTransferType field is set.
*/
@java.lang.Override
public boolean hasHasTransferType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Whether transfers contain a column describing the Transfer Type
*
*
* optional bool hasTransferType = 6;
* @return The hasTransferType.
*/
@java.lang.Override
public boolean getHasTransferType() {
return hasTransferType_;
}
public static final int PAUSERESUME_FIELD_NUMBER = 9;
private boolean pauseResume_;
/**
*
* Whether the transfer service supports pause/resume
*
*
* optional bool pauseResume = 9;
* @return Whether the pauseResume field is set.
*/
@java.lang.Override
public boolean hasPauseResume() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Whether the transfer service supports pause/resume
*
*
* optional bool pauseResume = 9;
* @return The pauseResume.
*/
@java.lang.Override
public boolean getPauseResume() {
return pauseResume_;
}
public static final int FILELISTEXTRACOLUMNS_FIELD_NUMBER = 7;
private java.util.List fileListExtraColumns_;
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
@java.lang.Override
public java.util.List getFileListExtraColumnsList() {
return fileListExtraColumns_;
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.ExtraColumnInfoOrBuilder>
getFileListExtraColumnsOrBuilderList() {
return fileListExtraColumns_;
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
@java.lang.Override
public int getFileListExtraColumnsCount() {
return fileListExtraColumns_.size();
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
@java.lang.Override
public org.yamcs.protobuf.ExtraColumnInfo getFileListExtraColumns(int index) {
return fileListExtraColumns_.get(index);
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
@java.lang.Override
public org.yamcs.protobuf.ExtraColumnInfoOrBuilder getFileListExtraColumnsOrBuilder(
int index) {
return fileListExtraColumns_.get(index);
}
public static final int FILEACTIONS_FIELD_NUMBER = 8;
private java.util.List fileActions_;
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
@java.lang.Override
public java.util.List getFileActionsList() {
return fileActions_;
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.actions.ActionInfoOrBuilder>
getFileActionsOrBuilderList() {
return fileActions_;
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
@java.lang.Override
public int getFileActionsCount() {
return fileActions_.size();
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.actions.ActionInfo getFileActions(int index) {
return fileActions_.get(index);
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.actions.ActionInfoOrBuilder getFileActionsOrBuilder(
int index) {
return fileActions_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeBool(1, upload_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeBool(2, download_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeBool(4, remotePath_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeBool(5, fileList_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeBool(6, hasTransferType_);
}
for (int i = 0; i < fileListExtraColumns_.size(); i++) {
output.writeMessage(7, fileListExtraColumns_.get(i));
}
for (int i = 0; i < fileActions_.size(); i++) {
output.writeMessage(8, fileActions_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(9, pauseResume_);
}
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.CodedOutputStream
.computeBoolSize(1, upload_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, download_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, remotePath_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(5, fileList_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(6, hasTransferType_);
}
for (int i = 0; i < fileListExtraColumns_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, fileListExtraColumns_.get(i));
}
for (int i = 0; i < fileActions_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, fileActions_.get(i));
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, pauseResume_);
}
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.FileTransferCapabilities)) {
return super.equals(obj);
}
org.yamcs.protobuf.FileTransferCapabilities other = (org.yamcs.protobuf.FileTransferCapabilities) obj;
if (hasUpload() != other.hasUpload()) return false;
if (hasUpload()) {
if (getUpload()
!= other.getUpload()) return false;
}
if (hasDownload() != other.hasDownload()) return false;
if (hasDownload()) {
if (getDownload()
!= other.getDownload()) return false;
}
if (hasRemotePath() != other.hasRemotePath()) return false;
if (hasRemotePath()) {
if (getRemotePath()
!= other.getRemotePath()) return false;
}
if (hasFileList() != other.hasFileList()) return false;
if (hasFileList()) {
if (getFileList()
!= other.getFileList()) return false;
}
if (hasHasTransferType() != other.hasHasTransferType()) return false;
if (hasHasTransferType()) {
if (getHasTransferType()
!= other.getHasTransferType()) return false;
}
if (hasPauseResume() != other.hasPauseResume()) return false;
if (hasPauseResume()) {
if (getPauseResume()
!= other.getPauseResume()) return false;
}
if (!getFileListExtraColumnsList()
.equals(other.getFileListExtraColumnsList())) return false;
if (!getFileActionsList()
.equals(other.getFileActionsList())) 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 (hasUpload()) {
hash = (37 * hash) + UPLOAD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getUpload());
}
if (hasDownload()) {
hash = (37 * hash) + DOWNLOAD_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDownload());
}
if (hasRemotePath()) {
hash = (37 * hash) + REMOTEPATH_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getRemotePath());
}
if (hasFileList()) {
hash = (37 * hash) + FILELIST_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getFileList());
}
if (hasHasTransferType()) {
hash = (37 * hash) + HASTRANSFERTYPE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasTransferType());
}
if (hasPauseResume()) {
hash = (37 * hash) + PAUSERESUME_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getPauseResume());
}
if (getFileListExtraColumnsCount() > 0) {
hash = (37 * hash) + FILELISTEXTRACOLUMNS_FIELD_NUMBER;
hash = (53 * hash) + getFileListExtraColumnsList().hashCode();
}
if (getFileActionsCount() > 0) {
hash = (37 * hash) + FILEACTIONS_FIELD_NUMBER;
hash = (53 * hash) + getFileActionsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.FileTransferCapabilities parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.FileTransferCapabilities 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.FileTransferCapabilities parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.FileTransferCapabilities 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.FileTransferCapabilities parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.FileTransferCapabilities parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.FileTransferCapabilities parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.FileTransferCapabilities 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.FileTransferCapabilities parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.FileTransferCapabilities 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.FileTransferCapabilities parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.FileTransferCapabilities 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.FileTransferCapabilities 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.FileTransferCapabilities}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.filetransfer.FileTransferCapabilities)
org.yamcs.protobuf.FileTransferCapabilitiesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferCapabilities_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferCapabilities_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.FileTransferCapabilities.class, org.yamcs.protobuf.FileTransferCapabilities.Builder.class);
}
// Construct using org.yamcs.protobuf.FileTransferCapabilities.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getFileListExtraColumnsFieldBuilder();
getFileActionsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
upload_ = false;
bitField0_ = (bitField0_ & ~0x00000001);
download_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
remotePath_ = false;
bitField0_ = (bitField0_ & ~0x00000004);
fileList_ = false;
bitField0_ = (bitField0_ & ~0x00000008);
hasTransferType_ = false;
bitField0_ = (bitField0_ & ~0x00000010);
pauseResume_ = false;
bitField0_ = (bitField0_ & ~0x00000020);
if (fileListExtraColumnsBuilder_ == null) {
fileListExtraColumns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
} else {
fileListExtraColumnsBuilder_.clear();
}
if (fileActionsBuilder_ == null) {
fileActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
fileActionsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_FileTransferCapabilities_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.FileTransferCapabilities getDefaultInstanceForType() {
return org.yamcs.protobuf.FileTransferCapabilities.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.FileTransferCapabilities build() {
org.yamcs.protobuf.FileTransferCapabilities result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.FileTransferCapabilities buildPartial() {
org.yamcs.protobuf.FileTransferCapabilities result = new org.yamcs.protobuf.FileTransferCapabilities(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.upload_ = upload_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.download_ = download_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.remotePath_ = remotePath_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.fileList_ = fileList_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.hasTransferType_ = hasTransferType_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.pauseResume_ = pauseResume_;
to_bitField0_ |= 0x00000020;
}
if (fileListExtraColumnsBuilder_ == null) {
if (((bitField0_ & 0x00000040) != 0)) {
fileListExtraColumns_ = java.util.Collections.unmodifiableList(fileListExtraColumns_);
bitField0_ = (bitField0_ & ~0x00000040);
}
result.fileListExtraColumns_ = fileListExtraColumns_;
} else {
result.fileListExtraColumns_ = fileListExtraColumnsBuilder_.build();
}
if (fileActionsBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
fileActions_ = java.util.Collections.unmodifiableList(fileActions_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.fileActions_ = fileActions_;
} else {
result.fileActions_ = fileActionsBuilder_.build();
}
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.FileTransferCapabilities) {
return mergeFrom((org.yamcs.protobuf.FileTransferCapabilities)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.FileTransferCapabilities other) {
if (other == org.yamcs.protobuf.FileTransferCapabilities.getDefaultInstance()) return this;
if (other.hasUpload()) {
setUpload(other.getUpload());
}
if (other.hasDownload()) {
setDownload(other.getDownload());
}
if (other.hasRemotePath()) {
setRemotePath(other.getRemotePath());
}
if (other.hasFileList()) {
setFileList(other.getFileList());
}
if (other.hasHasTransferType()) {
setHasTransferType(other.getHasTransferType());
}
if (other.hasPauseResume()) {
setPauseResume(other.getPauseResume());
}
if (fileListExtraColumnsBuilder_ == null) {
if (!other.fileListExtraColumns_.isEmpty()) {
if (fileListExtraColumns_.isEmpty()) {
fileListExtraColumns_ = other.fileListExtraColumns_;
bitField0_ = (bitField0_ & ~0x00000040);
} else {
ensureFileListExtraColumnsIsMutable();
fileListExtraColumns_.addAll(other.fileListExtraColumns_);
}
onChanged();
}
} else {
if (!other.fileListExtraColumns_.isEmpty()) {
if (fileListExtraColumnsBuilder_.isEmpty()) {
fileListExtraColumnsBuilder_.dispose();
fileListExtraColumnsBuilder_ = null;
fileListExtraColumns_ = other.fileListExtraColumns_;
bitField0_ = (bitField0_ & ~0x00000040);
fileListExtraColumnsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFileListExtraColumnsFieldBuilder() : null;
} else {
fileListExtraColumnsBuilder_.addAllMessages(other.fileListExtraColumns_);
}
}
}
if (fileActionsBuilder_ == null) {
if (!other.fileActions_.isEmpty()) {
if (fileActions_.isEmpty()) {
fileActions_ = other.fileActions_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureFileActionsIsMutable();
fileActions_.addAll(other.fileActions_);
}
onChanged();
}
} else {
if (!other.fileActions_.isEmpty()) {
if (fileActionsBuilder_.isEmpty()) {
fileActionsBuilder_.dispose();
fileActionsBuilder_ = null;
fileActions_ = other.fileActions_;
bitField0_ = (bitField0_ & ~0x00000080);
fileActionsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFileActionsFieldBuilder() : null;
} else {
fileActionsBuilder_.addAllMessages(other.fileActions_);
}
}
}
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.FileTransferCapabilities parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.FileTransferCapabilities) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private boolean upload_ ;
/**
*
* Whether the transfer service supports uploads
*
*
* optional bool upload = 1;
* @return Whether the upload field is set.
*/
@java.lang.Override
public boolean hasUpload() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Whether the transfer service supports uploads
*
*
* optional bool upload = 1;
* @return The upload.
*/
@java.lang.Override
public boolean getUpload() {
return upload_;
}
/**
*
* Whether the transfer service supports uploads
*
*
* optional bool upload = 1;
* @param value The upload to set.
* @return This builder for chaining.
*/
public Builder setUpload(boolean value) {
bitField0_ |= 0x00000001;
upload_ = value;
onChanged();
return this;
}
/**
*
* Whether the transfer service supports uploads
*
*
* optional bool upload = 1;
* @return This builder for chaining.
*/
public Builder clearUpload() {
bitField0_ = (bitField0_ & ~0x00000001);
upload_ = false;
onChanged();
return this;
}
private boolean download_ ;
/**
*
* Whether the transfer service supports downloads
*
*
* optional bool download = 2;
* @return Whether the download field is set.
*/
@java.lang.Override
public boolean hasDownload() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Whether the transfer service supports downloads
*
*
* optional bool download = 2;
* @return The download.
*/
@java.lang.Override
public boolean getDownload() {
return download_;
}
/**
*
* Whether the transfer service supports downloads
*
*
* optional bool download = 2;
* @param value The download to set.
* @return This builder for chaining.
*/
public Builder setDownload(boolean value) {
bitField0_ |= 0x00000002;
download_ = value;
onChanged();
return this;
}
/**
*
* Whether the transfer service supports downloads
*
*
* optional bool download = 2;
* @return This builder for chaining.
*/
public Builder clearDownload() {
bitField0_ = (bitField0_ & ~0x00000002);
download_ = false;
onChanged();
return this;
}
private boolean remotePath_ ;
/**
*
* Whether the transfer service supports specifying an upload path
*
*
* optional bool remotePath = 4;
* @return Whether the remotePath field is set.
*/
@java.lang.Override
public boolean hasRemotePath() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Whether the transfer service supports specifying an upload path
*
*
* optional bool remotePath = 4;
* @return The remotePath.
*/
@java.lang.Override
public boolean getRemotePath() {
return remotePath_;
}
/**
*
* Whether the transfer service supports specifying an upload path
*
*
* optional bool remotePath = 4;
* @param value The remotePath to set.
* @return This builder for chaining.
*/
public Builder setRemotePath(boolean value) {
bitField0_ |= 0x00000004;
remotePath_ = value;
onChanged();
return this;
}
/**
*
* Whether the transfer service supports specifying an upload path
*
*
* optional bool remotePath = 4;
* @return This builder for chaining.
*/
public Builder clearRemotePath() {
bitField0_ = (bitField0_ & ~0x00000004);
remotePath_ = false;
onChanged();
return this;
}
private boolean fileList_ ;
/**
*
* Whether the transfer service supports remote file listings
*
*
* optional bool fileList = 5;
* @return Whether the fileList field is set.
*/
@java.lang.Override
public boolean hasFileList() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Whether the transfer service supports remote file listings
*
*
* optional bool fileList = 5;
* @return The fileList.
*/
@java.lang.Override
public boolean getFileList() {
return fileList_;
}
/**
*
* Whether the transfer service supports remote file listings
*
*
* optional bool fileList = 5;
* @param value The fileList to set.
* @return This builder for chaining.
*/
public Builder setFileList(boolean value) {
bitField0_ |= 0x00000008;
fileList_ = value;
onChanged();
return this;
}
/**
*
* Whether the transfer service supports remote file listings
*
*
* optional bool fileList = 5;
* @return This builder for chaining.
*/
public Builder clearFileList() {
bitField0_ = (bitField0_ & ~0x00000008);
fileList_ = false;
onChanged();
return this;
}
private boolean hasTransferType_ ;
/**
*
* Whether transfers contain a column describing the Transfer Type
*
*
* optional bool hasTransferType = 6;
* @return Whether the hasTransferType field is set.
*/
@java.lang.Override
public boolean hasHasTransferType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Whether transfers contain a column describing the Transfer Type
*
*
* optional bool hasTransferType = 6;
* @return The hasTransferType.
*/
@java.lang.Override
public boolean getHasTransferType() {
return hasTransferType_;
}
/**
*
* Whether transfers contain a column describing the Transfer Type
*
*
* optional bool hasTransferType = 6;
* @param value The hasTransferType to set.
* @return This builder for chaining.
*/
public Builder setHasTransferType(boolean value) {
bitField0_ |= 0x00000010;
hasTransferType_ = value;
onChanged();
return this;
}
/**
*
* Whether transfers contain a column describing the Transfer Type
*
*
* optional bool hasTransferType = 6;
* @return This builder for chaining.
*/
public Builder clearHasTransferType() {
bitField0_ = (bitField0_ & ~0x00000010);
hasTransferType_ = false;
onChanged();
return this;
}
private boolean pauseResume_ ;
/**
*
* Whether the transfer service supports pause/resume
*
*
* optional bool pauseResume = 9;
* @return Whether the pauseResume field is set.
*/
@java.lang.Override
public boolean hasPauseResume() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* Whether the transfer service supports pause/resume
*
*
* optional bool pauseResume = 9;
* @return The pauseResume.
*/
@java.lang.Override
public boolean getPauseResume() {
return pauseResume_;
}
/**
*
* Whether the transfer service supports pause/resume
*
*
* optional bool pauseResume = 9;
* @param value The pauseResume to set.
* @return This builder for chaining.
*/
public Builder setPauseResume(boolean value) {
bitField0_ |= 0x00000020;
pauseResume_ = value;
onChanged();
return this;
}
/**
*
* Whether the transfer service supports pause/resume
*
*
* optional bool pauseResume = 9;
* @return This builder for chaining.
*/
public Builder clearPauseResume() {
bitField0_ = (bitField0_ & ~0x00000020);
pauseResume_ = false;
onChanged();
return this;
}
private java.util.List fileListExtraColumns_ =
java.util.Collections.emptyList();
private void ensureFileListExtraColumnsIsMutable() {
if (!((bitField0_ & 0x00000040) != 0)) {
fileListExtraColumns_ = new java.util.ArrayList(fileListExtraColumns_);
bitField0_ |= 0x00000040;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ExtraColumnInfo, org.yamcs.protobuf.ExtraColumnInfo.Builder, org.yamcs.protobuf.ExtraColumnInfoOrBuilder> fileListExtraColumnsBuilder_;
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public java.util.List getFileListExtraColumnsList() {
if (fileListExtraColumnsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fileListExtraColumns_);
} else {
return fileListExtraColumnsBuilder_.getMessageList();
}
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public int getFileListExtraColumnsCount() {
if (fileListExtraColumnsBuilder_ == null) {
return fileListExtraColumns_.size();
} else {
return fileListExtraColumnsBuilder_.getCount();
}
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public org.yamcs.protobuf.ExtraColumnInfo getFileListExtraColumns(int index) {
if (fileListExtraColumnsBuilder_ == null) {
return fileListExtraColumns_.get(index);
} else {
return fileListExtraColumnsBuilder_.getMessage(index);
}
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public Builder setFileListExtraColumns(
int index, org.yamcs.protobuf.ExtraColumnInfo value) {
if (fileListExtraColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileListExtraColumnsIsMutable();
fileListExtraColumns_.set(index, value);
onChanged();
} else {
fileListExtraColumnsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public Builder setFileListExtraColumns(
int index, org.yamcs.protobuf.ExtraColumnInfo.Builder builderForValue) {
if (fileListExtraColumnsBuilder_ == null) {
ensureFileListExtraColumnsIsMutable();
fileListExtraColumns_.set(index, builderForValue.build());
onChanged();
} else {
fileListExtraColumnsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public Builder addFileListExtraColumns(org.yamcs.protobuf.ExtraColumnInfo value) {
if (fileListExtraColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileListExtraColumnsIsMutable();
fileListExtraColumns_.add(value);
onChanged();
} else {
fileListExtraColumnsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public Builder addFileListExtraColumns(
int index, org.yamcs.protobuf.ExtraColumnInfo value) {
if (fileListExtraColumnsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileListExtraColumnsIsMutable();
fileListExtraColumns_.add(index, value);
onChanged();
} else {
fileListExtraColumnsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public Builder addFileListExtraColumns(
org.yamcs.protobuf.ExtraColumnInfo.Builder builderForValue) {
if (fileListExtraColumnsBuilder_ == null) {
ensureFileListExtraColumnsIsMutable();
fileListExtraColumns_.add(builderForValue.build());
onChanged();
} else {
fileListExtraColumnsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public Builder addFileListExtraColumns(
int index, org.yamcs.protobuf.ExtraColumnInfo.Builder builderForValue) {
if (fileListExtraColumnsBuilder_ == null) {
ensureFileListExtraColumnsIsMutable();
fileListExtraColumns_.add(index, builderForValue.build());
onChanged();
} else {
fileListExtraColumnsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public Builder addAllFileListExtraColumns(
java.lang.Iterable extends org.yamcs.protobuf.ExtraColumnInfo> values) {
if (fileListExtraColumnsBuilder_ == null) {
ensureFileListExtraColumnsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fileListExtraColumns_);
onChanged();
} else {
fileListExtraColumnsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public Builder clearFileListExtraColumns() {
if (fileListExtraColumnsBuilder_ == null) {
fileListExtraColumns_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000040);
onChanged();
} else {
fileListExtraColumnsBuilder_.clear();
}
return this;
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public Builder removeFileListExtraColumns(int index) {
if (fileListExtraColumnsBuilder_ == null) {
ensureFileListExtraColumnsIsMutable();
fileListExtraColumns_.remove(index);
onChanged();
} else {
fileListExtraColumnsBuilder_.remove(index);
}
return this;
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public org.yamcs.protobuf.ExtraColumnInfo.Builder getFileListExtraColumnsBuilder(
int index) {
return getFileListExtraColumnsFieldBuilder().getBuilder(index);
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public org.yamcs.protobuf.ExtraColumnInfoOrBuilder getFileListExtraColumnsOrBuilder(
int index) {
if (fileListExtraColumnsBuilder_ == null) {
return fileListExtraColumns_.get(index); } else {
return fileListExtraColumnsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public java.util.List extends org.yamcs.protobuf.ExtraColumnInfoOrBuilder>
getFileListExtraColumnsOrBuilderList() {
if (fileListExtraColumnsBuilder_ != null) {
return fileListExtraColumnsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fileListExtraColumns_);
}
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public org.yamcs.protobuf.ExtraColumnInfo.Builder addFileListExtraColumnsBuilder() {
return getFileListExtraColumnsFieldBuilder().addBuilder(
org.yamcs.protobuf.ExtraColumnInfo.getDefaultInstance());
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public org.yamcs.protobuf.ExtraColumnInfo.Builder addFileListExtraColumnsBuilder(
int index) {
return getFileListExtraColumnsFieldBuilder().addBuilder(
index, org.yamcs.protobuf.ExtraColumnInfo.getDefaultInstance());
}
/**
*
* Additional columns to show in a file listing, where id
* is a key of ``RemoteFile.extra``
*
*
* repeated .yamcs.protobuf.filetransfer.ExtraColumnInfo fileListExtraColumns = 7;
*/
public java.util.List
getFileListExtraColumnsBuilderList() {
return getFileListExtraColumnsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ExtraColumnInfo, org.yamcs.protobuf.ExtraColumnInfo.Builder, org.yamcs.protobuf.ExtraColumnInfoOrBuilder>
getFileListExtraColumnsFieldBuilder() {
if (fileListExtraColumnsBuilder_ == null) {
fileListExtraColumnsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ExtraColumnInfo, org.yamcs.protobuf.ExtraColumnInfo.Builder, org.yamcs.protobuf.ExtraColumnInfoOrBuilder>(
fileListExtraColumns_,
((bitField0_ & 0x00000040) != 0),
getParentForChildren(),
isClean());
fileListExtraColumns_ = null;
}
return fileListExtraColumnsBuilder_;
}
private java.util.List fileActions_ =
java.util.Collections.emptyList();
private void ensureFileActionsIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
fileActions_ = new java.util.ArrayList(fileActions_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.actions.ActionInfo, org.yamcs.protobuf.actions.ActionInfo.Builder, org.yamcs.protobuf.actions.ActionInfoOrBuilder> fileActionsBuilder_;
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public java.util.List getFileActionsList() {
if (fileActionsBuilder_ == null) {
return java.util.Collections.unmodifiableList(fileActions_);
} else {
return fileActionsBuilder_.getMessageList();
}
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public int getFileActionsCount() {
if (fileActionsBuilder_ == null) {
return fileActions_.size();
} else {
return fileActionsBuilder_.getCount();
}
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public org.yamcs.protobuf.actions.ActionInfo getFileActions(int index) {
if (fileActionsBuilder_ == null) {
return fileActions_.get(index);
} else {
return fileActionsBuilder_.getMessage(index);
}
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public Builder setFileActions(
int index, org.yamcs.protobuf.actions.ActionInfo value) {
if (fileActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileActionsIsMutable();
fileActions_.set(index, value);
onChanged();
} else {
fileActionsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public Builder setFileActions(
int index, org.yamcs.protobuf.actions.ActionInfo.Builder builderForValue) {
if (fileActionsBuilder_ == null) {
ensureFileActionsIsMutable();
fileActions_.set(index, builderForValue.build());
onChanged();
} else {
fileActionsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public Builder addFileActions(org.yamcs.protobuf.actions.ActionInfo value) {
if (fileActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileActionsIsMutable();
fileActions_.add(value);
onChanged();
} else {
fileActionsBuilder_.addMessage(value);
}
return this;
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public Builder addFileActions(
int index, org.yamcs.protobuf.actions.ActionInfo value) {
if (fileActionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFileActionsIsMutable();
fileActions_.add(index, value);
onChanged();
} else {
fileActionsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public Builder addFileActions(
org.yamcs.protobuf.actions.ActionInfo.Builder builderForValue) {
if (fileActionsBuilder_ == null) {
ensureFileActionsIsMutable();
fileActions_.add(builderForValue.build());
onChanged();
} else {
fileActionsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public Builder addFileActions(
int index, org.yamcs.protobuf.actions.ActionInfo.Builder builderForValue) {
if (fileActionsBuilder_ == null) {
ensureFileActionsIsMutable();
fileActions_.add(index, builderForValue.build());
onChanged();
} else {
fileActionsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public Builder addAllFileActions(
java.lang.Iterable extends org.yamcs.protobuf.actions.ActionInfo> values) {
if (fileActionsBuilder_ == null) {
ensureFileActionsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, fileActions_);
onChanged();
} else {
fileActionsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public Builder clearFileActions() {
if (fileActionsBuilder_ == null) {
fileActions_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
fileActionsBuilder_.clear();
}
return this;
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public Builder removeFileActions(int index) {
if (fileActionsBuilder_ == null) {
ensureFileActionsIsMutable();
fileActions_.remove(index);
onChanged();
} else {
fileActionsBuilder_.remove(index);
}
return this;
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public org.yamcs.protobuf.actions.ActionInfo.Builder getFileActionsBuilder(
int index) {
return getFileActionsFieldBuilder().getBuilder(index);
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public org.yamcs.protobuf.actions.ActionInfoOrBuilder getFileActionsOrBuilder(
int index) {
if (fileActionsBuilder_ == null) {
return fileActions_.get(index); } else {
return fileActionsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public java.util.List extends org.yamcs.protobuf.actions.ActionInfoOrBuilder>
getFileActionsOrBuilderList() {
if (fileActionsBuilder_ != null) {
return fileActionsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(fileActions_);
}
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public org.yamcs.protobuf.actions.ActionInfo.Builder addFileActionsBuilder() {
return getFileActionsFieldBuilder().addBuilder(
org.yamcs.protobuf.actions.ActionInfo.getDefaultInstance());
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public org.yamcs.protobuf.actions.ActionInfo.Builder addFileActionsBuilder(
int index) {
return getFileActionsFieldBuilder().addBuilder(
index, org.yamcs.protobuf.actions.ActionInfo.getDefaultInstance());
}
/**
*
* Additional actions that may be executed on remote files
*
*
* repeated .yamcs.protobuf.actions.ActionInfo fileActions = 8;
*/
public java.util.List
getFileActionsBuilderList() {
return getFileActionsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.actions.ActionInfo, org.yamcs.protobuf.actions.ActionInfo.Builder, org.yamcs.protobuf.actions.ActionInfoOrBuilder>
getFileActionsFieldBuilder() {
if (fileActionsBuilder_ == null) {
fileActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.actions.ActionInfo, org.yamcs.protobuf.actions.ActionInfo.Builder, org.yamcs.protobuf.actions.ActionInfoOrBuilder>(
fileActions_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
fileActions_ = null;
}
return fileActionsBuilder_;
}
@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.FileTransferCapabilities)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.filetransfer.FileTransferCapabilities)
private static final org.yamcs.protobuf.FileTransferCapabilities DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.FileTransferCapabilities();
}
public static org.yamcs.protobuf.FileTransferCapabilities getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public FileTransferCapabilities parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FileTransferCapabilities(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.FileTransferCapabilities getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy