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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private RemoteFile(
      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;
            name_ = bs;
            break;
          }
          case 16: {
            bitField0_ |= 0x00000004;
            isDirectory_ = input.readBool();
            break;
          }
          case 24: {
            bitField0_ |= 0x00000008;
            size_ = input.readUInt64();
            break;
          }
          case 34: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000010) != 0)) {
              subBuilder = modified_.toBuilder();
            }
            modified_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(modified_);
              modified_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000010;
            break;
          }
          case 42: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            displayName_ = bs;
            break;
          }
          case 50: {
            com.google.protobuf.Struct.Builder subBuilder = null;
            if (((bitField0_ & 0x00000020) != 0)) {
              subBuilder = extra_.toBuilder();
            }
            extra_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(extra_);
              extra_ = 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_RemoteFile_descriptor;
  }

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

  private int bitField0_;
  public static final int NAME_FIELD_NUMBER = 1;
  private volatile java.lang.Object name_;
  /**
   * 
   * File identifier
   * Typically, a remote file path, or a filename
   * in case of a flat file table.
   * 
* * optional string name = 1; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * File identifier
   * Typically, a remote file path, or a filename
   * in case of a flat file table.
   * 
* * optional string name = 1; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** *
   * File identifier
   * Typically, a remote file path, or a filename
   * in case of a flat file table.
   * 
* * optional string name = 1; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DISPLAYNAME_FIELD_NUMBER = 5; private volatile java.lang.Object displayName_; /** *
   * Optional display name. Can be used when the ``name``
   * field contains information that should be hidden from the user.
   * 
* * optional string displayName = 5; * @return Whether the displayName field is set. */ @java.lang.Override public boolean hasDisplayName() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Optional display name. Can be used when the ``name``
   * field contains information that should be hidden from the user.
   * 
* * optional string displayName = 5; * @return The displayName. */ @java.lang.Override public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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()) { displayName_ = s; } return s; } } /** *
   * Optional display name. Can be used when the ``name``
   * field contains information that should be hidden from the user.
   * 
* * optional string displayName = 5; * @return The bytes for displayName. */ @java.lang.Override public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ISDIRECTORY_FIELD_NUMBER = 2; private boolean isDirectory_; /** *
   * True if the path represents a directory
   * 
* * optional bool isDirectory = 2; * @return Whether the isDirectory field is set. */ @java.lang.Override public boolean hasIsDirectory() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * True if the path represents a directory
   * 
* * optional bool isDirectory = 2; * @return The isDirectory. */ @java.lang.Override public boolean getIsDirectory() { return isDirectory_; } public static final int SIZE_FIELD_NUMBER = 3; private long size_; /** *
   * File size
   * 
* * optional uint64 size = 3; * @return Whether the size field is set. */ @java.lang.Override public boolean hasSize() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * File size
   * 
* * optional uint64 size = 3; * @return The size. */ @java.lang.Override public long getSize() { return size_; } public static final int MODIFIED_FIELD_NUMBER = 4; private com.google.protobuf.Timestamp modified_; /** *
   * Modification time
   * 
* * optional .google.protobuf.Timestamp modified = 4; * @return Whether the modified field is set. */ @java.lang.Override public boolean hasModified() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Modification time
   * 
* * optional .google.protobuf.Timestamp modified = 4; * @return The modified. */ @java.lang.Override public com.google.protobuf.Timestamp getModified() { return modified_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modified_; } /** *
   * Modification time
   * 
* * optional .google.protobuf.Timestamp modified = 4; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getModifiedOrBuilder() { return modified_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modified_; } public static final int EXTRA_FIELD_NUMBER = 6; private com.google.protobuf.Struct extra_; /** *
   * Implementation-specific fields
   * 
* * optional .google.protobuf.Struct extra = 6; * @return Whether the extra field is set. */ @java.lang.Override public boolean hasExtra() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Implementation-specific fields
   * 
* * optional .google.protobuf.Struct extra = 6; * @return The extra. */ @java.lang.Override public com.google.protobuf.Struct getExtra() { return extra_ == null ? com.google.protobuf.Struct.getDefaultInstance() : extra_; } /** *
   * Implementation-specific fields
   * 
* * optional .google.protobuf.Struct extra = 6; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getExtraOrBuilder() { return extra_ == null ? com.google.protobuf.Struct.getDefaultInstance() : extra_; } 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, name_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(2, isDirectory_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt64(3, size_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(4, getModified()); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getExtra()); } 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, name_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, isDirectory_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, size_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getModified()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getExtra()); } 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.RemoteFile)) { return super.equals(obj); } org.yamcs.protobuf.RemoteFile other = (org.yamcs.protobuf.RemoteFile) obj; if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasDisplayName() != other.hasDisplayName()) return false; if (hasDisplayName()) { if (!getDisplayName() .equals(other.getDisplayName())) return false; } if (hasIsDirectory() != other.hasIsDirectory()) return false; if (hasIsDirectory()) { if (getIsDirectory() != other.getIsDirectory()) return false; } if (hasSize() != other.hasSize()) return false; if (hasSize()) { if (getSize() != other.getSize()) return false; } if (hasModified() != other.hasModified()) return false; if (hasModified()) { if (!getModified() .equals(other.getModified())) return false; } if (hasExtra() != other.hasExtra()) return false; if (hasExtra()) { if (!getExtra() .equals(other.getExtra())) 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 (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasDisplayName()) { hash = (37 * hash) + DISPLAYNAME_FIELD_NUMBER; hash = (53 * hash) + getDisplayName().hashCode(); } if (hasIsDirectory()) { hash = (37 * hash) + ISDIRECTORY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsDirectory()); } if (hasSize()) { hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSize()); } if (hasModified()) { hash = (37 * hash) + MODIFIED_FIELD_NUMBER; hash = (53 * hash) + getModified().hashCode(); } if (hasExtra()) { hash = (37 * hash) + EXTRA_FIELD_NUMBER; hash = (53 * hash) + getExtra().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.RemoteFile parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.RemoteFile 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.RemoteFile parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.RemoteFile 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.RemoteFile parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.RemoteFile parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.RemoteFile parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.RemoteFile 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.RemoteFile parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.RemoteFile 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.RemoteFile parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.RemoteFile 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.RemoteFile 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.RemoteFile} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.filetransfer.RemoteFile) org.yamcs.protobuf.RemoteFileOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_RemoteFile_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.FileTransferProto.internal_static_yamcs_protobuf_filetransfer_RemoteFile_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.RemoteFile.class, org.yamcs.protobuf.RemoteFile.Builder.class); } // Construct using org.yamcs.protobuf.RemoteFile.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getModifiedFieldBuilder(); getExtraFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); name_ = ""; bitField0_ = (bitField0_ & ~0x00000001); displayName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); isDirectory_ = false; bitField0_ = (bitField0_ & ~0x00000004); size_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); if (modifiedBuilder_ == null) { modified_ = null; } else { modifiedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (extraBuilder_ == null) { extra_ = null; } else { extraBuilder_.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_RemoteFile_descriptor; } @java.lang.Override public org.yamcs.protobuf.RemoteFile getDefaultInstanceForType() { return org.yamcs.protobuf.RemoteFile.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.RemoteFile build() { org.yamcs.protobuf.RemoteFile result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.RemoteFile buildPartial() { org.yamcs.protobuf.RemoteFile result = new org.yamcs.protobuf.RemoteFile(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.name_ = name_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.displayName_ = displayName_; if (((from_bitField0_ & 0x00000004) != 0)) { result.isDirectory_ = isDirectory_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.size_ = size_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { if (modifiedBuilder_ == null) { result.modified_ = modified_; } else { result.modified_ = modifiedBuilder_.build(); } to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { if (extraBuilder_ == null) { result.extra_ = extra_; } else { result.extra_ = extraBuilder_.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.RemoteFile) { return mergeFrom((org.yamcs.protobuf.RemoteFile)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.RemoteFile other) { if (other == org.yamcs.protobuf.RemoteFile.getDefaultInstance()) return this; if (other.hasName()) { bitField0_ |= 0x00000001; name_ = other.name_; onChanged(); } if (other.hasDisplayName()) { bitField0_ |= 0x00000002; displayName_ = other.displayName_; onChanged(); } if (other.hasIsDirectory()) { setIsDirectory(other.getIsDirectory()); } if (other.hasSize()) { setSize(other.getSize()); } if (other.hasModified()) { mergeModified(other.getModified()); } if (other.hasExtra()) { mergeExtra(other.getExtra()); } 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.RemoteFile parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.RemoteFile) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object name_ = ""; /** *
     * File identifier
     * Typically, a remote file path, or a filename
     * in case of a flat file table.
     * 
* * optional string name = 1; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * File identifier
     * Typically, a remote file path, or a filename
     * in case of a flat file table.
     * 
* * optional string name = 1; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * File identifier
     * Typically, a remote file path, or a filename
     * in case of a flat file table.
     * 
* * optional string name = 1; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * File identifier
     * Typically, a remote file path, or a filename
     * in case of a flat file table.
     * 
* * optional string name = 1; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } /** *
     * File identifier
     * Typically, a remote file path, or a filename
     * in case of a flat file table.
     * 
* * optional string name = 1; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000001); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * File identifier
     * Typically, a remote file path, or a filename
     * in case of a flat file table.
     * 
* * optional string name = 1; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; name_ = value; onChanged(); return this; } private java.lang.Object displayName_ = ""; /** *
     * Optional display name. Can be used when the ``name``
     * field contains information that should be hidden from the user.
     * 
* * optional string displayName = 5; * @return Whether the displayName field is set. */ public boolean hasDisplayName() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Optional display name. Can be used when the ``name``
     * field contains information that should be hidden from the user.
     * 
* * optional string displayName = 5; * @return The displayName. */ public java.lang.String getDisplayName() { java.lang.Object ref = displayName_; 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()) { displayName_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Optional display name. Can be used when the ``name``
     * field contains information that should be hidden from the user.
     * 
* * optional string displayName = 5; * @return The bytes for displayName. */ public com.google.protobuf.ByteString getDisplayNameBytes() { java.lang.Object ref = displayName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); displayName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Optional display name. Can be used when the ``name``
     * field contains information that should be hidden from the user.
     * 
* * optional string displayName = 5; * @param value The displayName to set. * @return This builder for chaining. */ public Builder setDisplayName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; displayName_ = value; onChanged(); return this; } /** *
     * Optional display name. Can be used when the ``name``
     * field contains information that should be hidden from the user.
     * 
* * optional string displayName = 5; * @return This builder for chaining. */ public Builder clearDisplayName() { bitField0_ = (bitField0_ & ~0x00000002); displayName_ = getDefaultInstance().getDisplayName(); onChanged(); return this; } /** *
     * Optional display name. Can be used when the ``name``
     * field contains information that should be hidden from the user.
     * 
* * optional string displayName = 5; * @param value The bytes for displayName to set. * @return This builder for chaining. */ public Builder setDisplayNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; displayName_ = value; onChanged(); return this; } private boolean isDirectory_ ; /** *
     * True if the path represents a directory
     * 
* * optional bool isDirectory = 2; * @return Whether the isDirectory field is set. */ @java.lang.Override public boolean hasIsDirectory() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * True if the path represents a directory
     * 
* * optional bool isDirectory = 2; * @return The isDirectory. */ @java.lang.Override public boolean getIsDirectory() { return isDirectory_; } /** *
     * True if the path represents a directory
     * 
* * optional bool isDirectory = 2; * @param value The isDirectory to set. * @return This builder for chaining. */ public Builder setIsDirectory(boolean value) { bitField0_ |= 0x00000004; isDirectory_ = value; onChanged(); return this; } /** *
     * True if the path represents a directory
     * 
* * optional bool isDirectory = 2; * @return This builder for chaining. */ public Builder clearIsDirectory() { bitField0_ = (bitField0_ & ~0x00000004); isDirectory_ = false; onChanged(); return this; } private long size_ ; /** *
     * File size
     * 
* * optional uint64 size = 3; * @return Whether the size field is set. */ @java.lang.Override public boolean hasSize() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * File size
     * 
* * optional uint64 size = 3; * @return The size. */ @java.lang.Override public long getSize() { return size_; } /** *
     * File size
     * 
* * optional uint64 size = 3; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(long value) { bitField0_ |= 0x00000008; size_ = value; onChanged(); return this; } /** *
     * File size
     * 
* * optional uint64 size = 3; * @return This builder for chaining. */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000008); size_ = 0L; onChanged(); return this; } private com.google.protobuf.Timestamp modified_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> modifiedBuilder_; /** *
     * Modification time
     * 
* * optional .google.protobuf.Timestamp modified = 4; * @return Whether the modified field is set. */ public boolean hasModified() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Modification time
     * 
* * optional .google.protobuf.Timestamp modified = 4; * @return The modified. */ public com.google.protobuf.Timestamp getModified() { if (modifiedBuilder_ == null) { return modified_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modified_; } else { return modifiedBuilder_.getMessage(); } } /** *
     * Modification time
     * 
* * optional .google.protobuf.Timestamp modified = 4; */ public Builder setModified(com.google.protobuf.Timestamp value) { if (modifiedBuilder_ == null) { if (value == null) { throw new NullPointerException(); } modified_ = value; onChanged(); } else { modifiedBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
     * Modification time
     * 
* * optional .google.protobuf.Timestamp modified = 4; */ public Builder setModified( com.google.protobuf.Timestamp.Builder builderForValue) { if (modifiedBuilder_ == null) { modified_ = builderForValue.build(); onChanged(); } else { modifiedBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
     * Modification time
     * 
* * optional .google.protobuf.Timestamp modified = 4; */ public Builder mergeModified(com.google.protobuf.Timestamp value) { if (modifiedBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && modified_ != null && modified_ != com.google.protobuf.Timestamp.getDefaultInstance()) { modified_ = com.google.protobuf.Timestamp.newBuilder(modified_).mergeFrom(value).buildPartial(); } else { modified_ = value; } onChanged(); } else { modifiedBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
     * Modification time
     * 
* * optional .google.protobuf.Timestamp modified = 4; */ public Builder clearModified() { if (modifiedBuilder_ == null) { modified_ = null; onChanged(); } else { modifiedBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
     * Modification time
     * 
* * optional .google.protobuf.Timestamp modified = 4; */ public com.google.protobuf.Timestamp.Builder getModifiedBuilder() { bitField0_ |= 0x00000010; onChanged(); return getModifiedFieldBuilder().getBuilder(); } /** *
     * Modification time
     * 
* * optional .google.protobuf.Timestamp modified = 4; */ public com.google.protobuf.TimestampOrBuilder getModifiedOrBuilder() { if (modifiedBuilder_ != null) { return modifiedBuilder_.getMessageOrBuilder(); } else { return modified_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modified_; } } /** *
     * Modification time
     * 
* * optional .google.protobuf.Timestamp modified = 4; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getModifiedFieldBuilder() { if (modifiedBuilder_ == null) { modifiedBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getModified(), getParentForChildren(), isClean()); modified_ = null; } return modifiedBuilder_; } private com.google.protobuf.Struct extra_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> extraBuilder_; /** *
     * Implementation-specific fields
     * 
* * optional .google.protobuf.Struct extra = 6; * @return Whether the extra field is set. */ public boolean hasExtra() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Implementation-specific fields
     * 
* * optional .google.protobuf.Struct extra = 6; * @return The extra. */ public com.google.protobuf.Struct getExtra() { if (extraBuilder_ == null) { return extra_ == null ? com.google.protobuf.Struct.getDefaultInstance() : extra_; } else { return extraBuilder_.getMessage(); } } /** *
     * Implementation-specific fields
     * 
* * optional .google.protobuf.Struct extra = 6; */ public Builder setExtra(com.google.protobuf.Struct value) { if (extraBuilder_ == null) { if (value == null) { throw new NullPointerException(); } extra_ = value; onChanged(); } else { extraBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Implementation-specific fields
     * 
* * optional .google.protobuf.Struct extra = 6; */ public Builder setExtra( com.google.protobuf.Struct.Builder builderForValue) { if (extraBuilder_ == null) { extra_ = builderForValue.build(); onChanged(); } else { extraBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
     * Implementation-specific fields
     * 
* * optional .google.protobuf.Struct extra = 6; */ public Builder mergeExtra(com.google.protobuf.Struct value) { if (extraBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && extra_ != null && extra_ != com.google.protobuf.Struct.getDefaultInstance()) { extra_ = com.google.protobuf.Struct.newBuilder(extra_).mergeFrom(value).buildPartial(); } else { extra_ = value; } onChanged(); } else { extraBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Implementation-specific fields
     * 
* * optional .google.protobuf.Struct extra = 6; */ public Builder clearExtra() { if (extraBuilder_ == null) { extra_ = null; onChanged(); } else { extraBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
     * Implementation-specific fields
     * 
* * optional .google.protobuf.Struct extra = 6; */ public com.google.protobuf.Struct.Builder getExtraBuilder() { bitField0_ |= 0x00000020; onChanged(); return getExtraFieldBuilder().getBuilder(); } /** *
     * Implementation-specific fields
     * 
* * optional .google.protobuf.Struct extra = 6; */ public com.google.protobuf.StructOrBuilder getExtraOrBuilder() { if (extraBuilder_ != null) { return extraBuilder_.getMessageOrBuilder(); } else { return extra_ == null ? com.google.protobuf.Struct.getDefaultInstance() : extra_; } } /** *
     * Implementation-specific fields
     * 
* * optional .google.protobuf.Struct extra = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> getExtraFieldBuilder() { if (extraBuilder_ == null) { extraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( getExtra(), getParentForChildren(), isClean()); extra_ = null; } return extraBuilder_; } @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.RemoteFile) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.filetransfer.RemoteFile) private static final org.yamcs.protobuf.RemoteFile DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.RemoteFile(); } public static org.yamcs.protobuf.RemoteFile getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RemoteFile parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RemoteFile(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.RemoteFile getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy