Class Service.CreatePresignedUploadUrl.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Service.CreatePresignedUploadUrl.Builder>
org.mlflow.api.proto.Service.CreatePresignedUploadUrl.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, Service.CreatePresignedUploadUrlOrBuilder
Enclosing class:
Service.CreatePresignedUploadUrl

public static final class Service.CreatePresignedUploadUrl.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Service.CreatePresignedUploadUrl.Builder> implements Service.CreatePresignedUploadUrlOrBuilder
Protobuf type mlflow.CreatePresignedUploadUrl
  • Method Details

    • 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.CreatePresignedUploadUrl.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.CreatePresignedUploadUrl.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.CreatePresignedUploadUrl.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Service.CreatePresignedUploadUrl buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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.CreatePresignedUploadUrl.Builder>
    • setField

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

      public Service.CreatePresignedUploadUrl.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.CreatePresignedUploadUrl.Builder>
    • clearOneof

      public Service.CreatePresignedUploadUrl.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.CreatePresignedUploadUrl.Builder>
    • setRepeatedField

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

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

      public Service.CreatePresignedUploadUrl.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.CreatePresignedUploadUrl.Builder>
    • mergeFrom

    • isInitialized

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

      public Service.CreatePresignedUploadUrl.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws 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.CreatePresignedUploadUrl.Builder>
      Throws:
      IOException
    • hasRunId

      public boolean hasRunId()
       ID of the run that owns the artifact. Exactly one of run_id and model_id
       must be provided.
       
      optional string run_id = 1;
      Specified by:
      hasRunId in interface Service.CreatePresignedUploadUrlOrBuilder
      Returns:
      Whether the runId field is set.
    • getRunId

      public String getRunId()
       ID of the run that owns the artifact. Exactly one of run_id and model_id
       must be provided.
       
      optional string run_id = 1;
      Specified by:
      getRunId in interface Service.CreatePresignedUploadUrlOrBuilder
      Returns:
      The runId.
    • getRunIdBytes

      public com.google.protobuf.ByteString getRunIdBytes()
       ID of the run that owns the artifact. Exactly one of run_id and model_id
       must be provided.
       
      optional string run_id = 1;
      Specified by:
      getRunIdBytes in interface Service.CreatePresignedUploadUrlOrBuilder
      Returns:
      The bytes for runId.
    • setRunId

       ID of the run that owns the artifact. Exactly one of run_id and model_id
       must be provided.
       
      optional string run_id = 1;
      Parameters:
      value - The runId to set.
      Returns:
      This builder for chaining.
    • clearRunId

       ID of the run that owns the artifact. Exactly one of run_id and model_id
       must be provided.
       
      optional string run_id = 1;
      Returns:
      This builder for chaining.
    • setRunIdBytes

      public Service.CreatePresignedUploadUrl.Builder setRunIdBytes(com.google.protobuf.ByteString value)
       ID of the run that owns the artifact. Exactly one of run_id and model_id
       must be provided.
       
      optional string run_id = 1;
      Parameters:
      value - The bytes for runId to set.
      Returns:
      This builder for chaining.
    • hasPath

      public boolean hasPath()
       Relative path within the owning resource's artifact directory
       (e.g. "models/model.pkl"). Must be provided.
       
      optional string path = 2;
      Specified by:
      hasPath in interface Service.CreatePresignedUploadUrlOrBuilder
      Returns:
      Whether the path field is set.
    • getPath

      public String getPath()
       Relative path within the owning resource's artifact directory
       (e.g. "models/model.pkl"). Must be provided.
       
      optional string path = 2;
      Specified by:
      getPath in interface Service.CreatePresignedUploadUrlOrBuilder
      Returns:
      The path.
    • getPathBytes

      public com.google.protobuf.ByteString getPathBytes()
       Relative path within the owning resource's artifact directory
       (e.g. "models/model.pkl"). Must be provided.
       
      optional string path = 2;
      Specified by:
      getPathBytes in interface Service.CreatePresignedUploadUrlOrBuilder
      Returns:
      The bytes for path.
    • setPath

       Relative path within the owning resource's artifact directory
       (e.g. "models/model.pkl"). Must be provided.
       
      optional string path = 2;
      Parameters:
      value - The path to set.
      Returns:
      This builder for chaining.
    • clearPath

       Relative path within the owning resource's artifact directory
       (e.g. "models/model.pkl"). Must be provided.
       
      optional string path = 2;
      Returns:
      This builder for chaining.
    • setPathBytes

      public Service.CreatePresignedUploadUrl.Builder setPathBytes(com.google.protobuf.ByteString value)
       Relative path within the owning resource's artifact directory
       (e.g. "models/model.pkl"). Must be provided.
       
      optional string path = 2;
      Parameters:
      value - The bytes for path to set.
      Returns:
      This builder for chaining.
    • hasExpiration

      public boolean hasExpiration()
       URL expiration time in seconds (default: 900).
       
      optional int64 expiration = 3;
      Specified by:
      hasExpiration in interface Service.CreatePresignedUploadUrlOrBuilder
      Returns:
      Whether the expiration field is set.
    • getExpiration

      public long getExpiration()
       URL expiration time in seconds (default: 900).
       
      optional int64 expiration = 3;
      Specified by:
      getExpiration in interface Service.CreatePresignedUploadUrlOrBuilder
      Returns:
      The expiration.
    • setExpiration

      public Service.CreatePresignedUploadUrl.Builder setExpiration(long value)
       URL expiration time in seconds (default: 900).
       
      optional int64 expiration = 3;
      Parameters:
      value - The expiration to set.
      Returns:
      This builder for chaining.
    • clearExpiration

      public Service.CreatePresignedUploadUrl.Builder clearExpiration()
       URL expiration time in seconds (default: 900).
       
      optional int64 expiration = 3;
      Returns:
      This builder for chaining.
    • hasModelId

      public boolean hasModelId()
       ID of the logged model that owns the artifact, for artifacts stored under a
       logged model's artifact location (e.g. "<experiment>/models/<model_id>/artifacts")
       rather than a run's. Exactly one of run_id and model_id must be provided.
       Clients must populate model_id for logged-model artifacts; sending a logged
       model ID through run_id is not supported.
       
      optional string model_id = 4;
      Specified by:
      hasModelId in interface Service.CreatePresignedUploadUrlOrBuilder
      Returns:
      Whether the modelId field is set.
    • getModelId

      public String getModelId()
       ID of the logged model that owns the artifact, for artifacts stored under a
       logged model's artifact location (e.g. "<experiment>/models/<model_id>/artifacts")
       rather than a run's. Exactly one of run_id and model_id must be provided.
       Clients must populate model_id for logged-model artifacts; sending a logged
       model ID through run_id is not supported.
       
      optional string model_id = 4;
      Specified by:
      getModelId in interface Service.CreatePresignedUploadUrlOrBuilder
      Returns:
      The modelId.
    • getModelIdBytes

      public com.google.protobuf.ByteString getModelIdBytes()
       ID of the logged model that owns the artifact, for artifacts stored under a
       logged model's artifact location (e.g. "<experiment>/models/<model_id>/artifacts")
       rather than a run's. Exactly one of run_id and model_id must be provided.
       Clients must populate model_id for logged-model artifacts; sending a logged
       model ID through run_id is not supported.
       
      optional string model_id = 4;
      Specified by:
      getModelIdBytes in interface Service.CreatePresignedUploadUrlOrBuilder
      Returns:
      The bytes for modelId.
    • setModelId

       ID of the logged model that owns the artifact, for artifacts stored under a
       logged model's artifact location (e.g. "<experiment>/models/<model_id>/artifacts")
       rather than a run's. Exactly one of run_id and model_id must be provided.
       Clients must populate model_id for logged-model artifacts; sending a logged
       model ID through run_id is not supported.
       
      optional string model_id = 4;
      Parameters:
      value - The modelId to set.
      Returns:
      This builder for chaining.
    • clearModelId

       ID of the logged model that owns the artifact, for artifacts stored under a
       logged model's artifact location (e.g. "<experiment>/models/<model_id>/artifacts")
       rather than a run's. Exactly one of run_id and model_id must be provided.
       Clients must populate model_id for logged-model artifacts; sending a logged
       model ID through run_id is not supported.
       
      optional string model_id = 4;
      Returns:
      This builder for chaining.
    • setModelIdBytes

      public Service.CreatePresignedUploadUrl.Builder setModelIdBytes(com.google.protobuf.ByteString value)
       ID of the logged model that owns the artifact, for artifacts stored under a
       logged model's artifact location (e.g. "<experiment>/models/<model_id>/artifacts")
       rather than a run's. Exactly one of run_id and model_id must be provided.
       Clients must populate model_id for logged-model artifacts; sending a logged
       model ID through run_id is not supported.
       
      optional string model_id = 4;
      Parameters:
      value - The bytes for modelId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Service.CreatePresignedUploadUrl.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.CreatePresignedUploadUrl.Builder>
    • mergeUnknownFields

      public final Service.CreatePresignedUploadUrl.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.CreatePresignedUploadUrl.Builder>