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

org.yamcs.protobuf.ListFilesRequest 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.ListFilesRequest}
 */
public final class ListFilesRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.filetransfer.ListFilesRequest)
    ListFilesRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ListFilesRequest.newBuilder() to construct.
  private ListFilesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ListFilesRequest() {
    instance_ = "";
    serviceName_ = "";
    source_ = "";
    destination_ = "";
    remotePath_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ListFilesRequest(
      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 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            serviceName_ = bs;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            source_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            destination_ = bs;
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000010;
            remotePath_ = bs;
            break;
          }
          case 50: {
            com.google.protobuf.Struct.Builder subBuilder = null;
            if (((bitField0_ & 0x00000020) != 0)) {
              subBuilder = options_.toBuilder();
            }
            options_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(options_);
              options_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000020;
            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_ListFilesRequest_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_ListFilesRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.ListFilesRequest.class, org.yamcs.protobuf.ListFilesRequest.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 = 2; private volatile java.lang.Object serviceName_; /** *
   * File transfer service name
   * 
* * optional string serviceName = 2; * @return Whether the serviceName field is set. */ @java.lang.Override public boolean hasServiceName() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * File transfer service name
   * 
* * optional string serviceName = 2; * @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 = 2; * @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 SOURCE_FIELD_NUMBER = 3; private volatile java.lang.Object source_; /** *
   * Entity from which to get the file list
   * 
* * optional string source = 3; * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Entity from which to get the file list
   * 
* * optional string source = 3; * @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; } } /** *
   * Entity from which to get the file list
   * 
* * optional string source = 3; * @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 = 4; private volatile java.lang.Object destination_; /** *
   * Entity from which to get the file list
   * 
* * optional string destination = 4; * @return Whether the destination field is set. */ @java.lang.Override public boolean hasDestination() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Entity from which to get the file list
   * 
* * optional string destination = 4; * @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; } } /** *
   * Entity from which to get the file list
   * 
* * optional string destination = 4; * @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 REMOTEPATH_FIELD_NUMBER = 5; private volatile java.lang.Object remotePath_; /** *
   * Path of folder to list files from
   * 
* * optional string remotePath = 5; * @return Whether the remotePath field is set. */ @java.lang.Override public boolean hasRemotePath() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Path of folder to list files from
   * 
* * 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; } } /** *
   * Path of folder to list files from
   * 
* * 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 OPTIONS_FIELD_NUMBER = 6; private com.google.protobuf.Struct options_; /** *
   * Options for the transfer
   * 
* * optional .google.protobuf.Struct options = 6; * @return Whether the options field is set. */ @java.lang.Override public boolean hasOptions() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Options for the transfer
   * 
* * optional .google.protobuf.Struct options = 6; * @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 = 6; */ @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_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, serviceName_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, source_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, destination_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, remotePath_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, 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_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, serviceName_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, source_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, destination_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, remotePath_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, 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.ListFilesRequest)) { return super.equals(obj); } org.yamcs.protobuf.ListFilesRequest other = (org.yamcs.protobuf.ListFilesRequest) 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 (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 (hasRemotePath() != other.hasRemotePath()) return false; if (hasRemotePath()) { if (!getRemotePath() .equals(other.getRemotePath())) 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 (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 (hasRemotePath()) { hash = (37 * hash) + REMOTEPATH_FIELD_NUMBER; hash = (53 * hash) + getRemotePath().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.ListFilesRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListFilesRequest 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.ListFilesRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListFilesRequest 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.ListFilesRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListFilesRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.ListFilesRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListFilesRequest 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.ListFilesRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListFilesRequest 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.ListFilesRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListFilesRequest 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.ListFilesRequest 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.ListFilesRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.filetransfer.ListFilesRequest) org.yamcs.protobuf.ListFilesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_ListFilesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_ListFilesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.ListFilesRequest.class, org.yamcs.protobuf.ListFilesRequest.Builder.class); } // Construct using org.yamcs.protobuf.ListFilesRequest.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); source_ = ""; bitField0_ = (bitField0_ & ~0x00000004); destination_ = ""; bitField0_ = (bitField0_ & ~0x00000008); remotePath_ = ""; bitField0_ = (bitField0_ & ~0x00000010); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_ListFilesRequest_descriptor; } @java.lang.Override public org.yamcs.protobuf.ListFilesRequest getDefaultInstanceForType() { return org.yamcs.protobuf.ListFilesRequest.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.ListFilesRequest build() { org.yamcs.protobuf.ListFilesRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.ListFilesRequest buildPartial() { org.yamcs.protobuf.ListFilesRequest result = new org.yamcs.protobuf.ListFilesRequest(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.source_ = source_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.destination_ = destination_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.remotePath_ = remotePath_; if (((from_bitField0_ & 0x00000020) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000020; } 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.ListFilesRequest) { return mergeFrom((org.yamcs.protobuf.ListFilesRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.ListFilesRequest other) { if (other == org.yamcs.protobuf.ListFilesRequest.getDefaultInstance()) return this; if (other.hasInstance()) { bitField0_ |= 0x00000001; instance_ = other.instance_; onChanged(); } if (other.hasServiceName()) { bitField0_ |= 0x00000002; serviceName_ = other.serviceName_; onChanged(); } if (other.hasSource()) { bitField0_ |= 0x00000004; source_ = other.source_; onChanged(); } if (other.hasDestination()) { bitField0_ |= 0x00000008; destination_ = other.destination_; onChanged(); } if (other.hasRemotePath()) { bitField0_ |= 0x00000010; remotePath_ = other.remotePath_; 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.ListFilesRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.ListFilesRequest) 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 = 2; * @return Whether the serviceName field is set. */ public boolean hasServiceName() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * File transfer service name
     * 
* * optional string serviceName = 2; * @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 = 2; * @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 = 2; * @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 = 2; * @return This builder for chaining. */ public Builder clearServiceName() { bitField0_ = (bitField0_ & ~0x00000002); serviceName_ = getDefaultInstance().getServiceName(); onChanged(); return this; } /** *
     * File transfer service name
     * 
* * optional string serviceName = 2; * @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 java.lang.Object source_ = ""; /** *
     * Entity from which to get the file list
     * 
* * optional string source = 3; * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Entity from which to get the file list
     * 
* * optional string source = 3; * @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; } } /** *
     * Entity from which to get the file list
     * 
* * optional string source = 3; * @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; } } /** *
     * Entity from which to get the file list
     * 
* * optional string source = 3; * @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_ |= 0x00000004; source_ = value; onChanged(); return this; } /** *
     * Entity from which to get the file list
     * 
* * optional string source = 3; * @return This builder for chaining. */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000004); source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** *
     * Entity from which to get the file list
     * 
* * optional string source = 3; * @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_ |= 0x00000004; source_ = value; onChanged(); return this; } private java.lang.Object destination_ = ""; /** *
     * Entity from which to get the file list
     * 
* * optional string destination = 4; * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Entity from which to get the file list
     * 
* * optional string destination = 4; * @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; } } /** *
     * Entity from which to get the file list
     * 
* * optional string destination = 4; * @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; } } /** *
     * Entity from which to get the file list
     * 
* * optional string destination = 4; * @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_ |= 0x00000008; destination_ = value; onChanged(); return this; } /** *
     * Entity from which to get the file list
     * 
* * optional string destination = 4; * @return This builder for chaining. */ public Builder clearDestination() { bitField0_ = (bitField0_ & ~0x00000008); destination_ = getDefaultInstance().getDestination(); onChanged(); return this; } /** *
     * Entity from which to get the file list
     * 
* * optional string destination = 4; * @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_ |= 0x00000008; destination_ = value; onChanged(); return this; } private java.lang.Object remotePath_ = ""; /** *
     * Path of folder to list files from
     * 
* * optional string remotePath = 5; * @return Whether the remotePath field is set. */ public boolean hasRemotePath() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Path of folder to list files from
     * 
* * 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; } } /** *
     * Path of folder to list files from
     * 
* * 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; } } /** *
     * Path of folder to list files from
     * 
* * 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_ |= 0x00000010; remotePath_ = value; onChanged(); return this; } /** *
     * Path of folder to list files from
     * 
* * optional string remotePath = 5; * @return This builder for chaining. */ public Builder clearRemotePath() { bitField0_ = (bitField0_ & ~0x00000010); remotePath_ = getDefaultInstance().getRemotePath(); onChanged(); return this; } /** *
     * Path of folder to list files from
     * 
* * 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_ |= 0x00000010; remotePath_ = 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 = 6; * @return Whether the options field is set. */ public boolean hasOptions() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 6; * @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 = 6; */ 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_ |= 0x00000020; return this; } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 6; */ public Builder setOptions( com.google.protobuf.Struct.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 6; */ public Builder mergeOptions(com.google.protobuf.Struct value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 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_ |= 0x00000020; return this; } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 6; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 6; */ public com.google.protobuf.Struct.Builder getOptionsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** *
     * Options for the transfer
     * 
* * optional .google.protobuf.Struct options = 6; */ 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 = 6; */ 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.ListFilesRequest) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.filetransfer.ListFilesRequest) private static final org.yamcs.protobuf.ListFilesRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.ListFilesRequest(); } public static org.yamcs.protobuf.ListFilesRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFilesRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFilesRequest(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.ListFilesRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy