Class TransferInfo.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, TransferInfoOrBuilder
    Enclosing class:
    TransferInfo

    public static final class TransferInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
    implements TransferInfoOrBuilder
    message sent as reponse to the info and also when starting a new transfer
     
    Protobuf type yamcs.protobuf.filetransfer.TransferInfo
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
      • clear

        public TransferInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
      • getDefaultInstanceForType

        public TransferInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public TransferInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public TransferInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public TransferInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
      • setField

        public TransferInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                             Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
      • clearField

        public TransferInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
      • clearOneof

        public TransferInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
      • setRepeatedField

        public TransferInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     int index,
                                                     Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
      • addRepeatedField

        public TransferInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
      • mergeFrom

        public TransferInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
      • mergeFrom

        public TransferInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransferInfo.Builder>
        Throws:
        IOException
      • hasId

        public boolean hasId()
        unique identifier assigned by the file transfer service
         
        optional uint64 id = 1;
        Specified by:
        hasId in interface TransferInfoOrBuilder
        Returns:
        Whether the id field is set.
      • getId

        public long getId()
        unique identifier assigned by the file transfer service
         
        optional uint64 id = 1;
        Specified by:
        getId in interface TransferInfoOrBuilder
        Returns:
        The id.
      • setId

        public TransferInfo.Builder setId​(long value)
        unique identifier assigned by the file transfer service
         
        optional uint64 id = 1;
        Parameters:
        value - The id to set.
        Returns:
        This builder for chaining.
      • clearId

        public TransferInfo.Builder clearId()
        unique identifier assigned by the file transfer service
         
        optional uint64 id = 1;
        Returns:
        This builder for chaining.
      • hasStartTime

        public boolean hasStartTime()
        when the transfer has started. Note that this will not be set for QUEUED transfers.
         
        optional .google.protobuf.Timestamp startTime = 2;
        Specified by:
        hasStartTime in interface TransferInfoOrBuilder
        Returns:
        Whether the startTime field is set.
      • getStartTime

        public com.google.protobuf.Timestamp getStartTime()
        when the transfer has started. Note that this will not be set for QUEUED transfers.
         
        optional .google.protobuf.Timestamp startTime = 2;
        Specified by:
        getStartTime in interface TransferInfoOrBuilder
        Returns:
        The startTime.
      • setStartTime

        public TransferInfo.Builder setStartTime​(com.google.protobuf.Timestamp value)
        when the transfer has started. Note that this will not be set for QUEUED transfers.
         
        optional .google.protobuf.Timestamp startTime = 2;
      • setStartTime

        public TransferInfo.Builder setStartTime​(com.google.protobuf.Timestamp.Builder builderForValue)
        when the transfer has started. Note that this will not be set for QUEUED transfers.
         
        optional .google.protobuf.Timestamp startTime = 2;
      • mergeStartTime

        public TransferInfo.Builder mergeStartTime​(com.google.protobuf.Timestamp value)
        when the transfer has started. Note that this will not be set for QUEUED transfers.
         
        optional .google.protobuf.Timestamp startTime = 2;
      • clearStartTime

        public TransferInfo.Builder clearStartTime()
        when the transfer has started. Note that this will not be set for QUEUED transfers.
         
        optional .google.protobuf.Timestamp startTime = 2;
      • getStartTimeBuilder

        public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
        when the transfer has started. Note that this will not be set for QUEUED transfers.
         
        optional .google.protobuf.Timestamp startTime = 2;
      • getStartTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
        when the transfer has started. Note that this will not be set for QUEUED transfers.
         
        optional .google.protobuf.Timestamp startTime = 2;
        Specified by:
        getStartTimeOrBuilder in interface TransferInfoOrBuilder
      • hasState

        public boolean hasState()
        optional .yamcs.protobuf.filetransfer.TransferState state = 3;
        Specified by:
        hasState in interface TransferInfoOrBuilder
        Returns:
        Whether the state field is set.
      • setState

        public TransferInfo.Builder setState​(TransferState value)
        optional .yamcs.protobuf.filetransfer.TransferState state = 3;
        Parameters:
        value - The state to set.
        Returns:
        This builder for chaining.
      • clearState

        public TransferInfo.Builder clearState()
        optional .yamcs.protobuf.filetransfer.TransferState state = 3;
        Returns:
        This builder for chaining.
      • hasBucket

        public boolean hasBucket()
        optional string bucket = 4;
        Specified by:
        hasBucket in interface TransferInfoOrBuilder
        Returns:
        Whether the bucket field is set.
      • getBucketBytes

        public com.google.protobuf.ByteString getBucketBytes()
        optional string bucket = 4;
        Specified by:
        getBucketBytes in interface TransferInfoOrBuilder
        Returns:
        The bytes for bucket.
      • setBucket

        public TransferInfo.Builder setBucket​(String value)
        optional string bucket = 4;
        Parameters:
        value - The bucket to set.
        Returns:
        This builder for chaining.
      • clearBucket

        public TransferInfo.Builder clearBucket()
        optional string bucket = 4;
        Returns:
        This builder for chaining.
      • setBucketBytes

        public TransferInfo.Builder setBucketBytes​(com.google.protobuf.ByteString value)
        optional string bucket = 4;
        Parameters:
        value - The bytes for bucket to set.
        Returns:
        This builder for chaining.
      • hasObjectName

        public boolean hasObjectName()
        optional string objectName = 5;
        Specified by:
        hasObjectName in interface TransferInfoOrBuilder
        Returns:
        Whether the objectName field is set.
      • getObjectNameBytes

        public com.google.protobuf.ByteString getObjectNameBytes()
        optional string objectName = 5;
        Specified by:
        getObjectNameBytes in interface TransferInfoOrBuilder
        Returns:
        The bytes for objectName.
      • setObjectName

        public TransferInfo.Builder setObjectName​(String value)
        optional string objectName = 5;
        Parameters:
        value - The objectName to set.
        Returns:
        This builder for chaining.
      • clearObjectName

        public TransferInfo.Builder clearObjectName()
        optional string objectName = 5;
        Returns:
        This builder for chaining.
      • setObjectNameBytes

        public TransferInfo.Builder setObjectNameBytes​(com.google.protobuf.ByteString value)
        optional string objectName = 5;
        Parameters:
        value - The bytes for objectName to set.
        Returns:
        This builder for chaining.
      • hasRemotePath

        public boolean hasRemotePath()
        optional string remotePath = 6;
        Specified by:
        hasRemotePath in interface TransferInfoOrBuilder
        Returns:
        Whether the remotePath field is set.
      • getRemotePathBytes

        public com.google.protobuf.ByteString getRemotePathBytes()
        optional string remotePath = 6;
        Specified by:
        getRemotePathBytes in interface TransferInfoOrBuilder
        Returns:
        The bytes for remotePath.
      • setRemotePath

        public TransferInfo.Builder setRemotePath​(String value)
        optional string remotePath = 6;
        Parameters:
        value - The remotePath to set.
        Returns:
        This builder for chaining.
      • clearRemotePath

        public TransferInfo.Builder clearRemotePath()
        optional string remotePath = 6;
        Returns:
        This builder for chaining.
      • setRemotePathBytes

        public TransferInfo.Builder setRemotePathBytes​(com.google.protobuf.ByteString value)
        optional string remotePath = 6;
        Parameters:
        value - The bytes for remotePath to set.
        Returns:
        This builder for chaining.
      • hasDirection

        public boolean hasDirection()
        optional .yamcs.protobuf.filetransfer.TransferDirection direction = 7;
        Specified by:
        hasDirection in interface TransferInfoOrBuilder
        Returns:
        Whether the direction field is set.
      • setDirection

        public TransferInfo.Builder setDirection​(TransferDirection value)
        optional .yamcs.protobuf.filetransfer.TransferDirection direction = 7;
        Parameters:
        value - The direction to set.
        Returns:
        This builder for chaining.
      • clearDirection

        public TransferInfo.Builder clearDirection()
        optional .yamcs.protobuf.filetransfer.TransferDirection direction = 7;
        Returns:
        This builder for chaining.
      • hasTotalSize

        public boolean hasTotalSize()
        optional uint64 totalSize = 8;
        Specified by:
        hasTotalSize in interface TransferInfoOrBuilder
        Returns:
        Whether the totalSize field is set.
      • setTotalSize

        public TransferInfo.Builder setTotalSize​(long value)
        optional uint64 totalSize = 8;
        Parameters:
        value - The totalSize to set.
        Returns:
        This builder for chaining.
      • clearTotalSize

        public TransferInfo.Builder clearTotalSize()
        optional uint64 totalSize = 8;
        Returns:
        This builder for chaining.
      • hasSizeTransferred

        public boolean hasSizeTransferred()
        optional uint64 sizeTransferred = 9;
        Specified by:
        hasSizeTransferred in interface TransferInfoOrBuilder
        Returns:
        Whether the sizeTransferred field is set.
      • setSizeTransferred

        public TransferInfo.Builder setSizeTransferred​(long value)
        optional uint64 sizeTransferred = 9;
        Parameters:
        value - The sizeTransferred to set.
        Returns:
        This builder for chaining.
      • clearSizeTransferred

        public TransferInfo.Builder clearSizeTransferred()
        optional uint64 sizeTransferred = 9;
        Returns:
        This builder for chaining.
      • hasReliable

        public boolean hasReliable()
        reliable = true -> class 2 transfer
        reliable = false -> class 1 transfer
         
        optional bool reliable = 10;
        Specified by:
        hasReliable in interface TransferInfoOrBuilder
        Returns:
        Whether the reliable field is set.
      • getReliable

        public boolean getReliable()
        reliable = true -> class 2 transfer
        reliable = false -> class 1 transfer
         
        optional bool reliable = 10;
        Specified by:
        getReliable in interface TransferInfoOrBuilder
        Returns:
        The reliable.
      • setReliable

        public TransferInfo.Builder setReliable​(boolean value)
        reliable = true -> class 2 transfer
        reliable = false -> class 1 transfer
         
        optional bool reliable = 10;
        Parameters:
        value - The reliable to set.
        Returns:
        This builder for chaining.
      • clearReliable

        public TransferInfo.Builder clearReliable()
        reliable = true -> class 2 transfer
        reliable = false -> class 1 transfer
         
        optional bool reliable = 10;
        Returns:
        This builder for chaining.
      • hasFailureReason

        public boolean hasFailureReason()
        in case the transcation is failed, this provides more information
         
        optional string failureReason = 11;
        Specified by:
        hasFailureReason in interface TransferInfoOrBuilder
        Returns:
        Whether the failureReason field is set.
      • getFailureReason

        public String getFailureReason()
        in case the transcation is failed, this provides more information
         
        optional string failureReason = 11;
        Specified by:
        getFailureReason in interface TransferInfoOrBuilder
        Returns:
        The failureReason.
      • getFailureReasonBytes

        public com.google.protobuf.ByteString getFailureReasonBytes()
        in case the transcation is failed, this provides more information
         
        optional string failureReason = 11;
        Specified by:
        getFailureReasonBytes in interface TransferInfoOrBuilder
        Returns:
        The bytes for failureReason.
      • setFailureReason

        public TransferInfo.Builder setFailureReason​(String value)
        in case the transcation is failed, this provides more information
         
        optional string failureReason = 11;
        Parameters:
        value - The failureReason to set.
        Returns:
        This builder for chaining.
      • clearFailureReason

        public TransferInfo.Builder clearFailureReason()
        in case the transcation is failed, this provides more information
         
        optional string failureReason = 11;
        Returns:
        This builder for chaining.
      • setFailureReasonBytes

        public TransferInfo.Builder setFailureReasonBytes​(com.google.protobuf.ByteString value)
        in case the transcation is failed, this provides more information
         
        optional string failureReason = 11;
        Parameters:
        value - The bytes for failureReason to set.
        Returns:
        This builder for chaining.
      • hasTransactionId

        public boolean hasTransactionId()
         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;
        Specified by:
        hasTransactionId in interface TransferInfoOrBuilder
        Returns:
        Whether the transactionId field is set.
      • getTransactionId

        public TransactionId getTransactionId()
         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;
        Specified by:
        getTransactionId in interface TransferInfoOrBuilder
        Returns:
        The transactionId.
      • setTransactionId

        public TransferInfo.Builder setTransactionId​(TransactionId value)
         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;
      • setTransactionId

        public TransferInfo.Builder setTransactionId​(TransactionId.Builder builderForValue)
         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;
      • mergeTransactionId

        public TransferInfo.Builder mergeTransactionId​(TransactionId value)
         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;
      • clearTransactionId

        public TransferInfo.Builder clearTransactionId()
         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;
      • getTransactionIdBuilder

        public TransactionId.Builder getTransactionIdBuilder()
         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;
      • getTransactionIdOrBuilder

        public TransactionIdOrBuilder getTransactionIdOrBuilder()
         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;
        Specified by:
        getTransactionIdOrBuilder in interface TransferInfoOrBuilder
      • hasCreationTime

        public boolean hasCreationTime()
         when the transfer has been created. 
         
        optional .google.protobuf.Timestamp creationTime = 13;
        Specified by:
        hasCreationTime in interface TransferInfoOrBuilder
        Returns:
        Whether the creationTime field is set.
      • getCreationTime

        public com.google.protobuf.Timestamp getCreationTime()
         when the transfer has been created. 
         
        optional .google.protobuf.Timestamp creationTime = 13;
        Specified by:
        getCreationTime in interface TransferInfoOrBuilder
        Returns:
        The creationTime.
      • setCreationTime

        public TransferInfo.Builder setCreationTime​(com.google.protobuf.Timestamp value)
         when the transfer has been created. 
         
        optional .google.protobuf.Timestamp creationTime = 13;
      • setCreationTime

        public TransferInfo.Builder setCreationTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         when the transfer has been created. 
         
        optional .google.protobuf.Timestamp creationTime = 13;
      • mergeCreationTime

        public TransferInfo.Builder mergeCreationTime​(com.google.protobuf.Timestamp value)
         when the transfer has been created. 
         
        optional .google.protobuf.Timestamp creationTime = 13;
      • clearCreationTime

        public TransferInfo.Builder clearCreationTime()
         when the transfer has been created. 
         
        optional .google.protobuf.Timestamp creationTime = 13;
      • getCreationTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreationTimeBuilder()
         when the transfer has been created. 
         
        optional .google.protobuf.Timestamp creationTime = 13;
      • getCreationTimeOrBuilder

        public com.google.protobuf.TimestampOrBuilder getCreationTimeOrBuilder()
         when the transfer has been created. 
         
        optional .google.protobuf.Timestamp creationTime = 13;
        Specified by:
        getCreationTimeOrBuilder in interface TransferInfoOrBuilder
      • setUnknownFields

        public final TransferInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>
      • mergeUnknownFields

        public final TransferInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransferInfo.Builder>