
org.yamcs.protobuf.TransferInfo 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.TransferInfo}
*/
public final class TransferInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.filetransfer.TransferInfo)
TransferInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use TransferInfo.newBuilder() to construct.
private TransferInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TransferInfo() {
state_ = 1;
bucket_ = "";
objectName_ = "";
remotePath_ = "";
direction_ = 1;
failureReason_ = "";
transferType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TransferInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TransferInfo(
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;
id_ = input.readUInt64();
break;
}
case 18: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = startTime_.toBuilder();
}
startTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(startTime_);
startTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.TransferState value = org.yamcs.protobuf.TransferState.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(3, rawValue);
} else {
bitField0_ |= 0x00000004;
state_ = rawValue;
}
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
bucket_ = bs;
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
objectName_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
remotePath_ = bs;
break;
}
case 56: {
int rawValue = input.readEnum();
@SuppressWarnings("deprecation")
org.yamcs.protobuf.TransferDirection value = org.yamcs.protobuf.TransferDirection.valueOf(rawValue);
if (value == null) {
unknownFields.mergeVarintField(7, rawValue);
} else {
bitField0_ |= 0x00000040;
direction_ = rawValue;
}
break;
}
case 64: {
bitField0_ |= 0x00000080;
totalSize_ = input.readUInt64();
break;
}
case 72: {
bitField0_ |= 0x00000100;
sizeTransferred_ = input.readUInt64();
break;
}
case 80: {
bitField0_ |= 0x00000200;
reliable_ = input.readBool();
break;
}
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000400;
failureReason_ = bs;
break;
}
case 98: {
org.yamcs.protobuf.TransactionId.Builder subBuilder = null;
if (((bitField0_ & 0x00000800) != 0)) {
subBuilder = transactionId_.toBuilder();
}
transactionId_ = input.readMessage(org.yamcs.protobuf.TransactionId.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(transactionId_);
transactionId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000800;
break;
}
case 106: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00001000) != 0)) {
subBuilder = creationTime_.toBuilder();
}
creationTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(creationTime_);
creationTime_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00001000;
break;
}
case 114: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00002000;
transferType_ = bs;
break;
}
case 122: {
org.yamcs.protobuf.EntityInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00004000) != 0)) {
subBuilder = localEntity_.toBuilder();
}
localEntity_ = input.readMessage(org.yamcs.protobuf.EntityInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(localEntity_);
localEntity_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00004000;
break;
}
case 130: {
org.yamcs.protobuf.EntityInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00008000) != 0)) {
subBuilder = remoteEntity_.toBuilder();
}
remoteEntity_ = input.readMessage(org.yamcs.protobuf.EntityInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(remoteEntity_);
remoteEntity_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00008000;
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_TransferInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_TransferInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.TransferInfo.class, org.yamcs.protobuf.TransferInfo.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private long id_;
/**
*
*unique identifier assigned by the file transfer service
*
*
* optional uint64 id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*unique identifier assigned by the file transfer service
*
*
* optional uint64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
public static final int STARTTIME_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp startTime_;
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
* @return Whether the startTime field is set.
*/
@java.lang.Override
public boolean hasStartTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
* @return The startTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStartTime() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
public static final int STATE_FIELD_NUMBER = 3;
private int state_;
/**
* optional .yamcs.protobuf.filetransfer.TransferState state = 3;
* @return Whether the state field is set.
*/
@java.lang.Override public boolean hasState() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.filetransfer.TransferState state = 3;
* @return The state.
*/
@java.lang.Override public org.yamcs.protobuf.TransferState getState() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.TransferState result = org.yamcs.protobuf.TransferState.valueOf(state_);
return result == null ? org.yamcs.protobuf.TransferState.RUNNING : result;
}
public static final int BUCKET_FIELD_NUMBER = 4;
private volatile java.lang.Object bucket_;
/**
* optional string bucket = 4;
* @return Whether the bucket field is set.
*/
@java.lang.Override
public boolean hasBucket() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string bucket = 4;
* @return The bucket.
*/
@java.lang.Override
public java.lang.String getBucket() {
java.lang.Object ref = bucket_;
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()) {
bucket_ = s;
}
return s;
}
}
/**
* optional string bucket = 4;
* @return The bytes for bucket.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBucketBytes() {
java.lang.Object ref = bucket_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bucket_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OBJECTNAME_FIELD_NUMBER = 5;
private volatile java.lang.Object objectName_;
/**
* optional string objectName = 5;
* @return Whether the objectName field is set.
*/
@java.lang.Override
public boolean hasObjectName() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string objectName = 5;
* @return The objectName.
*/
@java.lang.Override
public java.lang.String getObjectName() {
java.lang.Object ref = objectName_;
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()) {
objectName_ = s;
}
return s;
}
}
/**
* optional string objectName = 5;
* @return The bytes for objectName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getObjectNameBytes() {
java.lang.Object ref = objectName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
objectName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int REMOTEPATH_FIELD_NUMBER = 6;
private volatile java.lang.Object remotePath_;
/**
* optional string remotePath = 6;
* @return Whether the remotePath field is set.
*/
@java.lang.Override
public boolean hasRemotePath() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string remotePath = 6;
* @return The remotePath.
*/
@java.lang.Override
public java.lang.String getRemotePath() {
java.lang.Object ref = remotePath_;
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()) {
remotePath_ = s;
}
return s;
}
}
/**
* optional string remotePath = 6;
* @return The bytes for remotePath.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getRemotePathBytes() {
java.lang.Object ref = remotePath_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remotePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DIRECTION_FIELD_NUMBER = 7;
private int direction_;
/**
* optional .yamcs.protobuf.filetransfer.TransferDirection direction = 7;
* @return Whether the direction field is set.
*/
@java.lang.Override public boolean hasDirection() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .yamcs.protobuf.filetransfer.TransferDirection direction = 7;
* @return The direction.
*/
@java.lang.Override public org.yamcs.protobuf.TransferDirection getDirection() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.TransferDirection result = org.yamcs.protobuf.TransferDirection.valueOf(direction_);
return result == null ? org.yamcs.protobuf.TransferDirection.UPLOAD : result;
}
public static final int TOTALSIZE_FIELD_NUMBER = 8;
private long totalSize_;
/**
* optional uint64 totalSize = 8;
* @return Whether the totalSize field is set.
*/
@java.lang.Override
public boolean hasTotalSize() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint64 totalSize = 8;
* @return The totalSize.
*/
@java.lang.Override
public long getTotalSize() {
return totalSize_;
}
public static final int SIZETRANSFERRED_FIELD_NUMBER = 9;
private long sizeTransferred_;
/**
* optional uint64 sizeTransferred = 9;
* @return Whether the sizeTransferred field is set.
*/
@java.lang.Override
public boolean hasSizeTransferred() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional uint64 sizeTransferred = 9;
* @return The sizeTransferred.
*/
@java.lang.Override
public long getSizeTransferred() {
return sizeTransferred_;
}
public static final int RELIABLE_FIELD_NUMBER = 10;
private boolean reliable_;
/**
*
*reliable = true -> class 2 transfer
*reliable = false -> class 1 transfer
*
*
* optional bool reliable = 10;
* @return Whether the reliable field is set.
*/
@java.lang.Override
public boolean hasReliable() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*reliable = true -> class 2 transfer
*reliable = false -> class 1 transfer
*
*
* optional bool reliable = 10;
* @return The reliable.
*/
@java.lang.Override
public boolean getReliable() {
return reliable_;
}
public static final int FAILUREREASON_FIELD_NUMBER = 11;
private volatile java.lang.Object failureReason_;
/**
*
*in case the transcation is failed, this provides more information
*
*
* optional string failureReason = 11;
* @return Whether the failureReason field is set.
*/
@java.lang.Override
public boolean hasFailureReason() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
*in case the transcation is failed, this provides more information
*
*
* optional string failureReason = 11;
* @return The failureReason.
*/
@java.lang.Override
public java.lang.String getFailureReason() {
java.lang.Object ref = failureReason_;
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()) {
failureReason_ = s;
}
return s;
}
}
/**
*
*in case the transcation is failed, this provides more information
*
*
* optional string failureReason = 11;
* @return The bytes for failureReason.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFailureReasonBytes() {
java.lang.Object ref = failureReason_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
failureReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TRANSACTIONID_FIELD_NUMBER = 12;
private org.yamcs.protobuf.TransactionId transactionId_;
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
* @return Whether the transactionId field is set.
*/
@java.lang.Override
public boolean hasTransactionId() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
* @return The transactionId.
*/
@java.lang.Override
public org.yamcs.protobuf.TransactionId getTransactionId() {
return transactionId_ == null ? org.yamcs.protobuf.TransactionId.getDefaultInstance() : transactionId_;
}
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
*/
@java.lang.Override
public org.yamcs.protobuf.TransactionIdOrBuilder getTransactionIdOrBuilder() {
return transactionId_ == null ? org.yamcs.protobuf.TransactionId.getDefaultInstance() : transactionId_;
}
public static final int CREATIONTIME_FIELD_NUMBER = 13;
private com.google.protobuf.Timestamp creationTime_;
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
* @return Whether the creationTime field is set.
*/
@java.lang.Override
public boolean hasCreationTime() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
* @return The creationTime.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getCreationTime() {
return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
}
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() {
return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
}
public static final int TRANSFERTYPE_FIELD_NUMBER = 14;
private volatile java.lang.Object transferType_;
/**
*
* depending on the implementation, can mean normal file transfer, directory listing request, file download request, etc.
*
*
* optional string transferType = 14;
* @return Whether the transferType field is set.
*/
@java.lang.Override
public boolean hasTransferType() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* depending on the implementation, can mean normal file transfer, directory listing request, file download request, etc.
*
*
* optional string transferType = 14;
* @return The transferType.
*/
@java.lang.Override
public java.lang.String getTransferType() {
java.lang.Object ref = transferType_;
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()) {
transferType_ = s;
}
return s;
}
}
/**
*
* depending on the implementation, can mean normal file transfer, directory listing request, file download request, etc.
*
*
* optional string transferType = 14;
* @return The bytes for transferType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTransferTypeBytes() {
java.lang.Object ref = transferType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transferType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LOCALENTITY_FIELD_NUMBER = 15;
private org.yamcs.protobuf.EntityInfo localEntity_;
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
* @return Whether the localEntity field is set.
*/
@java.lang.Override
public boolean hasLocalEntity() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
* @return The localEntity.
*/
@java.lang.Override
public org.yamcs.protobuf.EntityInfo getLocalEntity() {
return localEntity_ == null ? org.yamcs.protobuf.EntityInfo.getDefaultInstance() : localEntity_;
}
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
*/
@java.lang.Override
public org.yamcs.protobuf.EntityInfoOrBuilder getLocalEntityOrBuilder() {
return localEntity_ == null ? org.yamcs.protobuf.EntityInfo.getDefaultInstance() : localEntity_;
}
public static final int REMOTEENTITY_FIELD_NUMBER = 16;
private org.yamcs.protobuf.EntityInfo remoteEntity_;
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
* @return Whether the remoteEntity field is set.
*/
@java.lang.Override
public boolean hasRemoteEntity() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
* @return The remoteEntity.
*/
@java.lang.Override
public org.yamcs.protobuf.EntityInfo getRemoteEntity() {
return remoteEntity_ == null ? org.yamcs.protobuf.EntityInfo.getDefaultInstance() : remoteEntity_;
}
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
*/
@java.lang.Override
public org.yamcs.protobuf.EntityInfoOrBuilder getRemoteEntityOrBuilder() {
return remoteEntity_ == null ? org.yamcs.protobuf.EntityInfo.getDefaultInstance() : remoteEntity_;
}
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.writeUInt64(1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getStartTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeEnum(3, state_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, bucket_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, objectName_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, remotePath_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeEnum(7, direction_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeUInt64(8, totalSize_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeUInt64(9, sizeTransferred_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeBool(10, reliable_);
}
if (((bitField0_ & 0x00000400) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, failureReason_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeMessage(12, getTransactionId());
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeMessage(13, getCreationTime());
}
if (((bitField0_ & 0x00002000) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 14, transferType_);
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeMessage(15, getLocalEntity());
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeMessage(16, getRemoteEntity());
}
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
.computeUInt64Size(1, id_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStartTime());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, state_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, bucket_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, objectName_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, remotePath_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(7, direction_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, totalSize_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(9, sizeTransferred_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(10, reliable_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, failureReason_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(12, getTransactionId());
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(13, getCreationTime());
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, transferType_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, getLocalEntity());
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getRemoteEntity());
}
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.TransferInfo)) {
return super.equals(obj);
}
org.yamcs.protobuf.TransferInfo other = (org.yamcs.protobuf.TransferInfo) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (getId()
!= other.getId()) return false;
}
if (hasStartTime() != other.hasStartTime()) return false;
if (hasStartTime()) {
if (!getStartTime()
.equals(other.getStartTime())) return false;
}
if (hasState() != other.hasState()) return false;
if (hasState()) {
if (state_ != other.state_) return false;
}
if (hasBucket() != other.hasBucket()) return false;
if (hasBucket()) {
if (!getBucket()
.equals(other.getBucket())) return false;
}
if (hasObjectName() != other.hasObjectName()) return false;
if (hasObjectName()) {
if (!getObjectName()
.equals(other.getObjectName())) return false;
}
if (hasRemotePath() != other.hasRemotePath()) return false;
if (hasRemotePath()) {
if (!getRemotePath()
.equals(other.getRemotePath())) return false;
}
if (hasDirection() != other.hasDirection()) return false;
if (hasDirection()) {
if (direction_ != other.direction_) return false;
}
if (hasTotalSize() != other.hasTotalSize()) return false;
if (hasTotalSize()) {
if (getTotalSize()
!= other.getTotalSize()) return false;
}
if (hasSizeTransferred() != other.hasSizeTransferred()) return false;
if (hasSizeTransferred()) {
if (getSizeTransferred()
!= other.getSizeTransferred()) return false;
}
if (hasReliable() != other.hasReliable()) return false;
if (hasReliable()) {
if (getReliable()
!= other.getReliable()) return false;
}
if (hasFailureReason() != other.hasFailureReason()) return false;
if (hasFailureReason()) {
if (!getFailureReason()
.equals(other.getFailureReason())) return false;
}
if (hasTransactionId() != other.hasTransactionId()) return false;
if (hasTransactionId()) {
if (!getTransactionId()
.equals(other.getTransactionId())) return false;
}
if (hasCreationTime() != other.hasCreationTime()) return false;
if (hasCreationTime()) {
if (!getCreationTime()
.equals(other.getCreationTime())) return false;
}
if (hasTransferType() != other.hasTransferType()) return false;
if (hasTransferType()) {
if (!getTransferType()
.equals(other.getTransferType())) return false;
}
if (hasLocalEntity() != other.hasLocalEntity()) return false;
if (hasLocalEntity()) {
if (!getLocalEntity()
.equals(other.getLocalEntity())) return false;
}
if (hasRemoteEntity() != other.hasRemoteEntity()) return false;
if (hasRemoteEntity()) {
if (!getRemoteEntity()
.equals(other.getRemoteEntity())) 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 (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getId());
}
if (hasStartTime()) {
hash = (37 * hash) + STARTTIME_FIELD_NUMBER;
hash = (53 * hash) + getStartTime().hashCode();
}
if (hasState()) {
hash = (37 * hash) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
}
if (hasBucket()) {
hash = (37 * hash) + BUCKET_FIELD_NUMBER;
hash = (53 * hash) + getBucket().hashCode();
}
if (hasObjectName()) {
hash = (37 * hash) + OBJECTNAME_FIELD_NUMBER;
hash = (53 * hash) + getObjectName().hashCode();
}
if (hasRemotePath()) {
hash = (37 * hash) + REMOTEPATH_FIELD_NUMBER;
hash = (53 * hash) + getRemotePath().hashCode();
}
if (hasDirection()) {
hash = (37 * hash) + DIRECTION_FIELD_NUMBER;
hash = (53 * hash) + direction_;
}
if (hasTotalSize()) {
hash = (37 * hash) + TOTALSIZE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTotalSize());
}
if (hasSizeTransferred()) {
hash = (37 * hash) + SIZETRANSFERRED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSizeTransferred());
}
if (hasReliable()) {
hash = (37 * hash) + RELIABLE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getReliable());
}
if (hasFailureReason()) {
hash = (37 * hash) + FAILUREREASON_FIELD_NUMBER;
hash = (53 * hash) + getFailureReason().hashCode();
}
if (hasTransactionId()) {
hash = (37 * hash) + TRANSACTIONID_FIELD_NUMBER;
hash = (53 * hash) + getTransactionId().hashCode();
}
if (hasCreationTime()) {
hash = (37 * hash) + CREATIONTIME_FIELD_NUMBER;
hash = (53 * hash) + getCreationTime().hashCode();
}
if (hasTransferType()) {
hash = (37 * hash) + TRANSFERTYPE_FIELD_NUMBER;
hash = (53 * hash) + getTransferType().hashCode();
}
if (hasLocalEntity()) {
hash = (37 * hash) + LOCALENTITY_FIELD_NUMBER;
hash = (53 * hash) + getLocalEntity().hashCode();
}
if (hasRemoteEntity()) {
hash = (37 * hash) + REMOTEENTITY_FIELD_NUMBER;
hash = (53 * hash) + getRemoteEntity().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.TransferInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TransferInfo 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.TransferInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TransferInfo 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.TransferInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.TransferInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.TransferInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TransferInfo 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.TransferInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TransferInfo 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.TransferInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.TransferInfo 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.TransferInfo 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.TransferInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.filetransfer.TransferInfo)
org.yamcs.protobuf.TransferInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_TransferInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_TransferInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.TransferInfo.class, org.yamcs.protobuf.TransferInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.TransferInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStartTimeFieldBuilder();
getTransactionIdFieldBuilder();
getCreationTimeFieldBuilder();
getLocalEntityFieldBuilder();
getRemoteEntityFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0L;
bitField0_ = (bitField0_ & ~0x00000001);
if (startTimeBuilder_ == null) {
startTime_ = null;
} else {
startTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
state_ = 1;
bitField0_ = (bitField0_ & ~0x00000004);
bucket_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
objectName_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
remotePath_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
direction_ = 1;
bitField0_ = (bitField0_ & ~0x00000040);
totalSize_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
sizeTransferred_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
reliable_ = false;
bitField0_ = (bitField0_ & ~0x00000200);
failureReason_ = "";
bitField0_ = (bitField0_ & ~0x00000400);
if (transactionIdBuilder_ == null) {
transactionId_ = null;
} else {
transactionIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
if (creationTimeBuilder_ == null) {
creationTime_ = null;
} else {
creationTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
transferType_ = "";
bitField0_ = (bitField0_ & ~0x00002000);
if (localEntityBuilder_ == null) {
localEntity_ = null;
} else {
localEntityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00004000);
if (remoteEntityBuilder_ == null) {
remoteEntity_ = null;
} else {
remoteEntityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_TransferInfo_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.TransferInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.TransferInfo.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.TransferInfo build() {
org.yamcs.protobuf.TransferInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.TransferInfo buildPartial() {
org.yamcs.protobuf.TransferInfo result = new org.yamcs.protobuf.TransferInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.id_ = id_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (startTimeBuilder_ == null) {
result.startTime_ = startTime_;
} else {
result.startTime_ = startTimeBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.state_ = state_;
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.bucket_ = bucket_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.objectName_ = objectName_;
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.remotePath_ = remotePath_;
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.direction_ = direction_;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.totalSize_ = totalSize_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.sizeTransferred_ = sizeTransferred_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
result.reliable_ = reliable_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
to_bitField0_ |= 0x00000400;
}
result.failureReason_ = failureReason_;
if (((from_bitField0_ & 0x00000800) != 0)) {
if (transactionIdBuilder_ == null) {
result.transactionId_ = transactionId_;
} else {
result.transactionId_ = transactionIdBuilder_.build();
}
to_bitField0_ |= 0x00000800;
}
if (((from_bitField0_ & 0x00001000) != 0)) {
if (creationTimeBuilder_ == null) {
result.creationTime_ = creationTime_;
} else {
result.creationTime_ = creationTimeBuilder_.build();
}
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
to_bitField0_ |= 0x00002000;
}
result.transferType_ = transferType_;
if (((from_bitField0_ & 0x00004000) != 0)) {
if (localEntityBuilder_ == null) {
result.localEntity_ = localEntity_;
} else {
result.localEntity_ = localEntityBuilder_.build();
}
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
if (remoteEntityBuilder_ == null) {
result.remoteEntity_ = remoteEntity_;
} else {
result.remoteEntity_ = remoteEntityBuilder_.build();
}
to_bitField0_ |= 0x00008000;
}
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.TransferInfo) {
return mergeFrom((org.yamcs.protobuf.TransferInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.TransferInfo other) {
if (other == org.yamcs.protobuf.TransferInfo.getDefaultInstance()) return this;
if (other.hasId()) {
setId(other.getId());
}
if (other.hasStartTime()) {
mergeStartTime(other.getStartTime());
}
if (other.hasState()) {
setState(other.getState());
}
if (other.hasBucket()) {
bitField0_ |= 0x00000008;
bucket_ = other.bucket_;
onChanged();
}
if (other.hasObjectName()) {
bitField0_ |= 0x00000010;
objectName_ = other.objectName_;
onChanged();
}
if (other.hasRemotePath()) {
bitField0_ |= 0x00000020;
remotePath_ = other.remotePath_;
onChanged();
}
if (other.hasDirection()) {
setDirection(other.getDirection());
}
if (other.hasTotalSize()) {
setTotalSize(other.getTotalSize());
}
if (other.hasSizeTransferred()) {
setSizeTransferred(other.getSizeTransferred());
}
if (other.hasReliable()) {
setReliable(other.getReliable());
}
if (other.hasFailureReason()) {
bitField0_ |= 0x00000400;
failureReason_ = other.failureReason_;
onChanged();
}
if (other.hasTransactionId()) {
mergeTransactionId(other.getTransactionId());
}
if (other.hasCreationTime()) {
mergeCreationTime(other.getCreationTime());
}
if (other.hasTransferType()) {
bitField0_ |= 0x00002000;
transferType_ = other.transferType_;
onChanged();
}
if (other.hasLocalEntity()) {
mergeLocalEntity(other.getLocalEntity());
}
if (other.hasRemoteEntity()) {
mergeRemoteEntity(other.getRemoteEntity());
}
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.TransferInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.TransferInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private long id_ ;
/**
*
*unique identifier assigned by the file transfer service
*
*
* optional uint64 id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*unique identifier assigned by the file transfer service
*
*
* optional uint64 id = 1;
* @return The id.
*/
@java.lang.Override
public long getId() {
return id_;
}
/**
*
*unique identifier assigned by the file transfer service
*
*
* optional uint64 id = 1;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(long value) {
bitField0_ |= 0x00000001;
id_ = value;
onChanged();
return this;
}
/**
*
*unique identifier assigned by the file transfer service
*
*
* optional uint64 id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
bitField0_ = (bitField0_ & ~0x00000001);
id_ = 0L;
onChanged();
return this;
}
private com.google.protobuf.Timestamp startTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_;
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
* @return Whether the startTime field is set.
*/
public boolean hasStartTime() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
* @return The startTime.
*/
public com.google.protobuf.Timestamp getStartTime() {
if (startTimeBuilder_ == null) {
return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
} else {
return startTimeBuilder_.getMessage();
}
}
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
*/
public Builder setStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
startTime_ = value;
onChanged();
} else {
startTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
*/
public Builder setStartTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (startTimeBuilder_ == null) {
startTime_ = builderForValue.build();
onChanged();
} else {
startTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
*/
public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
if (startTimeBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
startTime_ != null &&
startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
startTime_ =
com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial();
} else {
startTime_ = value;
}
onChanged();
} else {
startTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
*/
public Builder clearStartTime() {
if (startTimeBuilder_ == null) {
startTime_ = null;
onChanged();
} else {
startTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
*/
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStartTimeFieldBuilder().getBuilder();
}
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
*/
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
if (startTimeBuilder_ != null) {
return startTimeBuilder_.getMessageOrBuilder();
} else {
return startTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
}
}
/**
*
*when the transfer has started. Note that this will not be set for QUEUED transfers.
*
*
* optional .google.protobuf.Timestamp startTime = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getStartTimeFieldBuilder() {
if (startTimeBuilder_ == null) {
startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getStartTime(),
getParentForChildren(),
isClean());
startTime_ = null;
}
return startTimeBuilder_;
}
private int state_ = 1;
/**
* optional .yamcs.protobuf.filetransfer.TransferState state = 3;
* @return Whether the state field is set.
*/
@java.lang.Override public boolean hasState() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .yamcs.protobuf.filetransfer.TransferState state = 3;
* @return The state.
*/
@java.lang.Override
public org.yamcs.protobuf.TransferState getState() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.TransferState result = org.yamcs.protobuf.TransferState.valueOf(state_);
return result == null ? org.yamcs.protobuf.TransferState.RUNNING : result;
}
/**
* optional .yamcs.protobuf.filetransfer.TransferState state = 3;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(org.yamcs.protobuf.TransferState value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
state_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .yamcs.protobuf.filetransfer.TransferState state = 3;
* @return This builder for chaining.
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000004);
state_ = 1;
onChanged();
return this;
}
private java.lang.Object bucket_ = "";
/**
* optional string bucket = 4;
* @return Whether the bucket field is set.
*/
public boolean hasBucket() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string bucket = 4;
* @return The bucket.
*/
public java.lang.String getBucket() {
java.lang.Object ref = bucket_;
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()) {
bucket_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string bucket = 4;
* @return The bytes for bucket.
*/
public com.google.protobuf.ByteString
getBucketBytes() {
java.lang.Object ref = bucket_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
bucket_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string bucket = 4;
* @param value The bucket to set.
* @return This builder for chaining.
*/
public Builder setBucket(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
bucket_ = value;
onChanged();
return this;
}
/**
* optional string bucket = 4;
* @return This builder for chaining.
*/
public Builder clearBucket() {
bitField0_ = (bitField0_ & ~0x00000008);
bucket_ = getDefaultInstance().getBucket();
onChanged();
return this;
}
/**
* optional string bucket = 4;
* @param value The bytes for bucket to set.
* @return This builder for chaining.
*/
public Builder setBucketBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
bucket_ = value;
onChanged();
return this;
}
private java.lang.Object objectName_ = "";
/**
* optional string objectName = 5;
* @return Whether the objectName field is set.
*/
public boolean hasObjectName() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string objectName = 5;
* @return The objectName.
*/
public java.lang.String getObjectName() {
java.lang.Object ref = objectName_;
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()) {
objectName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string objectName = 5;
* @return The bytes for objectName.
*/
public com.google.protobuf.ByteString
getObjectNameBytes() {
java.lang.Object ref = objectName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
objectName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string objectName = 5;
* @param value The objectName to set.
* @return This builder for chaining.
*/
public Builder setObjectName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
objectName_ = value;
onChanged();
return this;
}
/**
* optional string objectName = 5;
* @return This builder for chaining.
*/
public Builder clearObjectName() {
bitField0_ = (bitField0_ & ~0x00000010);
objectName_ = getDefaultInstance().getObjectName();
onChanged();
return this;
}
/**
* optional string objectName = 5;
* @param value The bytes for objectName to set.
* @return This builder for chaining.
*/
public Builder setObjectNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
objectName_ = value;
onChanged();
return this;
}
private java.lang.Object remotePath_ = "";
/**
* optional string remotePath = 6;
* @return Whether the remotePath field is set.
*/
public boolean hasRemotePath() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string remotePath = 6;
* @return The remotePath.
*/
public java.lang.String getRemotePath() {
java.lang.Object ref = remotePath_;
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()) {
remotePath_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string remotePath = 6;
* @return The bytes for remotePath.
*/
public com.google.protobuf.ByteString
getRemotePathBytes() {
java.lang.Object ref = remotePath_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
remotePath_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string remotePath = 6;
* @param value The remotePath to set.
* @return This builder for chaining.
*/
public Builder setRemotePath(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
remotePath_ = value;
onChanged();
return this;
}
/**
* optional string remotePath = 6;
* @return This builder for chaining.
*/
public Builder clearRemotePath() {
bitField0_ = (bitField0_ & ~0x00000020);
remotePath_ = getDefaultInstance().getRemotePath();
onChanged();
return this;
}
/**
* optional string remotePath = 6;
* @param value The bytes for remotePath to set.
* @return This builder for chaining.
*/
public Builder setRemotePathBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
remotePath_ = value;
onChanged();
return this;
}
private int direction_ = 1;
/**
* optional .yamcs.protobuf.filetransfer.TransferDirection direction = 7;
* @return Whether the direction field is set.
*/
@java.lang.Override public boolean hasDirection() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional .yamcs.protobuf.filetransfer.TransferDirection direction = 7;
* @return The direction.
*/
@java.lang.Override
public org.yamcs.protobuf.TransferDirection getDirection() {
@SuppressWarnings("deprecation")
org.yamcs.protobuf.TransferDirection result = org.yamcs.protobuf.TransferDirection.valueOf(direction_);
return result == null ? org.yamcs.protobuf.TransferDirection.UPLOAD : result;
}
/**
* optional .yamcs.protobuf.filetransfer.TransferDirection direction = 7;
* @param value The direction to set.
* @return This builder for chaining.
*/
public Builder setDirection(org.yamcs.protobuf.TransferDirection value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
direction_ = value.getNumber();
onChanged();
return this;
}
/**
* optional .yamcs.protobuf.filetransfer.TransferDirection direction = 7;
* @return This builder for chaining.
*/
public Builder clearDirection() {
bitField0_ = (bitField0_ & ~0x00000040);
direction_ = 1;
onChanged();
return this;
}
private long totalSize_ ;
/**
* optional uint64 totalSize = 8;
* @return Whether the totalSize field is set.
*/
@java.lang.Override
public boolean hasTotalSize() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint64 totalSize = 8;
* @return The totalSize.
*/
@java.lang.Override
public long getTotalSize() {
return totalSize_;
}
/**
* optional uint64 totalSize = 8;
* @param value The totalSize to set.
* @return This builder for chaining.
*/
public Builder setTotalSize(long value) {
bitField0_ |= 0x00000080;
totalSize_ = value;
onChanged();
return this;
}
/**
* optional uint64 totalSize = 8;
* @return This builder for chaining.
*/
public Builder clearTotalSize() {
bitField0_ = (bitField0_ & ~0x00000080);
totalSize_ = 0L;
onChanged();
return this;
}
private long sizeTransferred_ ;
/**
* optional uint64 sizeTransferred = 9;
* @return Whether the sizeTransferred field is set.
*/
@java.lang.Override
public boolean hasSizeTransferred() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional uint64 sizeTransferred = 9;
* @return The sizeTransferred.
*/
@java.lang.Override
public long getSizeTransferred() {
return sizeTransferred_;
}
/**
* optional uint64 sizeTransferred = 9;
* @param value The sizeTransferred to set.
* @return This builder for chaining.
*/
public Builder setSizeTransferred(long value) {
bitField0_ |= 0x00000100;
sizeTransferred_ = value;
onChanged();
return this;
}
/**
* optional uint64 sizeTransferred = 9;
* @return This builder for chaining.
*/
public Builder clearSizeTransferred() {
bitField0_ = (bitField0_ & ~0x00000100);
sizeTransferred_ = 0L;
onChanged();
return this;
}
private boolean reliable_ ;
/**
*
*reliable = true -> class 2 transfer
*reliable = false -> class 1 transfer
*
*
* optional bool reliable = 10;
* @return Whether the reliable field is set.
*/
@java.lang.Override
public boolean hasReliable() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
*reliable = true -> class 2 transfer
*reliable = false -> class 1 transfer
*
*
* optional bool reliable = 10;
* @return The reliable.
*/
@java.lang.Override
public boolean getReliable() {
return reliable_;
}
/**
*
*reliable = true -> class 2 transfer
*reliable = false -> class 1 transfer
*
*
* optional bool reliable = 10;
* @param value The reliable to set.
* @return This builder for chaining.
*/
public Builder setReliable(boolean value) {
bitField0_ |= 0x00000200;
reliable_ = value;
onChanged();
return this;
}
/**
*
*reliable = true -> class 2 transfer
*reliable = false -> class 1 transfer
*
*
* optional bool reliable = 10;
* @return This builder for chaining.
*/
public Builder clearReliable() {
bitField0_ = (bitField0_ & ~0x00000200);
reliable_ = false;
onChanged();
return this;
}
private java.lang.Object failureReason_ = "";
/**
*
*in case the transcation is failed, this provides more information
*
*
* optional string failureReason = 11;
* @return Whether the failureReason field is set.
*/
public boolean hasFailureReason() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
*in case the transcation is failed, this provides more information
*
*
* optional string failureReason = 11;
* @return The failureReason.
*/
public java.lang.String getFailureReason() {
java.lang.Object ref = failureReason_;
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()) {
failureReason_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*in case the transcation is failed, this provides more information
*
*
* optional string failureReason = 11;
* @return The bytes for failureReason.
*/
public com.google.protobuf.ByteString
getFailureReasonBytes() {
java.lang.Object ref = failureReason_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
failureReason_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*in case the transcation is failed, this provides more information
*
*
* optional string failureReason = 11;
* @param value The failureReason to set.
* @return This builder for chaining.
*/
public Builder setFailureReason(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
failureReason_ = value;
onChanged();
return this;
}
/**
*
*in case the transcation is failed, this provides more information
*
*
* optional string failureReason = 11;
* @return This builder for chaining.
*/
public Builder clearFailureReason() {
bitField0_ = (bitField0_ & ~0x00000400);
failureReason_ = getDefaultInstance().getFailureReason();
onChanged();
return this;
}
/**
*
*in case the transcation is failed, this provides more information
*
*
* optional string failureReason = 11;
* @param value The bytes for failureReason to set.
* @return This builder for chaining.
*/
public Builder setFailureReasonBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000400;
failureReason_ = value;
onChanged();
return this;
}
private org.yamcs.protobuf.TransactionId transactionId_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.TransactionId, org.yamcs.protobuf.TransactionId.Builder, org.yamcs.protobuf.TransactionIdOrBuilder> transactionIdBuilder_;
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
* @return Whether the transactionId field is set.
*/
public boolean hasTransactionId() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
* @return The transactionId.
*/
public org.yamcs.protobuf.TransactionId getTransactionId() {
if (transactionIdBuilder_ == null) {
return transactionId_ == null ? org.yamcs.protobuf.TransactionId.getDefaultInstance() : transactionId_;
} else {
return transactionIdBuilder_.getMessage();
}
}
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
*/
public Builder setTransactionId(org.yamcs.protobuf.TransactionId value) {
if (transactionIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
transactionId_ = value;
onChanged();
} else {
transactionIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
*/
public Builder setTransactionId(
org.yamcs.protobuf.TransactionId.Builder builderForValue) {
if (transactionIdBuilder_ == null) {
transactionId_ = builderForValue.build();
onChanged();
} else {
transactionIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
*/
public Builder mergeTransactionId(org.yamcs.protobuf.TransactionId value) {
if (transactionIdBuilder_ == null) {
if (((bitField0_ & 0x00000800) != 0) &&
transactionId_ != null &&
transactionId_ != org.yamcs.protobuf.TransactionId.getDefaultInstance()) {
transactionId_ =
org.yamcs.protobuf.TransactionId.newBuilder(transactionId_).mergeFrom(value).buildPartial();
} else {
transactionId_ = value;
}
onChanged();
} else {
transactionIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000800;
return this;
}
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
*/
public Builder clearTransactionId() {
if (transactionIdBuilder_ == null) {
transactionId_ = null;
onChanged();
} else {
transactionIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
*/
public org.yamcs.protobuf.TransactionId.Builder getTransactionIdBuilder() {
bitField0_ |= 0x00000800;
onChanged();
return getTransactionIdFieldBuilder().getBuilder();
}
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
*/
public org.yamcs.protobuf.TransactionIdOrBuilder getTransactionIdOrBuilder() {
if (transactionIdBuilder_ != null) {
return transactionIdBuilder_.getMessageOrBuilder();
} else {
return transactionId_ == null ?
org.yamcs.protobuf.TransactionId.getDefaultInstance() : transactionId_;
}
}
/**
*
* valid for CFDP: transaction id;
* for the incoming transfers it is assigned by the remote peer so therefore might not be unique
*
*
* optional .yamcs.protobuf.filetransfer.TransactionId transactionId = 12;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.TransactionId, org.yamcs.protobuf.TransactionId.Builder, org.yamcs.protobuf.TransactionIdOrBuilder>
getTransactionIdFieldBuilder() {
if (transactionIdBuilder_ == null) {
transactionIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.TransactionId, org.yamcs.protobuf.TransactionId.Builder, org.yamcs.protobuf.TransactionIdOrBuilder>(
getTransactionId(),
getParentForChildren(),
isClean());
transactionId_ = null;
}
return transactionIdBuilder_;
}
private com.google.protobuf.Timestamp creationTime_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> creationTimeBuilder_;
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
* @return Whether the creationTime field is set.
*/
public boolean hasCreationTime() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
* @return The creationTime.
*/
public com.google.protobuf.Timestamp getCreationTime() {
if (creationTimeBuilder_ == null) {
return creationTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
} else {
return creationTimeBuilder_.getMessage();
}
}
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
*/
public Builder setCreationTime(com.google.protobuf.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
creationTime_ = value;
onChanged();
} else {
creationTimeBuilder_.setMessage(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
*/
public Builder setCreationTime(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (creationTimeBuilder_ == null) {
creationTime_ = builderForValue.build();
onChanged();
} else {
creationTimeBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00001000;
return this;
}
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
*/
public Builder mergeCreationTime(com.google.protobuf.Timestamp value) {
if (creationTimeBuilder_ == null) {
if (((bitField0_ & 0x00001000) != 0) &&
creationTime_ != null &&
creationTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
creationTime_ =
com.google.protobuf.Timestamp.newBuilder(creationTime_).mergeFrom(value).buildPartial();
} else {
creationTime_ = value;
}
onChanged();
} else {
creationTimeBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00001000;
return this;
}
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
*/
public Builder clearCreationTime() {
if (creationTimeBuilder_ == null) {
creationTime_ = null;
onChanged();
} else {
creationTimeBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00001000);
return this;
}
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
*/
public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder() {
bitField0_ |= 0x00001000;
onChanged();
return getCreationTimeFieldBuilder().getBuilder();
}
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
*/
public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder() {
if (creationTimeBuilder_ != null) {
return creationTimeBuilder_.getMessageOrBuilder();
} else {
return creationTime_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : creationTime_;
}
}
/**
*
* when the transfer has been created.
*
*
* optional .google.protobuf.Timestamp creationTime = 13;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getCreationTimeFieldBuilder() {
if (creationTimeBuilder_ == null) {
creationTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getCreationTime(),
getParentForChildren(),
isClean());
creationTime_ = null;
}
return creationTimeBuilder_;
}
private java.lang.Object transferType_ = "";
/**
*
* depending on the implementation, can mean normal file transfer, directory listing request, file download request, etc.
*
*
* optional string transferType = 14;
* @return Whether the transferType field is set.
*/
public boolean hasTransferType() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
*
* depending on the implementation, can mean normal file transfer, directory listing request, file download request, etc.
*
*
* optional string transferType = 14;
* @return The transferType.
*/
public java.lang.String getTransferType() {
java.lang.Object ref = transferType_;
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()) {
transferType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* depending on the implementation, can mean normal file transfer, directory listing request, file download request, etc.
*
*
* optional string transferType = 14;
* @return The bytes for transferType.
*/
public com.google.protobuf.ByteString
getTransferTypeBytes() {
java.lang.Object ref = transferType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
transferType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* depending on the implementation, can mean normal file transfer, directory listing request, file download request, etc.
*
*
* optional string transferType = 14;
* @param value The transferType to set.
* @return This builder for chaining.
*/
public Builder setTransferType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
transferType_ = value;
onChanged();
return this;
}
/**
*
* depending on the implementation, can mean normal file transfer, directory listing request, file download request, etc.
*
*
* optional string transferType = 14;
* @return This builder for chaining.
*/
public Builder clearTransferType() {
bitField0_ = (bitField0_ & ~0x00002000);
transferType_ = getDefaultInstance().getTransferType();
onChanged();
return this;
}
/**
*
* depending on the implementation, can mean normal file transfer, directory listing request, file download request, etc.
*
*
* optional string transferType = 14;
* @param value The bytes for transferType to set.
* @return This builder for chaining.
*/
public Builder setTransferTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00002000;
transferType_ = value;
onChanged();
return this;
}
private org.yamcs.protobuf.EntityInfo localEntity_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.EntityInfo, org.yamcs.protobuf.EntityInfo.Builder, org.yamcs.protobuf.EntityInfoOrBuilder> localEntityBuilder_;
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
* @return Whether the localEntity field is set.
*/
public boolean hasLocalEntity() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
* @return The localEntity.
*/
public org.yamcs.protobuf.EntityInfo getLocalEntity() {
if (localEntityBuilder_ == null) {
return localEntity_ == null ? org.yamcs.protobuf.EntityInfo.getDefaultInstance() : localEntity_;
} else {
return localEntityBuilder_.getMessage();
}
}
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
*/
public Builder setLocalEntity(org.yamcs.protobuf.EntityInfo value) {
if (localEntityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
localEntity_ = value;
onChanged();
} else {
localEntityBuilder_.setMessage(value);
}
bitField0_ |= 0x00004000;
return this;
}
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
*/
public Builder setLocalEntity(
org.yamcs.protobuf.EntityInfo.Builder builderForValue) {
if (localEntityBuilder_ == null) {
localEntity_ = builderForValue.build();
onChanged();
} else {
localEntityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00004000;
return this;
}
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
*/
public Builder mergeLocalEntity(org.yamcs.protobuf.EntityInfo value) {
if (localEntityBuilder_ == null) {
if (((bitField0_ & 0x00004000) != 0) &&
localEntity_ != null &&
localEntity_ != org.yamcs.protobuf.EntityInfo.getDefaultInstance()) {
localEntity_ =
org.yamcs.protobuf.EntityInfo.newBuilder(localEntity_).mergeFrom(value).buildPartial();
} else {
localEntity_ = value;
}
onChanged();
} else {
localEntityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00004000;
return this;
}
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
*/
public Builder clearLocalEntity() {
if (localEntityBuilder_ == null) {
localEntity_ = null;
onChanged();
} else {
localEntityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00004000);
return this;
}
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
*/
public org.yamcs.protobuf.EntityInfo.Builder getLocalEntityBuilder() {
bitField0_ |= 0x00004000;
onChanged();
return getLocalEntityFieldBuilder().getBuilder();
}
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
*/
public org.yamcs.protobuf.EntityInfoOrBuilder getLocalEntityOrBuilder() {
if (localEntityBuilder_ != null) {
return localEntityBuilder_.getMessageOrBuilder();
} else {
return localEntity_ == null ?
org.yamcs.protobuf.EntityInfo.getDefaultInstance() : localEntity_;
}
}
/**
*
* Local entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo localEntity = 15;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.EntityInfo, org.yamcs.protobuf.EntityInfo.Builder, org.yamcs.protobuf.EntityInfoOrBuilder>
getLocalEntityFieldBuilder() {
if (localEntityBuilder_ == null) {
localEntityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.EntityInfo, org.yamcs.protobuf.EntityInfo.Builder, org.yamcs.protobuf.EntityInfoOrBuilder>(
getLocalEntity(),
getParentForChildren(),
isClean());
localEntity_ = null;
}
return localEntityBuilder_;
}
private org.yamcs.protobuf.EntityInfo remoteEntity_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.EntityInfo, org.yamcs.protobuf.EntityInfo.Builder, org.yamcs.protobuf.EntityInfoOrBuilder> remoteEntityBuilder_;
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
* @return Whether the remoteEntity field is set.
*/
public boolean hasRemoteEntity() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
* @return The remoteEntity.
*/
public org.yamcs.protobuf.EntityInfo getRemoteEntity() {
if (remoteEntityBuilder_ == null) {
return remoteEntity_ == null ? org.yamcs.protobuf.EntityInfo.getDefaultInstance() : remoteEntity_;
} else {
return remoteEntityBuilder_.getMessage();
}
}
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
*/
public Builder setRemoteEntity(org.yamcs.protobuf.EntityInfo value) {
if (remoteEntityBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
remoteEntity_ = value;
onChanged();
} else {
remoteEntityBuilder_.setMessage(value);
}
bitField0_ |= 0x00008000;
return this;
}
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
*/
public Builder setRemoteEntity(
org.yamcs.protobuf.EntityInfo.Builder builderForValue) {
if (remoteEntityBuilder_ == null) {
remoteEntity_ = builderForValue.build();
onChanged();
} else {
remoteEntityBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00008000;
return this;
}
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
*/
public Builder mergeRemoteEntity(org.yamcs.protobuf.EntityInfo value) {
if (remoteEntityBuilder_ == null) {
if (((bitField0_ & 0x00008000) != 0) &&
remoteEntity_ != null &&
remoteEntity_ != org.yamcs.protobuf.EntityInfo.getDefaultInstance()) {
remoteEntity_ =
org.yamcs.protobuf.EntityInfo.newBuilder(remoteEntity_).mergeFrom(value).buildPartial();
} else {
remoteEntity_ = value;
}
onChanged();
} else {
remoteEntityBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00008000;
return this;
}
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
*/
public Builder clearRemoteEntity() {
if (remoteEntityBuilder_ == null) {
remoteEntity_ = null;
onChanged();
} else {
remoteEntityBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00008000);
return this;
}
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
*/
public org.yamcs.protobuf.EntityInfo.Builder getRemoteEntityBuilder() {
bitField0_ |= 0x00008000;
onChanged();
return getRemoteEntityFieldBuilder().getBuilder();
}
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
*/
public org.yamcs.protobuf.EntityInfoOrBuilder getRemoteEntityOrBuilder() {
if (remoteEntityBuilder_ != null) {
return remoteEntityBuilder_.getMessageOrBuilder();
} else {
return remoteEntity_ == null ?
org.yamcs.protobuf.EntityInfo.getDefaultInstance() : remoteEntity_;
}
}
/**
*
* Remote entity, may be empty if there is only one such entity.
*
*
* optional .yamcs.protobuf.filetransfer.EntityInfo remoteEntity = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.EntityInfo, org.yamcs.protobuf.EntityInfo.Builder, org.yamcs.protobuf.EntityInfoOrBuilder>
getRemoteEntityFieldBuilder() {
if (remoteEntityBuilder_ == null) {
remoteEntityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.EntityInfo, org.yamcs.protobuf.EntityInfo.Builder, org.yamcs.protobuf.EntityInfoOrBuilder>(
getRemoteEntity(),
getParentForChildren(),
isClean());
remoteEntity_ = null;
}
return remoteEntityBuilder_;
}
@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.TransferInfo)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.filetransfer.TransferInfo)
private static final org.yamcs.protobuf.TransferInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.TransferInfo();
}
public static org.yamcs.protobuf.TransferInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TransferInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TransferInfo(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.TransferInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy