Class Service.FileInfo.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, java.lang.Cloneable, Service.FileInfoOrBuilder
    Enclosing class:
    Service.FileInfo

    public static final class Service.FileInfo.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
    implements Service.FileInfoOrBuilder
     Metadata of a single artifact file or directory.
     
    Protobuf type mlflow.FileInfo
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
      • clear

        public Service.FileInfo.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
      • getDefaultInstanceForType

        public Service.FileInfo getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Service.FileInfo build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Service.FileInfo buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Service.FileInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
      • setField

        public Service.FileInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 java.lang.Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
      • clearField

        public Service.FileInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
      • clearOneof

        public Service.FileInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
      • setRepeatedField

        public Service.FileInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         java.lang.Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
      • addRepeatedField

        public Service.FileInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         java.lang.Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
      • mergeFrom

        public Service.FileInfo.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Service.FileInfo.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
      • mergeFrom

        public Service.FileInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Service.FileInfo.Builder>
        Throws:
        java.io.IOException
      • hasPath

        public boolean hasPath()
         Path relative to the root artifact directory run.
         
        optional string path = 1;
        Specified by:
        hasPath in interface Service.FileInfoOrBuilder
        Returns:
        Whether the path field is set.
      • getPath

        public java.lang.String getPath()
         Path relative to the root artifact directory run.
         
        optional string path = 1;
        Specified by:
        getPath in interface Service.FileInfoOrBuilder
        Returns:
        The path.
      • getPathBytes

        public com.google.protobuf.ByteString getPathBytes()
         Path relative to the root artifact directory run.
         
        optional string path = 1;
        Specified by:
        getPathBytes in interface Service.FileInfoOrBuilder
        Returns:
        The bytes for path.
      • setPath

        public Service.FileInfo.Builder setPath​(java.lang.String value)
         Path relative to the root artifact directory run.
         
        optional string path = 1;
        Parameters:
        value - The path to set.
        Returns:
        This builder for chaining.
      • clearPath

        public Service.FileInfo.Builder clearPath()
         Path relative to the root artifact directory run.
         
        optional string path = 1;
        Returns:
        This builder for chaining.
      • setPathBytes

        public Service.FileInfo.Builder setPathBytes​(com.google.protobuf.ByteString value)
         Path relative to the root artifact directory run.
         
        optional string path = 1;
        Parameters:
        value - The bytes for path to set.
        Returns:
        This builder for chaining.
      • hasIsDir

        public boolean hasIsDir()
         Whether the path is a directory.
         
        optional bool is_dir = 2;
        Specified by:
        hasIsDir in interface Service.FileInfoOrBuilder
        Returns:
        Whether the isDir field is set.
      • getIsDir

        public boolean getIsDir()
         Whether the path is a directory.
         
        optional bool is_dir = 2;
        Specified by:
        getIsDir in interface Service.FileInfoOrBuilder
        Returns:
        The isDir.
      • setIsDir

        public Service.FileInfo.Builder setIsDir​(boolean value)
         Whether the path is a directory.
         
        optional bool is_dir = 2;
        Parameters:
        value - The isDir to set.
        Returns:
        This builder for chaining.
      • clearIsDir

        public Service.FileInfo.Builder clearIsDir()
         Whether the path is a directory.
         
        optional bool is_dir = 2;
        Returns:
        This builder for chaining.
      • hasFileSize

        public boolean hasFileSize()
         Size in bytes. Unset for directories.
         
        optional int64 file_size = 3;
        Specified by:
        hasFileSize in interface Service.FileInfoOrBuilder
        Returns:
        Whether the fileSize field is set.
      • getFileSize

        public long getFileSize()
         Size in bytes. Unset for directories.
         
        optional int64 file_size = 3;
        Specified by:
        getFileSize in interface Service.FileInfoOrBuilder
        Returns:
        The fileSize.
      • setFileSize

        public Service.FileInfo.Builder setFileSize​(long value)
         Size in bytes. Unset for directories.
         
        optional int64 file_size = 3;
        Parameters:
        value - The fileSize to set.
        Returns:
        This builder for chaining.
      • clearFileSize

        public Service.FileInfo.Builder clearFileSize()
         Size in bytes. Unset for directories.
         
        optional int64 file_size = 3;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final Service.FileInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>
      • mergeUnknownFields

        public final Service.FileInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Service.FileInfo.Builder>