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 Summary
Modifier and TypeMethodDescriptionbuild()clear()The Cloud Storage path to export the artifact to.Required.The artifact tag to export.The artifact version to export.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe Cloud Storage path to export the artifact to.com.google.protobuf.ByteStringThe Cloud Storage path to export the artifact to.Required.com.google.protobuf.ByteStringRequired.The artifact tag to export.com.google.protobuf.ByteStringThe artifact tag to export.The artifact version to export.com.google.protobuf.ByteStringThe artifact version to export.booleanThe Cloud Storage path to export the artifact to.booleanThe artifact tag to export.booleanThe artifact version to export.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(ExportArtifactRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setGcsPath(String value) The Cloud Storage path to export the artifact to.setGcsPathBytes(com.google.protobuf.ByteString value) The Cloud Storage path to export the artifact to.setRepository(String value) Required.setRepositoryBytes(com.google.protobuf.ByteString value) Required.setSourceTag(String value) The artifact tag to export.setSourceTagBytes(com.google.protobuf.ByteString value) The artifact tag to export.setSourceVersion(String value) The artifact version to export.setSourceVersionBytes(com.google.protobuf.ByteString value) The artifact version to export.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<ExportArtifactRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<ExportArtifactRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<ExportArtifactRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExportArtifactRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ExportArtifactRequest.Builder>- Throws:
IOException
-
getSourceArtifactCase
- Specified by:
getSourceArtifactCasein interfaceExportArtifactRequestOrBuilder
-
clearSourceArtifact
-
getDestinationCase
- Specified by:
getDestinationCasein interfaceExportArtifactRequestOrBuilder
-
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:
hasSourceVersionin interfaceExportArtifactRequestOrBuilder- Returns:
- Whether the sourceVersion field is set.
-
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:
getSourceVersionin interfaceExportArtifactRequestOrBuilder- 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:
getSourceVersionBytesin interfaceExportArtifactRequestOrBuilder- Returns:
- The bytes for sourceVersion.
-
setSourceVersion
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
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
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:
hasSourceTagin interfaceExportArtifactRequestOrBuilder- Returns:
- Whether the sourceTag field is set.
-
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:
getSourceTagin interfaceExportArtifactRequestOrBuilder- 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:
getSourceTagBytesin interfaceExportArtifactRequestOrBuilder- Returns:
- The bytes for sourceTag.
-
setSourceTag
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
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
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:
hasGcsPathin interfaceExportArtifactRequestOrBuilder- Returns:
- Whether the gcsPath field is set.
-
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:
getGcsPathin interfaceExportArtifactRequestOrBuilder- 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:
getGcsPathBytesin interfaceExportArtifactRequestOrBuilder- Returns:
- The bytes for gcsPath.
-
setGcsPath
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
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
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
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:
getRepositoryin interfaceExportArtifactRequestOrBuilder- 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:
getRepositoryBytesin interfaceExportArtifactRequestOrBuilder- Returns:
- The bytes for repository.
-
setRepository
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
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
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.
-