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

main.java.com.streamlayer.files.File 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.common.proto

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

/**
 * Protobuf type {@code streamlayer.files.File}
 */
public  final class File extends
    com.google.protobuf.GeneratedMessageLite<
        File, File.Builder> implements
    // @@protoc_insertion_point(message_implements:streamlayer.files.File)
    FileOrBuilder {
  private File() {
    md5Hash_ = "";
    type_ = "";
    contentType_ = "";
  }
  public static final int MD5_HASH_FIELD_NUMBER = 1;
  private java.lang.String md5Hash_;
  /**
   * string md5_hash = 1 [json_name = "md5Hash"];
   * @return The md5Hash.
   */
  @java.lang.Override
  public java.lang.String getMd5Hash() {
    return md5Hash_;
  }
  /**
   * string md5_hash = 1 [json_name = "md5Hash"];
   * @return The bytes for md5Hash.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getMd5HashBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(md5Hash_);
  }
  /**
   * string md5_hash = 1 [json_name = "md5Hash"];
   * @param value The md5Hash to set.
   */
  private void setMd5Hash(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    md5Hash_ = value;
  }
  /**
   * string md5_hash = 1 [json_name = "md5Hash"];
   */
  private void clearMd5Hash() {

    md5Hash_ = getDefaultInstance().getMd5Hash();
  }
  /**
   * string md5_hash = 1 [json_name = "md5Hash"];
   * @param value The bytes for md5Hash to set.
   */
  private void setMd5HashBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    md5Hash_ = value.toStringUtf8();

  }

  public static final int TYPE_FIELD_NUMBER = 2;
  private java.lang.String type_;
  /**
   * string type = 2 [json_name = "type"];
   * @return The type.
   */
  @java.lang.Override
  public java.lang.String getType() {
    return type_;
  }
  /**
   * string type = 2 [json_name = "type"];
   * @return The bytes for type.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getTypeBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(type_);
  }
  /**
   * string type = 2 [json_name = "type"];
   * @param value The type to set.
   */
  private void setType(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    type_ = value;
  }
  /**
   * string type = 2 [json_name = "type"];
   */
  private void clearType() {

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

  }

  public static final int CONTENT_TYPE_FIELD_NUMBER = 3;
  private java.lang.String contentType_;
  /**
   * string content_type = 3 [json_name = "contentType"];
   * @return The contentType.
   */
  @java.lang.Override
  public java.lang.String getContentType() {
    return contentType_;
  }
  /**
   * string content_type = 3 [json_name = "contentType"];
   * @return The bytes for contentType.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getContentTypeBytes() {
    return com.google.protobuf.ByteString.copyFromUtf8(contentType_);
  }
  /**
   * string content_type = 3 [json_name = "contentType"];
   * @param value The contentType to set.
   */
  private void setContentType(
      java.lang.String value) {
    java.lang.Class valueClass = value.getClass();
  
    contentType_ = value;
  }
  /**
   * string content_type = 3 [json_name = "contentType"];
   */
  private void clearContentType() {

    contentType_ = getDefaultInstance().getContentType();
  }
  /**
   * string content_type = 3 [json_name = "contentType"];
   * @param value The bytes for contentType to set.
   */
  private void setContentTypeBytes(
      com.google.protobuf.ByteString value) {
    checkByteStringIsUtf8(value);
    contentType_ = value.toStringUtf8();

  }

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

    contentLength_ = 0;
  }

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

  public static com.streamlayer.files.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.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.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.File prototype) {
    return DEFAULT_INSTANCE.createBuilder(prototype);
  }

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


    /**
     * string md5_hash = 1 [json_name = "md5Hash"];
     * @return The md5Hash.
     */
    @java.lang.Override
    public java.lang.String getMd5Hash() {
      return instance.getMd5Hash();
    }
    /**
     * string md5_hash = 1 [json_name = "md5Hash"];
     * @return The bytes for md5Hash.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getMd5HashBytes() {
      return instance.getMd5HashBytes();
    }
    /**
     * string md5_hash = 1 [json_name = "md5Hash"];
     * @param value The md5Hash to set.
     * @return This builder for chaining.
     */
    public Builder setMd5Hash(
        java.lang.String value) {
      copyOnWrite();
      instance.setMd5Hash(value);
      return this;
    }
    /**
     * string md5_hash = 1 [json_name = "md5Hash"];
     * @return This builder for chaining.
     */
    public Builder clearMd5Hash() {
      copyOnWrite();
      instance.clearMd5Hash();
      return this;
    }
    /**
     * string md5_hash = 1 [json_name = "md5Hash"];
     * @param value The bytes for md5Hash to set.
     * @return This builder for chaining.
     */
    public Builder setMd5HashBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setMd5HashBytes(value);
      return this;
    }

    /**
     * string type = 2 [json_name = "type"];
     * @return The type.
     */
    @java.lang.Override
    public java.lang.String getType() {
      return instance.getType();
    }
    /**
     * string type = 2 [json_name = "type"];
     * @return The bytes for type.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getTypeBytes() {
      return instance.getTypeBytes();
    }
    /**
     * string type = 2 [json_name = "type"];
     * @param value The type to set.
     * @return This builder for chaining.
     */
    public Builder setType(
        java.lang.String value) {
      copyOnWrite();
      instance.setType(value);
      return this;
    }
    /**
     * string type = 2 [json_name = "type"];
     * @return This builder for chaining.
     */
    public Builder clearType() {
      copyOnWrite();
      instance.clearType();
      return this;
    }
    /**
     * string type = 2 [json_name = "type"];
     * @param value The bytes for type to set.
     * @return This builder for chaining.
     */
    public Builder setTypeBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setTypeBytes(value);
      return this;
    }

    /**
     * string content_type = 3 [json_name = "contentType"];
     * @return The contentType.
     */
    @java.lang.Override
    public java.lang.String getContentType() {
      return instance.getContentType();
    }
    /**
     * string content_type = 3 [json_name = "contentType"];
     * @return The bytes for contentType.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getContentTypeBytes() {
      return instance.getContentTypeBytes();
    }
    /**
     * string content_type = 3 [json_name = "contentType"];
     * @param value The contentType to set.
     * @return This builder for chaining.
     */
    public Builder setContentType(
        java.lang.String value) {
      copyOnWrite();
      instance.setContentType(value);
      return this;
    }
    /**
     * string content_type = 3 [json_name = "contentType"];
     * @return This builder for chaining.
     */
    public Builder clearContentType() {
      copyOnWrite();
      instance.clearContentType();
      return this;
    }
    /**
     * string content_type = 3 [json_name = "contentType"];
     * @param value The bytes for contentType to set.
     * @return This builder for chaining.
     */
    public Builder setContentTypeBytes(
        com.google.protobuf.ByteString value) {
      copyOnWrite();
      instance.setContentTypeBytes(value);
      return this;
    }

    /**
     * sint32 content_length = 4 [json_name = "contentLength"];
     * @return The contentLength.
     */
    @java.lang.Override
    public int getContentLength() {
      return instance.getContentLength();
    }
    /**
     * sint32 content_length = 4 [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;
    }
    /**
     * sint32 content_length = 4 [json_name = "contentLength"];
     * @return This builder for chaining.
     */
    public Builder clearContentLength() {
      copyOnWrite();
      instance.clearContentLength();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:streamlayer.files.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.File();
      }
      case NEW_BUILDER: {
        return new Builder();
      }
      case BUILD_MESSAGE_INFO: {
          java.lang.Object[] objects = new java.lang.Object[] {
            "md5Hash_",
            "type_",
            "contentType_",
            "contentLength_",
          };
          java.lang.String info =
              "\u0000\u0004\u0000\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001\u0208\u0002\u0208" +
              "\u0003\u0208\u0004\u000f";
          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.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.File)
  private static final com.streamlayer.files.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.File 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