public static final class ExportArtifactRequest.Builder extends GeneratedMessageV3.Builder<ExportArtifactRequest.Builder> implements ExportArtifactRequestOrBuilderThe request for exporting an artifact to a destination.
Protobuf type google.devtools.artifactregistry.v1.ExportArtifactRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ExportArtifactRequest.BuilderImplements
ExportArtifactRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ExportArtifactRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
build()
public ExportArtifactRequest build()| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest |
|
buildPartial()
public ExportArtifactRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest |
|
clear()
public ExportArtifactRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
clearDestination()
public ExportArtifactRequest.Builder clearDestination()| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
clearField(Descriptors.FieldDescriptor field)
public ExportArtifactRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
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 | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public ExportArtifactRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
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 | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
This builder for chaining. |
clearSourceArtifact()
public ExportArtifactRequest.Builder clearSourceArtifact()| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
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 | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
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 | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
This builder for chaining. |
clone()
public ExportArtifactRequest.Builder clone()| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
getDefaultInstanceForType()
public ExportArtifactRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDestinationCase()
public ExportArtifactRequest.DestinationCase getDestinationCase()| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.DestinationCase |
|
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;
| Returns | |
|---|---|
| Type | Description |
String |
The gcsPath. |
getGcsPathBytes()
public 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;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for gcsPath. |
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The repository. |
getRepositoryBytes()
public 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for repository. |
getSourceArtifactCase()
public ExportArtifactRequest.SourceArtifactCase getSourceArtifactCase()| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.SourceArtifactCase |
|
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The sourceTag. |
getSourceTagBytes()
public 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sourceTag. |
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The sourceVersion. |
getSourceVersionBytes()
public 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) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for sourceVersion. |
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;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the gcsPath field is set. |
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sourceTag field is set. |
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) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the sourceVersion field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(ExportArtifactRequest other)
public ExportArtifactRequest.Builder mergeFrom(ExportArtifactRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
ExportArtifactRequest |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ExportArtifactRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public ExportArtifactRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ExportArtifactRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
public ExportArtifactRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
setGcsPath(String value)
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;
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe gcsPath to set. |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
This builder for chaining. |
setGcsPathBytes(ByteString value)
public ExportArtifactRequest.Builder setGcsPathBytes(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;
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for gcsPath to set. |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ExportArtifactRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|
setRepository(String value)
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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe repository to set. |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
This builder for chaining. |
setRepositoryBytes(ByteString value)
public ExportArtifactRequest.Builder setRepositoryBytes(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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for repository to set. |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
This builder for chaining. |
setSourceTag(String value)
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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sourceTag to set. |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
This builder for chaining. |
setSourceTagBytes(ByteString value)
public ExportArtifactRequest.Builder setSourceTagBytes(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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sourceTag to set. |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
This builder for chaining. |
setSourceVersion(String value)
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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe sourceVersion to set. |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
This builder for chaining. |
setSourceVersionBytes(ByteString value)
public ExportArtifactRequest.Builder setSourceVersionBytes(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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for sourceVersion to set. |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ExportArtifactRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
ExportArtifactRequest.Builder |
|