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

main.java.com.streamlayer.files.ListResponse Maven / Gradle / Ivy

There is a newer version: 5.133.1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: streamlayer/files/files.proto

// Protobuf Java Version: 3.25.3
package com.streamlayer.files;

/**
 * Protobuf type {@code streamlayer.files.ListResponse}
 */
public  final class ListResponse extends
    com.google.protobuf.GeneratedMessageLite<
        ListResponse, ListResponse.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.files.ListResponse)
    ListResponseOrBuilder {
  private ListResponse() {
    files_ = emptyProtobufList();
  }
  public interface FileOrBuilder extends
      // @@protoc_insertion_point(interface_extends:streamlayer.files.ListResponse.File)
      com.google.protobuf.MessageLiteOrBuilder {

    /**
     * string id = 1 [json_name = "id"];
     * @return The id.
     */
    java.lang.String getId();
    /**
     * string id = 1 [json_name = "id"];
     * @return The bytes for id.
     */
    com.google.protobuf.ByteString
        getIdBytes();

    /**
     * string owner = 2 [json_name = "owner"];
     * @return The owner.
     */
    java.lang.String getOwner();
    /**
     * string owner = 2 [json_name = "owner"];
     * @return The bytes for owner.
     */
    com.google.protobuf.ByteString
        getOwnerBytes();

    /**
     * string upload_id = 3 [json_name = "uploadId"];
     * @return The uploadId.
     */
    java.lang.String getUploadId();
    /**
     * string upload_id = 3 [json_name = "uploadId"];
     * @return The bytes for uploadId.
     */
    com.google.protobuf.ByteString
        getUploadIdBytes();

    /**
     * string status = 4 [json_name = "status"];
     * @return The status.
     */
    java.lang.String getStatus();
    /**
     * string status = 4 [json_name = "status"];
     * @return The bytes for status.
     */
    com.google.protobuf.ByteString
        getStatusBytes();

    /**
     * int32 content_length = 5 [json_name = "contentLength"];
     * @return The contentLength.
     */
    int getContentLength();

    /**
     * bool public = 6 [json_name = "public"];
     * @return The public.
     */
    boolean getPublic();

    /**
     * string name = 7 [json_name = "name"];
     * @return The name.
     */
    java.lang.String getName();
    /**
     * string name = 7 [json_name = "name"];
     * @return The bytes for name.
     */
    com.google.protobuf.ByteString
        getNameBytes();
  }
  /**
   * Protobuf type {@code streamlayer.files.ListResponse.File}
   */
  public  static final class File extends
      com.google.protobuf.GeneratedMessageLite<
          File, File.Builder> implements
      // @@protoc_insertion_point(message_implements:streamlayer.files.ListResponse.File)
      FileOrBuilder {
    private File() {
      id_ = "";
      owner_ = "";
      uploadId_ = "";
      status_ = "";
      name_ = "";
    }
    public static final int ID_FIELD_NUMBER = 1;
    private java.lang.String id_;
    /**
     * string id = 1 [json_name = "id"];
     * @return The id.
     */
    @java.lang.Override
    public java.lang.String getId() {
      return id_;
    }
    /**
     * string id = 1 [json_name = "id"];
     * @return The bytes for id.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getIdBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(id_);
    }
    /**
     * string id = 1 [json_name = "id"];
     * @param value The id to set.
     */
    private void setId(
        java.lang.String value) {
      java.lang.Class valueClass = value.getClass();
  
      id_ = value;
    }
    /**
     * string id = 1 [json_name = "id"];
     */
    private void clearId() {

      id_ = getDefaultInstance().getId();
    }
    /**
     * string id = 1 [json_name = "id"];
     * @param value The bytes for id to set.
     */
    private void setIdBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      id_ = value.toStringUtf8();

    }

    public static final int OWNER_FIELD_NUMBER = 2;
    private java.lang.String owner_;
    /**
     * string owner = 2 [json_name = "owner"];
     * @return The owner.
     */
    @java.lang.Override
    public java.lang.String getOwner() {
      return owner_;
    }
    /**
     * string owner = 2 [json_name = "owner"];
     * @return The bytes for owner.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getOwnerBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(owner_);
    }
    /**
     * string owner = 2 [json_name = "owner"];
     * @param value The owner to set.
     */
    private void setOwner(
        java.lang.String value) {
      java.lang.Class valueClass = value.getClass();
  
      owner_ = value;
    }
    /**
     * string owner = 2 [json_name = "owner"];
     */
    private void clearOwner() {

      owner_ = getDefaultInstance().getOwner();
    }
    /**
     * string owner = 2 [json_name = "owner"];
     * @param value The bytes for owner to set.
     */
    private void setOwnerBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      owner_ = value.toStringUtf8();

    }

    public static final int UPLOAD_ID_FIELD_NUMBER = 3;
    private java.lang.String uploadId_;
    /**
     * string upload_id = 3 [json_name = "uploadId"];
     * @return The uploadId.
     */
    @java.lang.Override
    public java.lang.String getUploadId() {
      return uploadId_;
    }
    /**
     * string upload_id = 3 [json_name = "uploadId"];
     * @return The bytes for uploadId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getUploadIdBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(uploadId_);
    }
    /**
     * string upload_id = 3 [json_name = "uploadId"];
     * @param value The uploadId to set.
     */
    private void setUploadId(
        java.lang.String value) {
      java.lang.Class valueClass = value.getClass();
  
      uploadId_ = value;
    }
    /**
     * string upload_id = 3 [json_name = "uploadId"];
     */
    private void clearUploadId() {

      uploadId_ = getDefaultInstance().getUploadId();
    }
    /**
     * string upload_id = 3 [json_name = "uploadId"];
     * @param value The bytes for uploadId to set.
     */
    private void setUploadIdBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      uploadId_ = value.toStringUtf8();

    }

    public static final int STATUS_FIELD_NUMBER = 4;
    private java.lang.String status_;
    /**
     * string status = 4 [json_name = "status"];
     * @return The status.
     */
    @java.lang.Override
    public java.lang.String getStatus() {
      return status_;
    }
    /**
     * string status = 4 [json_name = "status"];
     * @return The bytes for status.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getStatusBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(status_);
    }
    /**
     * string status = 4 [json_name = "status"];
     * @param value The status to set.
     */
    private void setStatus(
        java.lang.String value) {
      java.lang.Class valueClass = value.getClass();
  
      status_ = value;
    }
    /**
     * string status = 4 [json_name = "status"];
     */
    private void clearStatus() {

      status_ = getDefaultInstance().getStatus();
    }
    /**
     * string status = 4 [json_name = "status"];
     * @param value The bytes for status to set.
     */
    private void setStatusBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      status_ = value.toStringUtf8();

    }

    public static final int CONTENT_LENGTH_FIELD_NUMBER = 5;
    private int contentLength_;
    /**
     * int32 content_length = 5 [json_name = "contentLength"];
     * @return The contentLength.
     */
    @java.lang.Override
    public int getContentLength() {
      return contentLength_;
    }
    /**
     * int32 content_length = 5 [json_name = "contentLength"];
     * @param value The contentLength to set.
     */
    private void setContentLength(int value) {
      
      contentLength_ = value;
    }
    /**
     * int32 content_length = 5 [json_name = "contentLength"];
     */
    private void clearContentLength() {

      contentLength_ = 0;
    }

    public static final int PUBLIC_FIELD_NUMBER = 6;
    private boolean public_;
    /**
     * bool public = 6 [json_name = "public"];
     * @return The public.
     */
    @java.lang.Override
    public boolean getPublic() {
      return public_;
    }
    /**
     * bool public = 6 [json_name = "public"];
     * @param value The public to set.
     */
    private void setPublic(boolean value) {
      
      public_ = value;
    }
    /**
     * bool public = 6 [json_name = "public"];
     */
    private void clearPublic() {

      public_ = false;
    }

    public static final int NAME_FIELD_NUMBER = 7;
    private java.lang.String name_;
    /**
     * string name = 7 [json_name = "name"];
     * @return The name.
     */
    @java.lang.Override
    public java.lang.String getName() {
      return name_;
    }
    /**
     * string name = 7 [json_name = "name"];
     * @return The bytes for name.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getNameBytes() {
      return com.google.protobuf.ByteString.copyFromUtf8(name_);
    }
    /**
     * string name = 7 [json_name = "name"];
     * @param value The name to set.
     */
    private void setName(
        java.lang.String value) {
      java.lang.Class valueClass = value.getClass();
  
      name_ = value;
    }
    /**
     * string name = 7 [json_name = "name"];
     */
    private void clearName() {

      name_ = getDefaultInstance().getName();
    }
    /**
     * string name = 7 [json_name = "name"];
     * @param value The bytes for name to set.
     */
    private void setNameBytes(
        com.google.protobuf.ByteString value) {
      checkByteStringIsUtf8(value);
      name_ = value.toStringUtf8();

    }

    public static com.streamlayer.files.ListResponse.File parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.streamlayer.files.ListResponse.File parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.streamlayer.files.ListResponse.File parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.streamlayer.files.ListResponse.File parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.streamlayer.files.ListResponse.File parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data);
    }
    public static com.streamlayer.files.ListResponse.File parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, data, extensionRegistry);
    }
    public static com.streamlayer.files.ListResponse.File parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static com.streamlayer.files.ListResponse.File parseFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static com.streamlayer.files.ListResponse.File parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input);
    }

    public static com.streamlayer.files.ListResponse.File parseDelimitedFrom(
        java.io.InputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
    }
    public static com.streamlayer.files.ListResponse.File parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input);
    }
    public static com.streamlayer.files.ListResponse.File parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageLite.parseFrom(
          DEFAULT_INSTANCE, input, extensionRegistry);
    }

    public static Builder newBuilder() {
      return (Builder) DEFAULT_INSTANCE.createBuilder();
    }
    public static Builder newBuilder(com.streamlayer.files.ListResponse.File prototype) {
      return DEFAULT_INSTANCE.createBuilder(prototype);
    }

    /**
     * Protobuf type {@code streamlayer.files.ListResponse.File}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageLite.Builder<
          com.streamlayer.files.ListResponse.File, Builder> implements
        // @@protoc_insertion_point(builder_implements:streamlayer.files.ListResponse.File)
        com.streamlayer.files.ListResponse.FileOrBuilder {
      // Construct using com.streamlayer.files.ListResponse.File.newBuilder()
      private Builder() {
        super(DEFAULT_INSTANCE);
      }


      /**
       * string id = 1 [json_name = "id"];
       * @return The id.
       */
      @java.lang.Override
      public java.lang.String getId() {
        return instance.getId();
      }
      /**
       * string id = 1 [json_name = "id"];
       * @return The bytes for id.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getIdBytes() {
        return instance.getIdBytes();
      }
      /**
       * string id = 1 [json_name = "id"];
       * @param value The id to set.
       * @return This builder for chaining.
       */
      public Builder setId(
          java.lang.String value) {
        copyOnWrite();
        instance.setId(value);
        return this;
      }
      /**
       * string id = 1 [json_name = "id"];
       * @return This builder for chaining.
       */
      public Builder clearId() {
        copyOnWrite();
        instance.clearId();
        return this;
      }
      /**
       * string id = 1 [json_name = "id"];
       * @param value The bytes for id to set.
       * @return This builder for chaining.
       */
      public Builder setIdBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setIdBytes(value);
        return this;
      }

      /**
       * string owner = 2 [json_name = "owner"];
       * @return The owner.
       */
      @java.lang.Override
      public java.lang.String getOwner() {
        return instance.getOwner();
      }
      /**
       * string owner = 2 [json_name = "owner"];
       * @return The bytes for owner.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getOwnerBytes() {
        return instance.getOwnerBytes();
      }
      /**
       * string owner = 2 [json_name = "owner"];
       * @param value The owner to set.
       * @return This builder for chaining.
       */
      public Builder setOwner(
          java.lang.String value) {
        copyOnWrite();
        instance.setOwner(value);
        return this;
      }
      /**
       * string owner = 2 [json_name = "owner"];
       * @return This builder for chaining.
       */
      public Builder clearOwner() {
        copyOnWrite();
        instance.clearOwner();
        return this;
      }
      /**
       * string owner = 2 [json_name = "owner"];
       * @param value The bytes for owner to set.
       * @return This builder for chaining.
       */
      public Builder setOwnerBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setOwnerBytes(value);
        return this;
      }

      /**
       * string upload_id = 3 [json_name = "uploadId"];
       * @return The uploadId.
       */
      @java.lang.Override
      public java.lang.String getUploadId() {
        return instance.getUploadId();
      }
      /**
       * string upload_id = 3 [json_name = "uploadId"];
       * @return The bytes for uploadId.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getUploadIdBytes() {
        return instance.getUploadIdBytes();
      }
      /**
       * string upload_id = 3 [json_name = "uploadId"];
       * @param value The uploadId to set.
       * @return This builder for chaining.
       */
      public Builder setUploadId(
          java.lang.String value) {
        copyOnWrite();
        instance.setUploadId(value);
        return this;
      }
      /**
       * string upload_id = 3 [json_name = "uploadId"];
       * @return This builder for chaining.
       */
      public Builder clearUploadId() {
        copyOnWrite();
        instance.clearUploadId();
        return this;
      }
      /**
       * string upload_id = 3 [json_name = "uploadId"];
       * @param value The bytes for uploadId to set.
       * @return This builder for chaining.
       */
      public Builder setUploadIdBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setUploadIdBytes(value);
        return this;
      }

      /**
       * string status = 4 [json_name = "status"];
       * @return The status.
       */
      @java.lang.Override
      public java.lang.String getStatus() {
        return instance.getStatus();
      }
      /**
       * string status = 4 [json_name = "status"];
       * @return The bytes for status.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getStatusBytes() {
        return instance.getStatusBytes();
      }
      /**
       * string status = 4 [json_name = "status"];
       * @param value The status to set.
       * @return This builder for chaining.
       */
      public Builder setStatus(
          java.lang.String value) {
        copyOnWrite();
        instance.setStatus(value);
        return this;
      }
      /**
       * string status = 4 [json_name = "status"];
       * @return This builder for chaining.
       */
      public Builder clearStatus() {
        copyOnWrite();
        instance.clearStatus();
        return this;
      }
      /**
       * string status = 4 [json_name = "status"];
       * @param value The bytes for status to set.
       * @return This builder for chaining.
       */
      public Builder setStatusBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setStatusBytes(value);
        return this;
      }

      /**
       * int32 content_length = 5 [json_name = "contentLength"];
       * @return The contentLength.
       */
      @java.lang.Override
      public int getContentLength() {
        return instance.getContentLength();
      }
      /**
       * int32 content_length = 5 [json_name = "contentLength"];
       * @param value The contentLength to set.
       * @return This builder for chaining.
       */
      public Builder setContentLength(int value) {
        copyOnWrite();
        instance.setContentLength(value);
        return this;
      }
      /**
       * int32 content_length = 5 [json_name = "contentLength"];
       * @return This builder for chaining.
       */
      public Builder clearContentLength() {
        copyOnWrite();
        instance.clearContentLength();
        return this;
      }

      /**
       * bool public = 6 [json_name = "public"];
       * @return The public.
       */
      @java.lang.Override
      public boolean getPublic() {
        return instance.getPublic();
      }
      /**
       * bool public = 6 [json_name = "public"];
       * @param value The public to set.
       * @return This builder for chaining.
       */
      public Builder setPublic(boolean value) {
        copyOnWrite();
        instance.setPublic(value);
        return this;
      }
      /**
       * bool public = 6 [json_name = "public"];
       * @return This builder for chaining.
       */
      public Builder clearPublic() {
        copyOnWrite();
        instance.clearPublic();
        return this;
      }

      /**
       * string name = 7 [json_name = "name"];
       * @return The name.
       */
      @java.lang.Override
      public java.lang.String getName() {
        return instance.getName();
      }
      /**
       * string name = 7 [json_name = "name"];
       * @return The bytes for name.
       */
      @java.lang.Override
      public com.google.protobuf.ByteString
          getNameBytes() {
        return instance.getNameBytes();
      }
      /**
       * string name = 7 [json_name = "name"];
       * @param value The name to set.
       * @return This builder for chaining.
       */
      public Builder setName(
          java.lang.String value) {
        copyOnWrite();
        instance.setName(value);
        return this;
      }
      /**
       * string name = 7 [json_name = "name"];
       * @return This builder for chaining.
       */
      public Builder clearName() {
        copyOnWrite();
        instance.clearName();
        return this;
      }
      /**
       * string name = 7 [json_name = "name"];
       * @param value The bytes for name to set.
       * @return This builder for chaining.
       */
      public Builder setNameBytes(
          com.google.protobuf.ByteString value) {
        copyOnWrite();
        instance.setNameBytes(value);
        return this;
      }

      // @@protoc_insertion_point(builder_scope:streamlayer.files.ListResponse.File)
    }
    @java.lang.Override
    @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
    protected final java.lang.Object dynamicMethod(
        com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
        java.lang.Object arg0, java.lang.Object arg1) {
      switch (method) {
        case NEW_MUTABLE_INSTANCE: {
          return new com.streamlayer.files.ListResponse.File();
        }
        case NEW_BUILDER: {
          return new Builder();
        }
        case BUILD_MESSAGE_INFO: {
            java.lang.Object[] objects = new java.lang.Object[] {
              "id_",
              "owner_",
              "uploadId_",
              "status_",
              "contentLength_",
              "public_",
              "name_",
            };
            java.lang.String info =
                "\u0000\u0007\u0000\u0000\u0001\u0007\u0007\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
                "\u0003\u0208\u0004\u0208\u0005\u0004\u0006\u0007\u0007\u0208";
            return newMessageInfo(DEFAULT_INSTANCE, info, objects);
        }
        // fall through
        case GET_DEFAULT_INSTANCE: {
          return DEFAULT_INSTANCE;
        }
        case GET_PARSER: {
          com.google.protobuf.Parser parser = PARSER;
          if (parser == null) {
            synchronized (com.streamlayer.files.ListResponse.File.class) {
              parser = PARSER;
              if (parser == null) {
                parser =
                    new DefaultInstanceBasedParser(
                        DEFAULT_INSTANCE);
                PARSER = parser;
              }
            }
          }
          return parser;
      }
      case GET_MEMOIZED_IS_INITIALIZED: {
        return (byte) 1;
      }
      case SET_MEMOIZED_IS_INITIALIZED: {
        return null;
      }
      }
      throw new UnsupportedOperationException();
    }


    // @@protoc_insertion_point(class_scope:streamlayer.files.ListResponse.File)
    private static final com.streamlayer.files.ListResponse.File DEFAULT_INSTANCE;
    static {
      File defaultInstance = new File();
      // New instances are implicitly immutable so no need to make
      // immutable.
      DEFAULT_INSTANCE = defaultInstance;
      com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
        File.class, defaultInstance);
    }

    public static com.streamlayer.files.ListResponse.File getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static volatile com.google.protobuf.Parser PARSER;

    public static com.google.protobuf.Parser parser() {
      return DEFAULT_INSTANCE.getParserForType();
    }
  }

  public static final int FILES_FIELD_NUMBER = 1;
  private com.google.protobuf.Internal.ProtobufList files_;
  /**
   * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
   */
  @java.lang.Override
  public java.util.List getFilesList() {
    return files_;
  }
  /**
   * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
   */
  public java.util.List 
      getFilesOrBuilderList() {
    return files_;
  }
  /**
   * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
   */
  @java.lang.Override
  public int getFilesCount() {
    return files_.size();
  }
  /**
   * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
   */
  @java.lang.Override
  public com.streamlayer.files.ListResponse.File getFiles(int index) {
    return files_.get(index);
  }
  /**
   * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
   */
  public com.streamlayer.files.ListResponse.FileOrBuilder getFilesOrBuilder(
      int index) {
    return files_.get(index);
  }
  private void ensureFilesIsMutable() {
    com.google.protobuf.Internal.ProtobufList tmp = files_;
    if (!tmp.isModifiable()) {
      files_ =
          com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
     }
  }

  /**
   * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
   */
  private void setFiles(
      int index, com.streamlayer.files.ListResponse.File value) {
    value.getClass();
  ensureFilesIsMutable();
    files_.set(index, value);
  }
  /**
   * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
   */
  private void addFiles(com.streamlayer.files.ListResponse.File value) {
    value.getClass();
  ensureFilesIsMutable();
    files_.add(value);
  }
  /**
   * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
   */
  private void addFiles(
      int index, com.streamlayer.files.ListResponse.File value) {
    value.getClass();
  ensureFilesIsMutable();
    files_.add(index, value);
  }
  /**
   * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
   */
  private void addAllFiles(
      java.lang.Iterable values) {
    ensureFilesIsMutable();
    com.google.protobuf.AbstractMessageLite.addAll(
        values, files_);
  }
  /**
   * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
   */
  private void clearFiles() {
    files_ = emptyProtobufList();
  }
  /**
   * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
   */
  private void removeFiles(int index) {
    ensureFilesIsMutable();
    files_.remove(index);
  }

  public static final int CURSOR_FIELD_NUMBER = 2;
  private int cursor_;
  /**
   * int32 cursor = 2 [json_name = "cursor"];
   * @return The cursor.
   */
  @java.lang.Override
  public int getCursor() {
    return cursor_;
  }
  /**
   * int32 cursor = 2 [json_name = "cursor"];
   * @param value The cursor to set.
   */
  private void setCursor(int value) {
    
    cursor_ = value;
  }
  /**
   * int32 cursor = 2 [json_name = "cursor"];
   */
  private void clearCursor() {

    cursor_ = 0;
  }

  public static final int PAGE_FIELD_NUMBER = 3;
  private int page_;
  /**
   * int32 page = 3 [json_name = "page"];
   * @return The page.
   */
  @java.lang.Override
  public int getPage() {
    return page_;
  }
  /**
   * int32 page = 3 [json_name = "page"];
   * @param value The page to set.
   */
  private void setPage(int value) {
    
    page_ = value;
  }
  /**
   * int32 page = 3 [json_name = "page"];
   */
  private void clearPage() {

    page_ = 0;
  }

  public static final int PAGES_FIELD_NUMBER = 4;
  private int pages_;
  /**
   * int32 pages = 4 [json_name = "pages"];
   * @return The pages.
   */
  @java.lang.Override
  public int getPages() {
    return pages_;
  }
  /**
   * int32 pages = 4 [json_name = "pages"];
   * @param value The pages to set.
   */
  private void setPages(int value) {
    
    pages_ = value;
  }
  /**
   * int32 pages = 4 [json_name = "pages"];
   */
  private void clearPages() {

    pages_ = 0;
  }

  public static final int TIME_FIELD_NUMBER = 5;
  private int time_;
  /**
   * int32 time = 5 [json_name = "time"];
   * @return The time.
   */
  @java.lang.Override
  public int getTime() {
    return time_;
  }
  /**
   * int32 time = 5 [json_name = "time"];
   * @param value The time to set.
   */
  private void setTime(int value) {
    
    time_ = value;
  }
  /**
   * int32 time = 5 [json_name = "time"];
   */
  private void clearTime() {

    time_ = 0;
  }

  public static com.streamlayer.files.ListResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.files.ListResponse parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.files.ListResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.files.ListResponse parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.files.ListResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.files.ListResponse parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data, extensionRegistry);
  }
  public static com.streamlayer.files.ListResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.files.ListResponse parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static com.streamlayer.files.ListResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.files.ListResponse parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
  }
  public static com.streamlayer.files.ListResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.files.ListResponse parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input, extensionRegistry);
  }

  public static Builder newBuilder() {
    return (Builder) DEFAULT_INSTANCE.createBuilder();
  }
  public static Builder newBuilder(com.streamlayer.files.ListResponse prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

  /**
   * Protobuf type {@code streamlayer.files.ListResponse}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageLite.Builder<
        com.streamlayer.files.ListResponse, Builder> implements
      // @@protoc_insertion_point(builder_implements:streamlayer.files.ListResponse)
      com.streamlayer.files.ListResponseOrBuilder {
    // Construct using com.streamlayer.files.ListResponse.newBuilder()
    private Builder() {
      super(DEFAULT_INSTANCE);
    }


    /**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    @java.lang.Override
    public java.util.List getFilesList() {
      return java.util.Collections.unmodifiableList(
          instance.getFilesList());
    }
    /**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    @java.lang.Override
    public int getFilesCount() {
      return instance.getFilesCount();
    }/**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    @java.lang.Override
    public com.streamlayer.files.ListResponse.File getFiles(int index) {
      return instance.getFiles(index);
    }
    /**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    public Builder setFiles(
        int index, com.streamlayer.files.ListResponse.File value) {
      copyOnWrite();
      instance.setFiles(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    public Builder setFiles(
        int index, com.streamlayer.files.ListResponse.File.Builder builderForValue) {
      copyOnWrite();
      instance.setFiles(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    public Builder addFiles(com.streamlayer.files.ListResponse.File value) {
      copyOnWrite();
      instance.addFiles(value);
      return this;
    }
    /**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    public Builder addFiles(
        int index, com.streamlayer.files.ListResponse.File value) {
      copyOnWrite();
      instance.addFiles(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    public Builder addFiles(
        com.streamlayer.files.ListResponse.File.Builder builderForValue) {
      copyOnWrite();
      instance.addFiles(builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    public Builder addFiles(
        int index, com.streamlayer.files.ListResponse.File.Builder builderForValue) {
      copyOnWrite();
      instance.addFiles(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    public Builder addAllFiles(
        java.lang.Iterable values) {
      copyOnWrite();
      instance.addAllFiles(values);
      return this;
    }
    /**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    public Builder clearFiles() {
      copyOnWrite();
      instance.clearFiles();
      return this;
    }
    /**
     * repeated .streamlayer.files.ListResponse.File files = 1 [json_name = "files"];
     */
    public Builder removeFiles(int index) {
      copyOnWrite();
      instance.removeFiles(index);
      return this;
    }

    /**
     * int32 cursor = 2 [json_name = "cursor"];
     * @return The cursor.
     */
    @java.lang.Override
    public int getCursor() {
      return instance.getCursor();
    }
    /**
     * int32 cursor = 2 [json_name = "cursor"];
     * @param value The cursor to set.
     * @return This builder for chaining.
     */
    public Builder setCursor(int value) {
      copyOnWrite();
      instance.setCursor(value);
      return this;
    }
    /**
     * int32 cursor = 2 [json_name = "cursor"];
     * @return This builder for chaining.
     */
    public Builder clearCursor() {
      copyOnWrite();
      instance.clearCursor();
      return this;
    }

    /**
     * int32 page = 3 [json_name = "page"];
     * @return The page.
     */
    @java.lang.Override
    public int getPage() {
      return instance.getPage();
    }
    /**
     * int32 page = 3 [json_name = "page"];
     * @param value The page to set.
     * @return This builder for chaining.
     */
    public Builder setPage(int value) {
      copyOnWrite();
      instance.setPage(value);
      return this;
    }
    /**
     * int32 page = 3 [json_name = "page"];
     * @return This builder for chaining.
     */
    public Builder clearPage() {
      copyOnWrite();
      instance.clearPage();
      return this;
    }

    /**
     * int32 pages = 4 [json_name = "pages"];
     * @return The pages.
     */
    @java.lang.Override
    public int getPages() {
      return instance.getPages();
    }
    /**
     * int32 pages = 4 [json_name = "pages"];
     * @param value The pages to set.
     * @return This builder for chaining.
     */
    public Builder setPages(int value) {
      copyOnWrite();
      instance.setPages(value);
      return this;
    }
    /**
     * int32 pages = 4 [json_name = "pages"];
     * @return This builder for chaining.
     */
    public Builder clearPages() {
      copyOnWrite();
      instance.clearPages();
      return this;
    }

    /**
     * int32 time = 5 [json_name = "time"];
     * @return The time.
     */
    @java.lang.Override
    public int getTime() {
      return instance.getTime();
    }
    /**
     * int32 time = 5 [json_name = "time"];
     * @param value The time to set.
     * @return This builder for chaining.
     */
    public Builder setTime(int value) {
      copyOnWrite();
      instance.setTime(value);
      return this;
    }
    /**
     * int32 time = 5 [json_name = "time"];
     * @return This builder for chaining.
     */
    public Builder clearTime() {
      copyOnWrite();
      instance.clearTime();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.files.ListResponse)
  }
  @java.lang.Override
  @java.lang.SuppressWarnings({"unchecked", "fallthrough"})
  protected final java.lang.Object dynamicMethod(
      com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
      java.lang.Object arg0, java.lang.Object arg1) {
    switch (method) {
      case NEW_MUTABLE_INSTANCE: {
        return new com.streamlayer.files.ListResponse();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "files_",
            com.streamlayer.files.ListResponse.File.class,
            "cursor_",
            "page_",
            "pages_",
            "time_",
          };
          java.lang.String info =
              "\u0000\u0005\u0000\u0000\u0001\u0005\u0005\u0000\u0001\u0000\u0001\u001b\u0002\u0004" +
              "\u0003\u0004\u0004\u0004\u0005\u0004";
          return newMessageInfo(DEFAULT_INSTANCE, info, objects);
      }
      // fall through
      case GET_DEFAULT_INSTANCE: {
        return DEFAULT_INSTANCE;
      }
      case GET_PARSER: {
        com.google.protobuf.Parser parser = PARSER;
        if (parser == null) {
          synchronized (com.streamlayer.files.ListResponse.class) {
            parser = PARSER;
            if (parser == null) {
              parser =
                  new DefaultInstanceBasedParser(
                      DEFAULT_INSTANCE);
              PARSER = parser;
            }
          }
        }
        return parser;
    }
    case GET_MEMOIZED_IS_INITIALIZED: {
      return (byte) 1;
    }
    case SET_MEMOIZED_IS_INITIALIZED: {
      return null;
    }
    }
    throw new UnsupportedOperationException();
  }


  // @@protoc_insertion_point(class_scope:streamlayer.files.ListResponse)
  private static final com.streamlayer.files.ListResponse DEFAULT_INSTANCE;
  static {
    ListResponse defaultInstance = new ListResponse();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      ListResponse.class, defaultInstance);
  }

  public static com.streamlayer.files.ListResponse getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static volatile com.google.protobuf.Parser PARSER;

  public static com.google.protobuf.Parser parser() {
    return DEFAULT_INSTANCE.getParserForType();
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy