Class ImportAptArtifactsRequest.Builder (1.41.0)

public static final class ImportAptArtifactsRequest.Builder extends GeneratedMessageV3.Builder<ImportAptArtifactsRequest.Builder> implements ImportAptArtifactsRequestOrBuilder

The request to import new apt artifacts.

Protobuf type google.devtools.artifactregistry.v1beta2.ImportAptArtifactsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportAptArtifactsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportAptArtifactsRequest.Builder
Overrides

build()

public ImportAptArtifactsRequest build()
Returns
Type Description
ImportAptArtifactsRequest

buildPartial()

public ImportAptArtifactsRequest buildPartial()
Returns
Type Description
ImportAptArtifactsRequest

clear()

public ImportAptArtifactsRequest.Builder clear()
Returns
Type Description
ImportAptArtifactsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImportAptArtifactsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ImportAptArtifactsRequest.Builder
Overrides

clearGcsSource()

public ImportAptArtifactsRequest.Builder clearGcsSource()

Google Cloud Storage location where input content is located.

.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource gcs_source = 2;

Returns
Type Description
ImportAptArtifactsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportAptArtifactsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ImportAptArtifactsRequest.Builder
Overrides

clearParent()

public ImportAptArtifactsRequest.Builder clearParent()

The name of the parent resource where the artifacts will be imported.

string parent = 1;

Returns
Type Description
ImportAptArtifactsRequest.Builder

This builder for chaining.

clearSource()

public ImportAptArtifactsRequest.Builder clearSource()
Returns
Type Description
ImportAptArtifactsRequest.Builder

clone()

public ImportAptArtifactsRequest.Builder clone()
Returns
Type Description
ImportAptArtifactsRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportAptArtifactsRequest getDefaultInstanceForType()
Returns
Type Description
ImportAptArtifactsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getGcsSource()

public ImportAptArtifactsGcsSource getGcsSource()

Google Cloud Storage location where input content is located.

.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource gcs_source = 2;

Returns
Type Description
ImportAptArtifactsGcsSource

The gcsSource.

getGcsSourceBuilder()

public ImportAptArtifactsGcsSource.Builder getGcsSourceBuilder()

Google Cloud Storage location where input content is located.

.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource gcs_source = 2;

Returns
Type Description
ImportAptArtifactsGcsSource.Builder

getGcsSourceOrBuilder()

public ImportAptArtifactsGcsSourceOrBuilder getGcsSourceOrBuilder()

Google Cloud Storage location where input content is located.

.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource gcs_source = 2;

Returns
Type Description
ImportAptArtifactsGcsSourceOrBuilder

getParent()

public String getParent()

The name of the parent resource where the artifacts will be imported.

string parent = 1;

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

The name of the parent resource where the artifacts will be imported.

string parent = 1;

Returns
Type Description
ByteString

The bytes for parent.

getSourceCase()

public ImportAptArtifactsRequest.SourceCase getSourceCase()
Returns
Type Description
ImportAptArtifactsRequest.SourceCase

hasGcsSource()

public boolean hasGcsSource()

Google Cloud Storage location where input content is located.

.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource gcs_source = 2;

Returns
Type Description
boolean

Whether the gcsSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportAptArtifactsRequest other)

public ImportAptArtifactsRequest.Builder mergeFrom(ImportAptArtifactsRequest other)
Parameter
Name Description
other ImportAptArtifactsRequest
Returns
Type Description
ImportAptArtifactsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportAptArtifactsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ImportAptArtifactsRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ImportAptArtifactsRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ImportAptArtifactsRequest.Builder
Overrides

mergeGcsSource(ImportAptArtifactsGcsSource value)

public ImportAptArtifactsRequest.Builder mergeGcsSource(ImportAptArtifactsGcsSource value)

Google Cloud Storage location where input content is located.

.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource gcs_source = 2;

Parameter
Name Description
value ImportAptArtifactsGcsSource
Returns
Type Description
ImportAptArtifactsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportAptArtifactsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportAptArtifactsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ImportAptArtifactsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ImportAptArtifactsRequest.Builder
Overrides

setGcsSource(ImportAptArtifactsGcsSource value)

public ImportAptArtifactsRequest.Builder setGcsSource(ImportAptArtifactsGcsSource value)

Google Cloud Storage location where input content is located.

.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource gcs_source = 2;

Parameter
Name Description
value ImportAptArtifactsGcsSource
Returns
Type Description
ImportAptArtifactsRequest.Builder

setGcsSource(ImportAptArtifactsGcsSource.Builder builderForValue)

public ImportAptArtifactsRequest.Builder setGcsSource(ImportAptArtifactsGcsSource.Builder builderForValue)

Google Cloud Storage location where input content is located.

.google.devtools.artifactregistry.v1beta2.ImportAptArtifactsGcsSource gcs_source = 2;

Parameter
Name Description
builderForValue ImportAptArtifactsGcsSource.Builder
Returns
Type Description
ImportAptArtifactsRequest.Builder

setParent(String value)

public ImportAptArtifactsRequest.Builder setParent(String value)

The name of the parent resource where the artifacts will be imported.

string parent = 1;

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
ImportAptArtifactsRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public ImportAptArtifactsRequest.Builder setParentBytes(ByteString value)

The name of the parent resource where the artifacts will be imported.

string parent = 1;

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
ImportAptArtifactsRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ImportAptArtifactsRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ImportAptArtifactsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportAptArtifactsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ImportAptArtifactsRequest.Builder
Overrides