Class File.Builder

  • All Implemented Interfaces:
    com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, FileOrBuilder, java.lang.Cloneable
    Enclosing class:
    File

    public static final class File.Builder
    extends com.google.protobuf.GeneratedMessageLite.Builder<File,​File.Builder>
    implements FileOrBuilder
    Protobuf type streamlayer.files.File
    • Field Summary

      • Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder

        instance
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      File.Builder clearContentLength()
      sint32 content_length = 4 [json_name = "contentLength"];
      File.Builder clearContentType()
      string content_type = 3 [json_name = "contentType"];
      File.Builder clearMd5Hash()
      string md5_hash = 1 [json_name = "md5Hash"];
      File.Builder clearType()
      string type = 2 [json_name = "type"];
      int getContentLength()
      sint32 content_length = 4 [json_name = "contentLength"];
      java.lang.String getContentType()
      string content_type = 3 [json_name = "contentType"];
      com.google.protobuf.ByteString getContentTypeBytes()
      string content_type = 3 [json_name = "contentType"];
      java.lang.String getMd5Hash()
      string md5_hash = 1 [json_name = "md5Hash"];
      com.google.protobuf.ByteString getMd5HashBytes()
      string md5_hash = 1 [json_name = "md5Hash"];
      java.lang.String getType()
      string type = 2 [json_name = "type"];
      com.google.protobuf.ByteString getTypeBytes()
      string type = 2 [json_name = "type"];
      File.Builder setContentLength​(int value)
      sint32 content_length = 4 [json_name = "contentLength"];
      File.Builder setContentType​(java.lang.String value)
      string content_type = 3 [json_name = "contentType"];
      File.Builder setContentTypeBytes​(com.google.protobuf.ByteString value)
      string content_type = 3 [json_name = "contentType"];
      File.Builder setMd5Hash​(java.lang.String value)
      string md5_hash = 1 [json_name = "md5Hash"];
      File.Builder setMd5HashBytes​(com.google.protobuf.ByteString value)
      string md5_hash = 1 [json_name = "md5Hash"];
      File.Builder setType​(java.lang.String value)
      string type = 2 [json_name = "type"];
      File.Builder setTypeBytes​(com.google.protobuf.ByteString value)
      string type = 2 [json_name = "type"];
      • Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

        build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom
      • Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

        addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        getDefaultInstanceForType, isInitialized
    • Method Detail

      • getMd5Hash

        public java.lang.String getMd5Hash()
        string md5_hash = 1 [json_name = "md5Hash"];
        Specified by:
        getMd5Hash in interface FileOrBuilder
        Returns:
        The md5Hash.
      • getMd5HashBytes

        public com.google.protobuf.ByteString getMd5HashBytes()
        string md5_hash = 1 [json_name = "md5Hash"];
        Specified by:
        getMd5HashBytes in interface FileOrBuilder
        Returns:
        The bytes for md5Hash.
      • setMd5Hash

        public File.Builder setMd5Hash​(java.lang.String value)
        string md5_hash = 1 [json_name = "md5Hash"];
        Parameters:
        value - The md5Hash to set.
        Returns:
        This builder for chaining.
      • clearMd5Hash

        public File.Builder clearMd5Hash()
        string md5_hash = 1 [json_name = "md5Hash"];
        Returns:
        This builder for chaining.
      • setMd5HashBytes

        public File.Builder setMd5HashBytes​(com.google.protobuf.ByteString value)
        string md5_hash = 1 [json_name = "md5Hash"];
        Parameters:
        value - The bytes for md5Hash to set.
        Returns:
        This builder for chaining.
      • getType

        public java.lang.String getType()
        string type = 2 [json_name = "type"];
        Specified by:
        getType in interface FileOrBuilder
        Returns:
        The type.
      • getTypeBytes

        public com.google.protobuf.ByteString getTypeBytes()
        string type = 2 [json_name = "type"];
        Specified by:
        getTypeBytes in interface FileOrBuilder
        Returns:
        The bytes for type.
      • setType

        public File.Builder setType​(java.lang.String value)
        string type = 2 [json_name = "type"];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public File.Builder clearType()
        string type = 2 [json_name = "type"];
        Returns:
        This builder for chaining.
      • setTypeBytes

        public File.Builder setTypeBytes​(com.google.protobuf.ByteString value)
        string type = 2 [json_name = "type"];
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • getContentType

        public java.lang.String getContentType()
        string content_type = 3 [json_name = "contentType"];
        Specified by:
        getContentType in interface FileOrBuilder
        Returns:
        The contentType.
      • getContentTypeBytes

        public com.google.protobuf.ByteString getContentTypeBytes()
        string content_type = 3 [json_name = "contentType"];
        Specified by:
        getContentTypeBytes in interface FileOrBuilder
        Returns:
        The bytes for contentType.
      • setContentType

        public File.Builder setContentType​(java.lang.String value)
        string content_type = 3 [json_name = "contentType"];
        Parameters:
        value - The contentType to set.
        Returns:
        This builder for chaining.
      • clearContentType

        public File.Builder clearContentType()
        string content_type = 3 [json_name = "contentType"];
        Returns:
        This builder for chaining.
      • setContentTypeBytes

        public File.Builder setContentTypeBytes​(com.google.protobuf.ByteString value)
        string content_type = 3 [json_name = "contentType"];
        Parameters:
        value - The bytes for contentType to set.
        Returns:
        This builder for chaining.
      • getContentLength

        public int getContentLength()
        sint32 content_length = 4 [json_name = "contentLength"];
        Specified by:
        getContentLength in interface FileOrBuilder
        Returns:
        The contentLength.
      • setContentLength

        public File.Builder setContentLength​(int value)
        sint32 content_length = 4 [json_name = "contentLength"];
        Parameters:
        value - The contentLength to set.
        Returns:
        This builder for chaining.
      • clearContentLength

        public File.Builder clearContentLength()
        sint32 content_length = 4 [json_name = "contentLength"];
        Returns:
        This builder for chaining.