Class ExportPublisherModelRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExportPublisherModelRequest.Builder>
com.google.cloud.aiplatform.v1beta1.ExportPublisherModelRequest.Builder
All Implemented Interfaces:
ExportPublisherModelRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExportPublisherModelRequest

public static final class ExportPublisherModelRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExportPublisherModelRequest.Builder> implements ExportPublisherModelRequestOrBuilder
 Request message for
 [ModelGardenService.ExportPublisherModel][google.cloud.aiplatform.v1beta1.ModelGardenService.ExportPublisherModel].
 
Protobuf type google.cloud.aiplatform.v1beta1.ExportPublisherModelRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ExportPublisherModelRequest.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.GeneratedMessage.Builder<ExportPublisherModelRequest.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.GeneratedMessage.Builder<ExportPublisherModelRequest.Builder>
    • getDefaultInstanceForType

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

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

    • isInitialized

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

      public ExportPublisherModelRequest.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<ExportPublisherModelRequest.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Required. The name of the PublisherModel resource.
       Format:
       `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
       `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getName in interface ExportPublisherModelRequestOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Required. The name of the PublisherModel resource.
       Format:
       `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
       `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getNameBytes in interface ExportPublisherModelRequestOrBuilder
      Returns:
      The bytes for name.
    • setName

       Required. The name of the PublisherModel resource.
       Format:
       `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
       `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

       Required. The name of the PublisherModel resource.
       Format:
       `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
       `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setNameBytes

      public ExportPublisherModelRequest.Builder setNameBytes(com.google.protobuf.ByteString value)
       Required. The name of the PublisherModel resource.
       Format:
       `publishers/{publisher}/models/{publisher_model}@{version_id}`, or
       `publishers/hf-{hugging-face-author}/models/{hugging-face-model-name}@001`
       
      string name = 1 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasDestination

      public boolean hasDestination()
       Required. The target where we are exporting the model weights to
       
      .google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDestination in interface ExportPublisherModelRequestOrBuilder
      Returns:
      Whether the destination field is set.
    • getDestination

      public GcsDestination getDestination()
       Required. The target where we are exporting the model weights to
       
      .google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDestination in interface ExportPublisherModelRequestOrBuilder
      Returns:
      The destination.
    • setDestination

      public ExportPublisherModelRequest.Builder setDestination(GcsDestination value)
       Required. The target where we are exporting the model weights to
       
      .google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];
    • setDestination

      public ExportPublisherModelRequest.Builder setDestination(GcsDestination.Builder builderForValue)
       Required. The target where we are exporting the model weights to
       
      .google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeDestination

      public ExportPublisherModelRequest.Builder mergeDestination(GcsDestination value)
       Required. The target where we are exporting the model weights to
       
      .google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearDestination

      public ExportPublisherModelRequest.Builder clearDestination()
       Required. The target where we are exporting the model weights to
       
      .google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDestinationBuilder

      public GcsDestination.Builder getDestinationBuilder()
       Required. The target where we are exporting the model weights to
       
      .google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDestinationOrBuilder

      public GcsDestinationOrBuilder getDestinationOrBuilder()
       Required. The target where we are exporting the model weights to
       
      .google.cloud.aiplatform.v1beta1.GcsDestination destination = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDestinationOrBuilder in interface ExportPublisherModelRequestOrBuilder
    • getParent

      public String getParent()
       Required. The Location to export the model weights from
       Format: `projects/{project}/locations/{location}`
       
      string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface ExportPublisherModelRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The Location to export the model weights from
       Format: `projects/{project}/locations/{location}`
       
      string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface ExportPublisherModelRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public ExportPublisherModelRequest.Builder setParent(String value)
       Required. The Location to export the model weights from
       Format: `projects/{project}/locations/{location}`
       
      string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The Location to export the model weights from
       Format: `projects/{project}/locations/{location}`
       
      string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public ExportPublisherModelRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The Location to export the model weights from
       Format: `projects/{project}/locations/{location}`
       
      string parent = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.