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

main.java.com.streamlayer.files.InfoResponse 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.InfoResponse}
 */
public  final class InfoResponse extends
    com.google.protobuf.GeneratedMessageLite<
        InfoResponse, InfoResponse.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.files.InfoResponse)
    InfoResponseOrBuilder {
  private InfoResponse() {
    username_ = "";
    file_ = emptyProtobufList();
  }
  public static final int USERNAME_FIELD_NUMBER = 1;
  private java.lang.String username_;
  /**
   * string username = 1 [json_name = "username"];
   * @return The username.
   */
  @java.lang.Override
  public java.lang.String getUsername() {
    return username_;
  }
  /**
   * string username = 1 [json_name = "username"];
   * @return The bytes for username.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getUsernameBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(username_);
  }
  /**
   * string username = 1 [json_name = "username"];
   * @param value The username to set.
   */
  private void setUsername(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    username_ = value;
  }
  /**
   * string username = 1 [json_name = "username"];
   */
  private void clearUsername() {

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

  }

  public static final int FILE_FIELD_NUMBER = 2;
  private com.google.protobuf.Internal.ProtobufList file_;
  /**
   * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
   */
  @java.lang.Override
  public java.util.List getFileList() {
    return file_;
  }
  /**
   * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
   */
  public java.util.List 
      getFileOrBuilderList() {
    return file_;
  }
  /**
   * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
   */
  @java.lang.Override
  public int getFileCount() {
    return file_.size();
  }
  /**
   * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
   */
  @java.lang.Override
  public com.streamlayer.files.FileData getFile(int index) {
    return file_.get(index);
  }
  /**
   * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
   */
  public com.streamlayer.files.FileDataOrBuilder getFileOrBuilder(
      int index) {
    return file_.get(index);
  }
  private void ensureFileIsMutable() {
    com.google.protobuf.Internal.ProtobufList tmp = file_;
    if (!tmp.isModifiable()) {
      file_ =
          com.google.protobuf.GeneratedMessageLite.mutableCopy(tmp);
     }
  }

  /**
   * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
   */
  private void setFile(
      int index, com.streamlayer.files.FileData value) {
    value.getClass();
  ensureFileIsMutable();
    file_.set(index, value);
  }
  /**
   * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
   */
  private void addFile(com.streamlayer.files.FileData value) {
    value.getClass();
  ensureFileIsMutable();
    file_.add(value);
  }
  /**
   * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
   */
  private void addFile(
      int index, com.streamlayer.files.FileData value) {
    value.getClass();
  ensureFileIsMutable();
    file_.add(index, value);
  }
  /**
   * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
   */
  private void addAllFile(
      java.lang.Iterable values) {
    ensureFileIsMutable();
    com.google.protobuf.AbstractMessageLite.addAll(
        values, file_);
  }
  /**
   * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
   */
  private void clearFile() {
    file_ = emptyProtobufList();
  }
  /**
   * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
   */
  private void removeFile(int index) {
    ensureFileIsMutable();
    file_.remove(index);
  }

  public static com.streamlayer.files.InfoResponse parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.files.InfoResponse 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.InfoResponse 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.InfoResponse 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.InfoResponse parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, data);
  }
  public static com.streamlayer.files.InfoResponse 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.InfoResponse parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.files.InfoResponse 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.InfoResponse parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return parseDelimitedFrom(DEFAULT_INSTANCE, input);
  }

  public static com.streamlayer.files.InfoResponse 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.InfoResponse parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageLite.parseFrom(
        DEFAULT_INSTANCE, input);
  }
  public static com.streamlayer.files.InfoResponse 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.InfoResponse prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

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


    /**
     * string username = 1 [json_name = "username"];
     * @return The username.
     */
    @java.lang.Override
    public java.lang.String getUsername() {
      return instance.getUsername();
    }
    /**
     * string username = 1 [json_name = "username"];
     * @return The bytes for username.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getUsernameBytes() {
      return instance.getUsernameBytes();
    }
    /**
     * string username = 1 [json_name = "username"];
     * @param value The username to set.
     * @return This builder for chaining.
     */
    public Builder setUsername(
        java.lang.String value) {
      copyOnWrite();
      instance.setUsername(value);
      return this;
    }
    /**
     * string username = 1 [json_name = "username"];
     * @return This builder for chaining.
     */
    public Builder clearUsername() {
      copyOnWrite();
      instance.clearUsername();
      return this;
    }
    /**
     * string username = 1 [json_name = "username"];
     * @param value The bytes for username to set.
     * @return This builder for chaining.
     */
    public Builder setUsernameBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setUsernameBytes(value);
      return this;
    }

    /**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    @java.lang.Override
    public java.util.List getFileList() {
      return java.util.Collections.unmodifiableList(
          instance.getFileList());
    }
    /**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    @java.lang.Override
    public int getFileCount() {
      return instance.getFileCount();
    }/**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    @java.lang.Override
    public com.streamlayer.files.FileData getFile(int index) {
      return instance.getFile(index);
    }
    /**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    public Builder setFile(
        int index, com.streamlayer.files.FileData value) {
      copyOnWrite();
      instance.setFile(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    public Builder setFile(
        int index, com.streamlayer.files.FileData.Builder builderForValue) {
      copyOnWrite();
      instance.setFile(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    public Builder addFile(com.streamlayer.files.FileData value) {
      copyOnWrite();
      instance.addFile(value);
      return this;
    }
    /**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    public Builder addFile(
        int index, com.streamlayer.files.FileData value) {
      copyOnWrite();
      instance.addFile(index, value);
      return this;
    }
    /**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    public Builder addFile(
        com.streamlayer.files.FileData.Builder builderForValue) {
      copyOnWrite();
      instance.addFile(builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    public Builder addFile(
        int index, com.streamlayer.files.FileData.Builder builderForValue) {
      copyOnWrite();
      instance.addFile(index,
          builderForValue.build());
      return this;
    }
    /**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    public Builder addAllFile(
        java.lang.Iterable values) {
      copyOnWrite();
      instance.addAllFile(values);
      return this;
    }
    /**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    public Builder clearFile() {
      copyOnWrite();
      instance.clearFile();
      return this;
    }
    /**
     * repeated .streamlayer.files.FileData file = 2 [json_name = "file"];
     */
    public Builder removeFile(int index) {
      copyOnWrite();
      instance.removeFile(index);
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.files.InfoResponse)
  }
  @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.InfoResponse();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "username_",
            "file_",
            com.streamlayer.files.FileData.class,
          };
          java.lang.String info =
              "\u0000\u0002\u0000\u0000\u0001\u0002\u0002\u0000\u0001\u0000\u0001\u0208\u0002\u001b" +
              "";
          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.InfoResponse.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.InfoResponse)
  private static final com.streamlayer.files.InfoResponse DEFAULT_INSTANCE;
  static {
    InfoResponse defaultInstance = new InfoResponse();
    // New instances are implicitly immutable so no need to make
    // immutable.
    DEFAULT_INSTANCE = defaultInstance;
    com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
      InfoResponse.class, defaultInstance);
  }

  public static com.streamlayer.files.InfoResponse 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