All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.protobuf.CreateTransferRequest Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
// 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.CreateTransferRequest}
 */
public final class CreateTransferRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.filetransfer.CreateTransferRequest)
    CreateTransferRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CreateTransferRequest.newBuilder() to construct.
  private CreateTransferRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private CreateTransferRequest() {
    instance_ = "";
    serviceName_ = "";
    direction_ = 1;
    bucket_ = "";
    objectName_ = "";
    remotePath_ = "";
    source_ = "";
    destination_ = "";
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new CreateTransferRequest();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CreateTransferRequest(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000001;
            instance_ = bs;
            break;
          }
          case 16: {
            int rawValue = input.readEnum();
              @SuppressWarnings("deprecation")
            org.yamcs.protobuf.TransferDirection value = org.yamcs.protobuf.TransferDirection.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(2, rawValue);
            } else {
              bitField0_ |= 0x00000004;
              direction_ = rawValue;
            }
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            bucket_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000010;
            objectName_ = bs;
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000020;
            remotePath_ = bs;
            break;
          }
          case 66: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            serviceName_ = bs;
            break;
          }
          case 74: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000040;
            source_ = bs;
            break;
          }
          case 82: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000080;
            destination_ = bs;
            break;
          }
          case 90: {
            com.google.protobuf.Struct.Builder subBuilder = null;
            if (((bitField0_ & 0x00000100) != 0)) {
              subBuilder = options_.toBuilder();
            }
            options_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(options_);
              options_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000100;
            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_CreateTransferRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_CreateTransferRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.CreateTransferRequest.class, org.yamcs.protobuf.CreateTransferRequest.Builder.class);
  }

  private int bitField0_;
  public static final int INSTANCE_FIELD_NUMBER = 1;
  private volatile java.lang.Object instance_;
  /**
   * 
   * Yamcs instance name
   * 
* * optional string instance = 1; * @return Whether the instance field is set. */ @java.lang.Override public boolean hasInstance() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Yamcs instance name
   * 
* * optional string instance = 1; * @return The instance. */ @java.lang.Override public java.lang.String getInstance() { java.lang.Object ref = instance_; 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()) { instance_ = s; } return s; } } /** *
   * Yamcs instance name
   * 
* * optional string instance = 1; * @return The bytes for instance. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SERVICENAME_FIELD_NUMBER = 8; private volatile java.lang.Object serviceName_; /** *
   * File transfer service name
   * 
* * optional string serviceName = 8; * @return Whether the serviceName field is set. */ @java.lang.Override public boolean hasServiceName() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * File transfer service name
   * 
* * optional string serviceName = 8; * @return The serviceName. */ @java.lang.Override public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; 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()) { serviceName_ = s; } return s; } } /** *
   * File transfer service name
   * 
* * optional string serviceName = 8; * @return The bytes for serviceName. */ @java.lang.Override public com.google.protobuf.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DIRECTION_FIELD_NUMBER = 2; private int direction_; /** *
   * **Required** One of ``UPLOAD`` or ``DOWNLOAD``.
   * 
* * optional .yamcs.protobuf.filetransfer.TransferDirection direction = 2; * @return Whether the direction field is set. */ @java.lang.Override public boolean hasDirection() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * **Required** One of ``UPLOAD`` or ``DOWNLOAD``.
   * 
* * optional .yamcs.protobuf.filetransfer.TransferDirection direction = 2; * @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 BUCKET_FIELD_NUMBER = 3; private volatile java.lang.Object bucket_; /** *
   * **Required** The bucket containing the local Yamcs object.
   * 
* * optional string bucket = 3; * @return Whether the bucket field is set. */ @java.lang.Override public boolean hasBucket() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * **Required** The bucket containing the local Yamcs object.
   * 
* * optional string bucket = 3; * @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; } } /** *
   * **Required** The bucket containing the local Yamcs object.
   * 
* * optional string bucket = 3; * @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 = 4; private volatile java.lang.Object objectName_; /** *
   * **Required** The object name in Yamcs bucket storage. For UPLOAD transfers,
   * this object must exist and is what Yamcs will transfer to the remote
   * entity. For DOWNLOAD transfers, it refers to the object that
   * Yamcs will write to when downloading from a remote entity.
   * 
* * optional string objectName = 4; * @return Whether the objectName field is set. */ @java.lang.Override public boolean hasObjectName() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * **Required** The object name in Yamcs bucket storage. For UPLOAD transfers,
   * this object must exist and is what Yamcs will transfer to the remote
   * entity. For DOWNLOAD transfers, it refers to the object that
   * Yamcs will write to when downloading from a remote entity.
   * 
* * optional string objectName = 4; * @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; } } /** *
   * **Required** The object name in Yamcs bucket storage. For UPLOAD transfers,
   * this object must exist and is what Yamcs will transfer to the remote
   * entity. For DOWNLOAD transfers, it refers to the object that
   * Yamcs will write to when downloading from a remote entity.
   * 
* * optional string objectName = 4; * @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 = 5; private volatile java.lang.Object remotePath_; /** *
   * **Required** The path at the remote entity. Example: ``a/local/path/some_filename``.
   * 
* * optional string remotePath = 5; * @return Whether the remotePath field is set. */ @java.lang.Override public boolean hasRemotePath() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * **Required** The path at the remote entity. Example: ``a/local/path/some_filename``.
   * 
* * optional string remotePath = 5; * @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; } } /** *
   * **Required** The path at the remote entity. Example: ``a/local/path/some_filename``.
   * 
* * optional string remotePath = 5; * @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 SOURCE_FIELD_NUMBER = 9; private volatile java.lang.Object source_; /** *
   *used to derive the source entity id
   * 
* * optional string source = 9; * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return ((bitField0_ & 0x00000040) != 0); } /** *
   *used to derive the source entity id
   * 
* * optional string source = 9; * @return The source. */ @java.lang.Override public java.lang.String getSource() { java.lang.Object ref = source_; 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()) { source_ = s; } return s; } } /** *
   *used to derive the source entity id
   * 
* * optional string source = 9; * @return The bytes for source. */ @java.lang.Override public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DESTINATION_FIELD_NUMBER = 10; private volatile java.lang.Object destination_; /** *
   *used to derive the destination entity id
   * 
* * optional string destination = 10; * @return Whether the destination field is set. */ @java.lang.Override public boolean hasDestination() { return ((bitField0_ & 0x00000080) != 0); } /** *
   *used to derive the destination entity id
   * 
* * optional string destination = 10; * @return The destination. */ @java.lang.Override public java.lang.String getDestination() { java.lang.Object ref = destination_; 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()) { destination_ = s; } return s; } } /** *
   *used to derive the destination entity id
   * 
* * optional string destination = 10; * @return The bytes for destination. */ @java.lang.Override public com.google.protobuf.ByteString getDestinationBytes() { java.lang.Object ref = destination_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destination_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int OPTIONS_FIELD_NUMBER = 11; private com.google.protobuf.Struct options_; /** *
   * Options for the transfer
   * 
* * optional .google.protobuf.Struct options = 11; * @return Whether the options field is set. */ @java.lang.Override public boolean hasOptions() { return ((bitField0_ & 0x00000100) != 0); } /** *
   * Options for the transfer
   * 
* * optional .google.protobuf.Struct options = 11; * @return The options. */ @java.lang.Override public com.google.protobuf.Struct getOptions() { return options_ == null ? com.google.protobuf.Struct.getDefaultInstance() : options_; } /** *
   * Options for the transfer
   * 
* * optional .google.protobuf.Struct options = 11; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getOptionsOrBuilder() { return options_ == null ? com.google.protobuf.Struct.getDefaultInstance() : options_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(2, direction_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, bucket_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, objectName_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, remotePath_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, serviceName_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, source_); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, destination_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(11, getOptions()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instance_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, direction_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, bucket_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, objectName_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, remotePath_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, serviceName_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, source_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, destination_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, getOptions()); } 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.CreateTransferRequest)) { return super.equals(obj); } org.yamcs.protobuf.CreateTransferRequest other = (org.yamcs.protobuf.CreateTransferRequest) obj; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { if (!getInstance() .equals(other.getInstance())) return false; } if (hasServiceName() != other.hasServiceName()) return false; if (hasServiceName()) { if (!getServiceName() .equals(other.getServiceName())) return false; } if (hasDirection() != other.hasDirection()) return false; if (hasDirection()) { if (direction_ != other.direction_) 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 (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource() .equals(other.getSource())) return false; } if (hasDestination() != other.hasDestination()) return false; if (hasDestination()) { if (!getDestination() .equals(other.getDestination())) return false; } if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) 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 (hasInstance()) { hash = (37 * hash) + INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getInstance().hashCode(); } if (hasServiceName()) { hash = (37 * hash) + SERVICENAME_FIELD_NUMBER; hash = (53 * hash) + getServiceName().hashCode(); } if (hasDirection()) { hash = (37 * hash) + DIRECTION_FIELD_NUMBER; hash = (53 * hash) + direction_; } 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 (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasDestination()) { hash = (37 * hash) + DESTINATION_FIELD_NUMBER; hash = (53 * hash) + getDestination().hashCode(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.CreateTransferRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.CreateTransferRequest 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.CreateTransferRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.CreateTransferRequest 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.CreateTransferRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.CreateTransferRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.CreateTransferRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.CreateTransferRequest 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.CreateTransferRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.CreateTransferRequest 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.CreateTransferRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.CreateTransferRequest 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.CreateTransferRequest 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.CreateTransferRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.filetransfer.CreateTransferRequest) org.yamcs.protobuf.CreateTransferRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_CreateTransferRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_CreateTransferRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.CreateTransferRequest.class, org.yamcs.protobuf.CreateTransferRequest.Builder.class); } // Construct using org.yamcs.protobuf.CreateTransferRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); instance_ = ""; bitField0_ = (bitField0_ & ~0x00000001); serviceName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); direction_ = 1; bitField0_ = (bitField0_ & ~0x00000004); bucket_ = ""; bitField0_ = (bitField0_ & ~0x00000008); objectName_ = ""; bitField0_ = (bitField0_ & ~0x00000010); remotePath_ = ""; bitField0_ = (bitField0_ & ~0x00000020); source_ = ""; bitField0_ = (bitField0_ & ~0x00000040); destination_ = ""; bitField0_ = (bitField0_ & ~0x00000080); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_CreateTransferRequest_descriptor; } @java.lang.Override public org.yamcs.protobuf.CreateTransferRequest getDefaultInstanceForType() { return org.yamcs.protobuf.CreateTransferRequest.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.CreateTransferRequest build() { org.yamcs.protobuf.CreateTransferRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.CreateTransferRequest buildPartial() { org.yamcs.protobuf.CreateTransferRequest result = new org.yamcs.protobuf.CreateTransferRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.instance_ = instance_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.serviceName_ = serviceName_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.direction_ = direction_; 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.source_ = source_; if (((from_bitField0_ & 0x00000080) != 0)) { to_bitField0_ |= 0x00000080; } result.destination_ = destination_; if (((from_bitField0_ & 0x00000100) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000100; } 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.CreateTransferRequest) { return mergeFrom((org.yamcs.protobuf.CreateTransferRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.CreateTransferRequest other) { if (other == org.yamcs.protobuf.CreateTransferRequest.getDefaultInstance()) return this; if (other.hasInstance()) { bitField0_ |= 0x00000001; instance_ = other.instance_; onChanged(); } if (other.hasServiceName()) { bitField0_ |= 0x00000002; serviceName_ = other.serviceName_; onChanged(); } if (other.hasDirection()) { setDirection(other.getDirection()); } 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.hasSource()) { bitField0_ |= 0x00000040; source_ = other.source_; onChanged(); } if (other.hasDestination()) { bitField0_ |= 0x00000080; destination_ = other.destination_; onChanged(); } if (other.hasOptions()) { mergeOptions(other.getOptions()); } 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.CreateTransferRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.CreateTransferRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object instance_ = ""; /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @return Whether the instance field is set. */ public boolean hasInstance() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @return The instance. */ public java.lang.String getInstance() { java.lang.Object ref = instance_; 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()) { instance_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @return The bytes for instance. */ public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @param value The instance to set. * @return This builder for chaining. */ public Builder setInstance( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; instance_ = value; onChanged(); return this; } /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @return This builder for chaining. */ public Builder clearInstance() { bitField0_ = (bitField0_ & ~0x00000001); instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @param value The bytes for instance to set. * @return This builder for chaining. */ public Builder setInstanceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; instance_ = value; onChanged(); return this; } private java.lang.Object serviceName_ = ""; /** *
     * File transfer service name
     * 
* * optional string serviceName = 8; * @return Whether the serviceName field is set. */ public boolean hasServiceName() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * File transfer service name
     * 
* * optional string serviceName = 8; * @return The serviceName. */ public java.lang.String getServiceName() { java.lang.Object ref = serviceName_; 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()) { serviceName_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * File transfer service name
     * 
* * optional string serviceName = 8; * @return The bytes for serviceName. */ public com.google.protobuf.ByteString getServiceNameBytes() { java.lang.Object ref = serviceName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); serviceName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * File transfer service name
     * 
* * optional string serviceName = 8; * @param value The serviceName to set. * @return This builder for chaining. */ public Builder setServiceName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; serviceName_ = value; onChanged(); return this; } /** *
     * File transfer service name
     * 
* * optional string serviceName = 8; * @return This builder for chaining. */ public Builder clearServiceName() { bitField0_ = (bitField0_ & ~0x00000002); serviceName_ = getDefaultInstance().getServiceName(); onChanged(); return this; } /** *
     * File transfer service name
     * 
* * optional string serviceName = 8; * @param value The bytes for serviceName to set. * @return This builder for chaining. */ public Builder setServiceNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; serviceName_ = value; onChanged(); return this; } private int direction_ = 1; /** *
     * **Required** One of ``UPLOAD`` or ``DOWNLOAD``.
     * 
* * optional .yamcs.protobuf.filetransfer.TransferDirection direction = 2; * @return Whether the direction field is set. */ @java.lang.Override public boolean hasDirection() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * **Required** One of ``UPLOAD`` or ``DOWNLOAD``.
     * 
* * optional .yamcs.protobuf.filetransfer.TransferDirection direction = 2; * @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; } /** *
     * **Required** One of ``UPLOAD`` or ``DOWNLOAD``.
     * 
* * optional .yamcs.protobuf.filetransfer.TransferDirection direction = 2; * @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_ |= 0x00000004; direction_ = value.getNumber(); onChanged(); return this; } /** *
     * **Required** One of ``UPLOAD`` or ``DOWNLOAD``.
     * 
* * optional .yamcs.protobuf.filetransfer.TransferDirection direction = 2; * @return This builder for chaining. */ public Builder clearDirection() { bitField0_ = (bitField0_ & ~0x00000004); direction_ = 1; onChanged(); return this; } private java.lang.Object bucket_ = ""; /** *
     * **Required** The bucket containing the local Yamcs object.
     * 
* * optional string bucket = 3; * @return Whether the bucket field is set. */ public boolean hasBucket() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * **Required** The bucket containing the local Yamcs object.
     * 
* * optional string bucket = 3; * @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; } } /** *
     * **Required** The bucket containing the local Yamcs object.
     * 
* * optional string bucket = 3; * @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; } } /** *
     * **Required** The bucket containing the local Yamcs object.
     * 
* * optional string bucket = 3; * @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; } /** *
     * **Required** The bucket containing the local Yamcs object.
     * 
* * optional string bucket = 3; * @return This builder for chaining. */ public Builder clearBucket() { bitField0_ = (bitField0_ & ~0x00000008); bucket_ = getDefaultInstance().getBucket(); onChanged(); return this; } /** *
     * **Required** The bucket containing the local Yamcs object.
     * 
* * optional string bucket = 3; * @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_ = ""; /** *
     * **Required** The object name in Yamcs bucket storage. For UPLOAD transfers,
     * this object must exist and is what Yamcs will transfer to the remote
     * entity. For DOWNLOAD transfers, it refers to the object that
     * Yamcs will write to when downloading from a remote entity.
     * 
* * optional string objectName = 4; * @return Whether the objectName field is set. */ public boolean hasObjectName() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * **Required** The object name in Yamcs bucket storage. For UPLOAD transfers,
     * this object must exist and is what Yamcs will transfer to the remote
     * entity. For DOWNLOAD transfers, it refers to the object that
     * Yamcs will write to when downloading from a remote entity.
     * 
* * optional string objectName = 4; * @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; } } /** *
     * **Required** The object name in Yamcs bucket storage. For UPLOAD transfers,
     * this object must exist and is what Yamcs will transfer to the remote
     * entity. For DOWNLOAD transfers, it refers to the object that
     * Yamcs will write to when downloading from a remote entity.
     * 
* * optional string objectName = 4; * @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; } } /** *
     * **Required** The object name in Yamcs bucket storage. For UPLOAD transfers,
     * this object must exist and is what Yamcs will transfer to the remote
     * entity. For DOWNLOAD transfers, it refers to the object that
     * Yamcs will write to when downloading from a remote entity.
     * 
* * optional string objectName = 4; * @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; } /** *
     * **Required** The object name in Yamcs bucket storage. For UPLOAD transfers,
     * this object must exist and is what Yamcs will transfer to the remote
     * entity. For DOWNLOAD transfers, it refers to the object that
     * Yamcs will write to when downloading from a remote entity.
     * 
* * optional string objectName = 4; * @return This builder for chaining. */ public Builder clearObjectName() { bitField0_ = (bitField0_ & ~0x00000010); objectName_ = getDefaultInstance().getObjectName(); onChanged(); return this; } /** *
     * **Required** The object name in Yamcs bucket storage. For UPLOAD transfers,
     * this object must exist and is what Yamcs will transfer to the remote
     * entity. For DOWNLOAD transfers, it refers to the object that
     * Yamcs will write to when downloading from a remote entity.
     * 
* * optional string objectName = 4; * @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_ = ""; /** *
     * **Required** The path at the remote entity. Example: ``a/local/path/some_filename``.
     * 
* * optional string remotePath = 5; * @return Whether the remotePath field is set. */ public boolean hasRemotePath() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * **Required** The path at the remote entity. Example: ``a/local/path/some_filename``.
     * 
* * optional string remotePath = 5; * @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; } } /** *
     * **Required** The path at the remote entity. Example: ``a/local/path/some_filename``.
     * 
* * optional string remotePath = 5; * @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; } } /** *
     * **Required** The path at the remote entity. Example: ``a/local/path/some_filename``.
     * 
* * optional string remotePath = 5; * @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; } /** *
     * **Required** The path at the remote entity. Example: ``a/local/path/some_filename``.
     * 
* * optional string remotePath = 5; * @return This builder for chaining. */ public Builder clearRemotePath() { bitField0_ = (bitField0_ & ~0x00000020); remotePath_ = getDefaultInstance().getRemotePath(); onChanged(); return this; } /** *
     * **Required** The path at the remote entity. Example: ``a/local/path/some_filename``.
     * 
* * optional string remotePath = 5; * @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 java.lang.Object source_ = ""; /** *
     *used to derive the source entity id
     * 
* * optional string source = 9; * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000040) != 0); } /** *
     *used to derive the source entity id
     * 
* * optional string source = 9; * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; 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()) { source_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     *used to derive the source entity id
     * 
* * optional string source = 9; * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *used to derive the source entity id
     * 
* * optional string source = 9; * @param value The source to set. * @return This builder for chaining. */ public Builder setSource( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; source_ = value; onChanged(); return this; } /** *
     *used to derive the source entity id
     * 
* * optional string source = 9; * @return This builder for chaining. */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000040); source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** *
     *used to derive the source entity id
     * 
* * optional string source = 9; * @param value The bytes for source to set. * @return This builder for chaining. */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; source_ = value; onChanged(); return this; } private java.lang.Object destination_ = ""; /** *
     *used to derive the destination entity id
     * 
* * optional string destination = 10; * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000080) != 0); } /** *
     *used to derive the destination entity id
     * 
* * optional string destination = 10; * @return The destination. */ public java.lang.String getDestination() { java.lang.Object ref = destination_; 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()) { destination_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     *used to derive the destination entity id
     * 
* * optional string destination = 10; * @return The bytes for destination. */ public com.google.protobuf.ByteString getDestinationBytes() { java.lang.Object ref = destination_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); destination_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *used to derive the destination entity id
     * 
* * optional string destination = 10; * @param value The destination to set. * @return This builder for chaining. */ public Builder setDestination( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; destination_ = value; onChanged(); return this; } /** *
     *used to derive the destination entity id
     * 
* * optional string destination = 10; * @return This builder for chaining. */ public Builder clearDestination() { bitField0_ = (bitField0_ & ~0x00000080); destination_ = getDefaultInstance().getDestination(); onChanged(); return this; } /** *
     *used to derive the destination entity id
     * 
* * optional string destination = 10; * @param value The bytes for destination to set. * @return This builder for chaining. */ public Builder setDestinationBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; destination_ = value; onChanged(); return this; } private com.google.protobuf.Struct options_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> optionsBuilder_; /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 11; * @return Whether the options field is set. */ public boolean hasOptions() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 11; * @return The options. */ public com.google.protobuf.Struct getOptions() { if (optionsBuilder_ == null) { return options_ == null ? com.google.protobuf.Struct.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 11; */ public Builder setOptions(com.google.protobuf.Struct value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 11; */ public Builder setOptions( com.google.protobuf.Struct.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 11; */ public Builder mergeOptions(com.google.protobuf.Struct value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && options_ != null && options_ != com.google.protobuf.Struct.getDefaultInstance()) { options_ = com.google.protobuf.Struct.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 11; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 11; */ public com.google.protobuf.Struct.Builder getOptionsBuilder() { bitField0_ |= 0x00000100; onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 11; */ public com.google.protobuf.StructOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? com.google.protobuf.Struct.getDefaultInstance() : options_; } } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 11; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @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.CreateTransferRequest) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.filetransfer.CreateTransferRequest) private static final org.yamcs.protobuf.CreateTransferRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.CreateTransferRequest(); } public static org.yamcs.protobuf.CreateTransferRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateTransferRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateTransferRequest(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.CreateTransferRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy