Class ExportArtifactRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ExportArtifactRequest.Builder>
com.google.devtools.artifactregistry.v1.ExportArtifactRequest.Builder
All Implemented Interfaces:
ExportArtifactRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ExportArtifactRequest

public static final class ExportArtifactRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<ExportArtifactRequest.Builder> implements ExportArtifactRequestOrBuilder
 The request for exporting an artifact to a destination.
 
Protobuf type google.devtools.artifactregistry.v1.ExportArtifactRequest
  • 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<ExportArtifactRequest.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<ExportArtifactRequest.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<ExportArtifactRequest.Builder>
    • getDefaultInstanceForType

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

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

      public ExportArtifactRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ExportArtifactRequest.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<ExportArtifactRequest.Builder>
      Throws:
      IOException
    • getSourceArtifactCase

      public ExportArtifactRequest.SourceArtifactCase getSourceArtifactCase()
      Specified by:
      getSourceArtifactCase in interface ExportArtifactRequestOrBuilder
    • clearSourceArtifact

      public ExportArtifactRequest.Builder clearSourceArtifact()
    • getDestinationCase

      public ExportArtifactRequest.DestinationCase getDestinationCase()
      Specified by:
      getDestinationCase in interface ExportArtifactRequestOrBuilder
    • clearDestination

      public ExportArtifactRequest.Builder clearDestination()
    • hasSourceVersion

      public boolean hasSourceVersion()
       The artifact version to export.
       Format:
       projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
       
      string source_version = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasSourceVersion in interface ExportArtifactRequestOrBuilder
      Returns:
      Whether the sourceVersion field is set.
    • getSourceVersion

      public String getSourceVersion()
       The artifact version to export.
       Format:
       projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
       
      string source_version = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceVersion in interface ExportArtifactRequestOrBuilder
      Returns:
      The sourceVersion.
    • getSourceVersionBytes

      public com.google.protobuf.ByteString getSourceVersionBytes()
       The artifact version to export.
       Format:
       projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
       
      string source_version = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceVersionBytes in interface ExportArtifactRequestOrBuilder
      Returns:
      The bytes for sourceVersion.
    • setSourceVersion

      public ExportArtifactRequest.Builder setSourceVersion(String value)
       The artifact version to export.
       Format:
       projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
       
      string source_version = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The sourceVersion to set.
      Returns:
      This builder for chaining.
    • clearSourceVersion

      public ExportArtifactRequest.Builder clearSourceVersion()
       The artifact version to export.
       Format:
       projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
       
      string source_version = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSourceVersionBytes

      public ExportArtifactRequest.Builder setSourceVersionBytes(com.google.protobuf.ByteString value)
       The artifact version to export.
       Format:
       projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/versions/{version}
       
      string source_version = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for sourceVersion to set.
      Returns:
      This builder for chaining.
    • hasSourceTag

      public boolean hasSourceTag()
       The artifact tag to export.
       Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
       
      string source_tag = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      hasSourceTag in interface ExportArtifactRequestOrBuilder
      Returns:
      Whether the sourceTag field is set.
    • getSourceTag

      public String getSourceTag()
       The artifact tag to export.
       Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
       
      string source_tag = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceTag in interface ExportArtifactRequestOrBuilder
      Returns:
      The sourceTag.
    • getSourceTagBytes

      public com.google.protobuf.ByteString getSourceTagBytes()
       The artifact tag to export.
       Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
       
      string source_tag = 4 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceTagBytes in interface ExportArtifactRequestOrBuilder
      Returns:
      The bytes for sourceTag.
    • setSourceTag

      public ExportArtifactRequest.Builder setSourceTag(String value)
       The artifact tag to export.
       Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
       
      string source_tag = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The sourceTag to set.
      Returns:
      This builder for chaining.
    • clearSourceTag

      public ExportArtifactRequest.Builder clearSourceTag()
       The artifact tag to export.
       Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
       
      string source_tag = 4 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSourceTagBytes

      public ExportArtifactRequest.Builder setSourceTagBytes(com.google.protobuf.ByteString value)
       The artifact tag to export.
       Format:projects/{project}/locations/{location}/repositories/{repository}/packages/{package}/tags/{tag}
       
      string source_tag = 4 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for sourceTag to set.
      Returns:
      This builder for chaining.
    • hasGcsPath

      public boolean hasGcsPath()
       The Cloud Storage path to export the artifact to. Should start with the
       bucket name, and optionally have a directory path. Examples:
       `dst_bucket`, `dst_bucket/sub_dir`.
       Existing objects with the same path will be overwritten.
       
      string gcs_path = 3;
      Specified by:
      hasGcsPath in interface ExportArtifactRequestOrBuilder
      Returns:
      Whether the gcsPath field is set.
    • getGcsPath

      public String getGcsPath()
       The Cloud Storage path to export the artifact to. Should start with the
       bucket name, and optionally have a directory path. Examples:
       `dst_bucket`, `dst_bucket/sub_dir`.
       Existing objects with the same path will be overwritten.
       
      string gcs_path = 3;
      Specified by:
      getGcsPath in interface ExportArtifactRequestOrBuilder
      Returns:
      The gcsPath.
    • getGcsPathBytes

      public com.google.protobuf.ByteString getGcsPathBytes()
       The Cloud Storage path to export the artifact to. Should start with the
       bucket name, and optionally have a directory path. Examples:
       `dst_bucket`, `dst_bucket/sub_dir`.
       Existing objects with the same path will be overwritten.
       
      string gcs_path = 3;
      Specified by:
      getGcsPathBytes in interface ExportArtifactRequestOrBuilder
      Returns:
      The bytes for gcsPath.
    • setGcsPath

      public ExportArtifactRequest.Builder setGcsPath(String value)
       The Cloud Storage path to export the artifact to. Should start with the
       bucket name, and optionally have a directory path. Examples:
       `dst_bucket`, `dst_bucket/sub_dir`.
       Existing objects with the same path will be overwritten.
       
      string gcs_path = 3;
      Parameters:
      value - The gcsPath to set.
      Returns:
      This builder for chaining.
    • clearGcsPath

      public ExportArtifactRequest.Builder clearGcsPath()
       The Cloud Storage path to export the artifact to. Should start with the
       bucket name, and optionally have a directory path. Examples:
       `dst_bucket`, `dst_bucket/sub_dir`.
       Existing objects with the same path will be overwritten.
       
      string gcs_path = 3;
      Returns:
      This builder for chaining.
    • setGcsPathBytes

      public ExportArtifactRequest.Builder setGcsPathBytes(com.google.protobuf.ByteString value)
       The Cloud Storage path to export the artifact to. Should start with the
       bucket name, and optionally have a directory path. Examples:
       `dst_bucket`, `dst_bucket/sub_dir`.
       Existing objects with the same path will be overwritten.
       
      string gcs_path = 3;
      Parameters:
      value - The bytes for gcsPath to set.
      Returns:
      This builder for chaining.
    • getRepository

      public String getRepository()
       Required. The repository of the artifact to export.
       Format: projects/{project}/locations/{location}/repositories/{repository}
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getRepository in interface ExportArtifactRequestOrBuilder
      Returns:
      The repository.
    • getRepositoryBytes

      public com.google.protobuf.ByteString getRepositoryBytes()
       Required. The repository of the artifact to export.
       Format: projects/{project}/locations/{location}/repositories/{repository}
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getRepositoryBytes in interface ExportArtifactRequestOrBuilder
      Returns:
      The bytes for repository.
    • setRepository

      public ExportArtifactRequest.Builder setRepository(String value)
       Required. The repository of the artifact to export.
       Format: projects/{project}/locations/{location}/repositories/{repository}
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The repository to set.
      Returns:
      This builder for chaining.
    • clearRepository

      public ExportArtifactRequest.Builder clearRepository()
       Required. The repository of the artifact to export.
       Format: projects/{project}/locations/{location}/repositories/{repository}
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setRepositoryBytes

      public ExportArtifactRequest.Builder setRepositoryBytes(com.google.protobuf.ByteString value)
       Required. The repository of the artifact to export.
       Format: projects/{project}/locations/{location}/repositories/{repository}
       
      string repository = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for repository to set.
      Returns:
      This builder for chaining.