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

org.yamcs.protobuf.ListFilesResponse 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.ListFilesResponse}
 */
public final class ListFilesResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.filetransfer.ListFilesResponse)
    ListFilesResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ListFilesResponse.newBuilder() to construct.
  private ListFilesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ListFilesResponse() {
    files_ = java.util.Collections.emptyList();
    destination_ = "";
    remotePath_ = "";
    state_ = "";
    progressMessage_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ListFilesResponse(
      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: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              files_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            files_.add(
                input.readMessage(org.yamcs.protobuf.RemoteFile.PARSER, extensionRegistry));
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000001;
            destination_ = bs;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            remotePath_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000004) != 0)) {
              subBuilder = listTime_.toBuilder();
            }
            listTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(listTime_);
              listTime_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000004;
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            state_ = bs;
            break;
          }
          case 50: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000010;
            progressMessage_ = bs;
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        files_ = java.util.Collections.unmodifiableList(files_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_ListFilesResponse_descriptor;
  }

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

  private int bitField0_;
  public static final int FILES_FIELD_NUMBER = 1;
  private java.util.List files_;
  /**
   * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1;
   */
  @java.lang.Override
  public java.util.List getFilesList() {
    return files_;
  }
  /**
   * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1;
   */
  @java.lang.Override
  public java.util.List 
      getFilesOrBuilderList() {
    return files_;
  }
  /**
   * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1;
   */
  @java.lang.Override
  public int getFilesCount() {
    return files_.size();
  }
  /**
   * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1;
   */
  @java.lang.Override
  public org.yamcs.protobuf.RemoteFile getFiles(int index) {
    return files_.get(index);
  }
  /**
   * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1;
   */
  @java.lang.Override
  public org.yamcs.protobuf.RemoteFileOrBuilder getFilesOrBuilder(
      int index) {
    return files_.get(index);
  }

  public static final int DESTINATION_FIELD_NUMBER = 2;
  private volatile java.lang.Object destination_;
  /**
   * optional string destination = 2;
   * @return Whether the destination field is set.
   */
  @java.lang.Override
  public boolean hasDestination() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional string destination = 2;
   * @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;
    }
  }
  /**
   * optional string destination = 2;
   * @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 = 3;
  private volatile java.lang.Object remotePath_;
  /**
   * optional string remotePath = 3;
   * @return Whether the remotePath field is set.
   */
  @java.lang.Override
  public boolean hasRemotePath() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * optional string remotePath = 3;
   * @return The remotePath.
   */
  @java.lang.Override
  public java.lang.String getRemotePath() {
    java.lang.Object ref = remotePath_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      if (bs.isValidUtf8()) {
        remotePath_ = s;
      }
      return s;
    }
  }
  /**
   * optional string remotePath = 3;
   * @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 LISTTIME_FIELD_NUMBER = 4;
  private com.google.protobuf.Timestamp listTime_;
  /**
   * optional .google.protobuf.Timestamp listTime = 4;
   * @return Whether the listTime field is set.
   */
  @java.lang.Override
  public boolean hasListTime() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * optional .google.protobuf.Timestamp listTime = 4;
   * @return The listTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getListTime() {
    return listTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : listTime_;
  }
  /**
   * optional .google.protobuf.Timestamp listTime = 4;
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getListTimeOrBuilder() {
    return listTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : listTime_;
  }

  public static final int STATE_FIELD_NUMBER = 5;
  private volatile java.lang.Object state_;
  /**
   * optional string state = 5;
   * @return Whether the state field is set.
   */
  @java.lang.Override
  public boolean hasState() {
    return ((bitField0_ & 0x00000008) != 0);
  }
  /**
   * optional string state = 5;
   * @return The state.
   */
  @java.lang.Override
  public java.lang.String getState() {
    java.lang.Object ref = state_;
    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()) {
        state_ = s;
      }
      return s;
    }
  }
  /**
   * optional string state = 5;
   * @return The bytes for state.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getStateBytes() {
    java.lang.Object ref = state_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      state_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int PROGRESSMESSAGE_FIELD_NUMBER = 6;
  private volatile java.lang.Object progressMessage_;
  /**
   * 
   * Progress message, in case the file listing is still underway
   * 
* * optional string progressMessage = 6; * @return Whether the progressMessage field is set. */ @java.lang.Override public boolean hasProgressMessage() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Progress message, in case the file listing is still underway
   * 
* * optional string progressMessage = 6; * @return The progressMessage. */ @java.lang.Override public java.lang.String getProgressMessage() { java.lang.Object ref = progressMessage_; 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()) { progressMessage_ = s; } return s; } } /** *
   * Progress message, in case the file listing is still underway
   * 
* * optional string progressMessage = 6; * @return The bytes for progressMessage. */ @java.lang.Override public com.google.protobuf.ByteString getProgressMessageBytes() { java.lang.Object ref = progressMessage_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); progressMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 { for (int i = 0; i < files_.size(); i++) { output.writeMessage(1, files_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, destination_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, remotePath_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getListTime()); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, state_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, progressMessage_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < files_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, files_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, destination_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, remotePath_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getListTime()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, state_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, progressMessage_); } 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.ListFilesResponse)) { return super.equals(obj); } org.yamcs.protobuf.ListFilesResponse other = (org.yamcs.protobuf.ListFilesResponse) obj; if (!getFilesList() .equals(other.getFilesList())) 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 (hasListTime() != other.hasListTime()) return false; if (hasListTime()) { if (!getListTime() .equals(other.getListTime())) return false; } if (hasState() != other.hasState()) return false; if (hasState()) { if (!getState() .equals(other.getState())) return false; } if (hasProgressMessage() != other.hasProgressMessage()) return false; if (hasProgressMessage()) { if (!getProgressMessage() .equals(other.getProgressMessage())) 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 (getFilesCount() > 0) { hash = (37 * hash) + FILES_FIELD_NUMBER; hash = (53 * hash) + getFilesList().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 (hasListTime()) { hash = (37 * hash) + LISTTIME_FIELD_NUMBER; hash = (53 * hash) + getListTime().hashCode(); } if (hasState()) { hash = (37 * hash) + STATE_FIELD_NUMBER; hash = (53 * hash) + getState().hashCode(); } if (hasProgressMessage()) { hash = (37 * hash) + PROGRESSMESSAGE_FIELD_NUMBER; hash = (53 * hash) + getProgressMessage().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.ListFilesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListFilesResponse 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.ListFilesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListFilesResponse 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.ListFilesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListFilesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.ListFilesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListFilesResponse 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.ListFilesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListFilesResponse 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.ListFilesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListFilesResponse 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.ListFilesResponse 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.ListFilesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.filetransfer.ListFilesResponse) org.yamcs.protobuf.ListFilesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_ListFilesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_ListFilesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.ListFilesResponse.class, org.yamcs.protobuf.ListFilesResponse.Builder.class); } // Construct using org.yamcs.protobuf.ListFilesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFilesFieldBuilder(); getListTimeFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { filesBuilder_.clear(); } destination_ = ""; bitField0_ = (bitField0_ & ~0x00000002); remotePath_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (listTimeBuilder_ == null) { listTime_ = null; } else { listTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); state_ = ""; bitField0_ = (bitField0_ & ~0x00000010); progressMessage_ = ""; 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_ListFilesResponse_descriptor; } @java.lang.Override public org.yamcs.protobuf.ListFilesResponse getDefaultInstanceForType() { return org.yamcs.protobuf.ListFilesResponse.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.ListFilesResponse build() { org.yamcs.protobuf.ListFilesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.ListFilesResponse buildPartial() { org.yamcs.protobuf.ListFilesResponse result = new org.yamcs.protobuf.ListFilesResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (filesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { files_ = java.util.Collections.unmodifiableList(files_); bitField0_ = (bitField0_ & ~0x00000001); } result.files_ = files_; } else { result.files_ = filesBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000001; } result.destination_ = destination_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000002; } result.remotePath_ = remotePath_; if (((from_bitField0_ & 0x00000008) != 0)) { if (listTimeBuilder_ == null) { result.listTime_ = listTime_; } else { result.listTime_ = listTimeBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000008; } result.state_ = state_; if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000010; } result.progressMessage_ = progressMessage_; 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.ListFilesResponse) { return mergeFrom((org.yamcs.protobuf.ListFilesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.ListFilesResponse other) { if (other == org.yamcs.protobuf.ListFilesResponse.getDefaultInstance()) return this; if (filesBuilder_ == null) { if (!other.files_.isEmpty()) { if (files_.isEmpty()) { files_ = other.files_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureFilesIsMutable(); files_.addAll(other.files_); } onChanged(); } } else { if (!other.files_.isEmpty()) { if (filesBuilder_.isEmpty()) { filesBuilder_.dispose(); filesBuilder_ = null; files_ = other.files_; bitField0_ = (bitField0_ & ~0x00000001); filesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFilesFieldBuilder() : null; } else { filesBuilder_.addAllMessages(other.files_); } } } if (other.hasDestination()) { bitField0_ |= 0x00000002; destination_ = other.destination_; onChanged(); } if (other.hasRemotePath()) { bitField0_ |= 0x00000004; remotePath_ = other.remotePath_; onChanged(); } if (other.hasListTime()) { mergeListTime(other.getListTime()); } if (other.hasState()) { bitField0_ |= 0x00000010; state_ = other.state_; onChanged(); } if (other.hasProgressMessage()) { bitField0_ |= 0x00000020; progressMessage_ = other.progressMessage_; onChanged(); } 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.ListFilesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.ListFilesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List files_ = java.util.Collections.emptyList(); private void ensureFilesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { files_ = new java.util.ArrayList(files_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.RemoteFile, org.yamcs.protobuf.RemoteFile.Builder, org.yamcs.protobuf.RemoteFileOrBuilder> filesBuilder_; /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public java.util.List getFilesList() { if (filesBuilder_ == null) { return java.util.Collections.unmodifiableList(files_); } else { return filesBuilder_.getMessageList(); } } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public int getFilesCount() { if (filesBuilder_ == null) { return files_.size(); } else { return filesBuilder_.getCount(); } } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public org.yamcs.protobuf.RemoteFile getFiles(int index) { if (filesBuilder_ == null) { return files_.get(index); } else { return filesBuilder_.getMessage(index); } } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public Builder setFiles( int index, org.yamcs.protobuf.RemoteFile value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.set(index, value); onChanged(); } else { filesBuilder_.setMessage(index, value); } return this; } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public Builder setFiles( int index, org.yamcs.protobuf.RemoteFile.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.set(index, builderForValue.build()); onChanged(); } else { filesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public Builder addFiles(org.yamcs.protobuf.RemoteFile value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.add(value); onChanged(); } else { filesBuilder_.addMessage(value); } return this; } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public Builder addFiles( int index, org.yamcs.protobuf.RemoteFile value) { if (filesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFilesIsMutable(); files_.add(index, value); onChanged(); } else { filesBuilder_.addMessage(index, value); } return this; } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public Builder addFiles( org.yamcs.protobuf.RemoteFile.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.add(builderForValue.build()); onChanged(); } else { filesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public Builder addFiles( int index, org.yamcs.protobuf.RemoteFile.Builder builderForValue) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.add(index, builderForValue.build()); onChanged(); } else { filesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public Builder addAllFiles( java.lang.Iterable values) { if (filesBuilder_ == null) { ensureFilesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, files_); onChanged(); } else { filesBuilder_.addAllMessages(values); } return this; } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public Builder clearFiles() { if (filesBuilder_ == null) { files_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { filesBuilder_.clear(); } return this; } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public Builder removeFiles(int index) { if (filesBuilder_ == null) { ensureFilesIsMutable(); files_.remove(index); onChanged(); } else { filesBuilder_.remove(index); } return this; } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public org.yamcs.protobuf.RemoteFile.Builder getFilesBuilder( int index) { return getFilesFieldBuilder().getBuilder(index); } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public org.yamcs.protobuf.RemoteFileOrBuilder getFilesOrBuilder( int index) { if (filesBuilder_ == null) { return files_.get(index); } else { return filesBuilder_.getMessageOrBuilder(index); } } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public java.util.List getFilesOrBuilderList() { if (filesBuilder_ != null) { return filesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(files_); } } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public org.yamcs.protobuf.RemoteFile.Builder addFilesBuilder() { return getFilesFieldBuilder().addBuilder( org.yamcs.protobuf.RemoteFile.getDefaultInstance()); } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public org.yamcs.protobuf.RemoteFile.Builder addFilesBuilder( int index) { return getFilesFieldBuilder().addBuilder( index, org.yamcs.protobuf.RemoteFile.getDefaultInstance()); } /** * repeated .yamcs.protobuf.filetransfer.RemoteFile files = 1; */ public java.util.List getFilesBuilderList() { return getFilesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.RemoteFile, org.yamcs.protobuf.RemoteFile.Builder, org.yamcs.protobuf.RemoteFileOrBuilder> getFilesFieldBuilder() { if (filesBuilder_ == null) { filesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.RemoteFile, org.yamcs.protobuf.RemoteFile.Builder, org.yamcs.protobuf.RemoteFileOrBuilder>( files_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); files_ = null; } return filesBuilder_; } private java.lang.Object destination_ = ""; /** * optional string destination = 2; * @return Whether the destination field is set. */ public boolean hasDestination() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string destination = 2; * @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; } } /** * optional string destination = 2; * @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; } } /** * optional string destination = 2; * @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_ |= 0x00000002; destination_ = value; onChanged(); return this; } /** * optional string destination = 2; * @return This builder for chaining. */ public Builder clearDestination() { bitField0_ = (bitField0_ & ~0x00000002); destination_ = getDefaultInstance().getDestination(); onChanged(); return this; } /** * optional string destination = 2; * @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_ |= 0x00000002; destination_ = value; onChanged(); return this; } private java.lang.Object remotePath_ = ""; /** * optional string remotePath = 3; * @return Whether the remotePath field is set. */ public boolean hasRemotePath() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string remotePath = 3; * @return The remotePath. */ public java.lang.String getRemotePath() { java.lang.Object ref = remotePath_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { remotePath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string remotePath = 3; * @return The bytes for remotePath. */ public com.google.protobuf.ByteString getRemotePathBytes() { java.lang.Object ref = remotePath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); remotePath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string remotePath = 3; * @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_ |= 0x00000004; remotePath_ = value; onChanged(); return this; } /** * optional string remotePath = 3; * @return This builder for chaining. */ public Builder clearRemotePath() { bitField0_ = (bitField0_ & ~0x00000004); remotePath_ = getDefaultInstance().getRemotePath(); onChanged(); return this; } /** * optional string remotePath = 3; * @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_ |= 0x00000004; remotePath_ = value; onChanged(); return this; } private com.google.protobuf.Timestamp listTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> listTimeBuilder_; /** * optional .google.protobuf.Timestamp listTime = 4; * @return Whether the listTime field is set. */ public boolean hasListTime() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .google.protobuf.Timestamp listTime = 4; * @return The listTime. */ public com.google.protobuf.Timestamp getListTime() { if (listTimeBuilder_ == null) { return listTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : listTime_; } else { return listTimeBuilder_.getMessage(); } } /** * optional .google.protobuf.Timestamp listTime = 4; */ public Builder setListTime(com.google.protobuf.Timestamp value) { if (listTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } listTime_ = value; onChanged(); } else { listTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .google.protobuf.Timestamp listTime = 4; */ public Builder setListTime( com.google.protobuf.Timestamp.Builder builderForValue) { if (listTimeBuilder_ == null) { listTime_ = builderForValue.build(); onChanged(); } else { listTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .google.protobuf.Timestamp listTime = 4; */ public Builder mergeListTime(com.google.protobuf.Timestamp value) { if (listTimeBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && listTime_ != null && listTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { listTime_ = com.google.protobuf.Timestamp.newBuilder(listTime_).mergeFrom(value).buildPartial(); } else { listTime_ = value; } onChanged(); } else { listTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .google.protobuf.Timestamp listTime = 4; */ public Builder clearListTime() { if (listTimeBuilder_ == null) { listTime_ = null; onChanged(); } else { listTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .google.protobuf.Timestamp listTime = 4; */ public com.google.protobuf.Timestamp.Builder getListTimeBuilder() { bitField0_ |= 0x00000008; onChanged(); return getListTimeFieldBuilder().getBuilder(); } /** * optional .google.protobuf.Timestamp listTime = 4; */ public com.google.protobuf.TimestampOrBuilder getListTimeOrBuilder() { if (listTimeBuilder_ != null) { return listTimeBuilder_.getMessageOrBuilder(); } else { return listTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : listTime_; } } /** * optional .google.protobuf.Timestamp listTime = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getListTimeFieldBuilder() { if (listTimeBuilder_ == null) { listTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getListTime(), getParentForChildren(), isClean()); listTime_ = null; } return listTimeBuilder_; } private java.lang.Object state_ = ""; /** * optional string state = 5; * @return Whether the state field is set. */ public boolean hasState() { return ((bitField0_ & 0x00000010) != 0); } /** * optional string state = 5; * @return The state. */ public java.lang.String getState() { java.lang.Object ref = state_; 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()) { state_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string state = 5; * @return The bytes for state. */ public com.google.protobuf.ByteString getStateBytes() { java.lang.Object ref = state_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); state_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string state = 5; * @param value The state to set. * @return This builder for chaining. */ public Builder setState( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; state_ = value; onChanged(); return this; } /** * optional string state = 5; * @return This builder for chaining. */ public Builder clearState() { bitField0_ = (bitField0_ & ~0x00000010); state_ = getDefaultInstance().getState(); onChanged(); return this; } /** * optional string state = 5; * @param value The bytes for state to set. * @return This builder for chaining. */ public Builder setStateBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; state_ = value; onChanged(); return this; } private java.lang.Object progressMessage_ = ""; /** *
     * Progress message, in case the file listing is still underway
     * 
* * optional string progressMessage = 6; * @return Whether the progressMessage field is set. */ public boolean hasProgressMessage() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Progress message, in case the file listing is still underway
     * 
* * optional string progressMessage = 6; * @return The progressMessage. */ public java.lang.String getProgressMessage() { java.lang.Object ref = progressMessage_; 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()) { progressMessage_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Progress message, in case the file listing is still underway
     * 
* * optional string progressMessage = 6; * @return The bytes for progressMessage. */ public com.google.protobuf.ByteString getProgressMessageBytes() { java.lang.Object ref = progressMessage_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); progressMessage_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Progress message, in case the file listing is still underway
     * 
* * optional string progressMessage = 6; * @param value The progressMessage to set. * @return This builder for chaining. */ public Builder setProgressMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; progressMessage_ = value; onChanged(); return this; } /** *
     * Progress message, in case the file listing is still underway
     * 
* * optional string progressMessage = 6; * @return This builder for chaining. */ public Builder clearProgressMessage() { bitField0_ = (bitField0_ & ~0x00000020); progressMessage_ = getDefaultInstance().getProgressMessage(); onChanged(); return this; } /** *
     * Progress message, in case the file listing is still underway
     * 
* * optional string progressMessage = 6; * @param value The bytes for progressMessage to set. * @return This builder for chaining. */ public Builder setProgressMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; progressMessage_ = value; onChanged(); return this; } @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.ListFilesResponse) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.filetransfer.ListFilesResponse) private static final org.yamcs.protobuf.ListFilesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.ListFilesResponse(); } public static org.yamcs.protobuf.ListFilesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListFilesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListFilesResponse(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.ListFilesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy