Class ImportAptArtifactsRequest.Builder (1.33.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.v1.ImportAptArtifactsRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ImportAptArtifactsRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportAptArtifactsRequest.Builder
Overrides

build()

public ImportAptArtifactsRequest build()
Returns
TypeDescription
ImportAptArtifactsRequest

buildPartial()

public ImportAptArtifactsRequest buildPartial()
Returns
TypeDescription
ImportAptArtifactsRequest

clear()

public ImportAptArtifactsRequest.Builder clear()
Returns
TypeDescription
ImportAptArtifactsRequest.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public ImportAptArtifactsRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ImportAptArtifactsRequest.Builder
Overrides

clearGcsSource()

public ImportAptArtifactsRequest.Builder clearGcsSource()

Google Cloud Storage location where input content is located.

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

Returns
TypeDescription
ImportAptArtifactsRequest.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ImportAptArtifactsRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ImportAptArtifactsRequest.Builder
Overrides

clearParent()

public ImportAptArtifactsRequest.Builder clearParent()

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

string parent = 1;

Returns
TypeDescription
ImportAptArtifactsRequest.Builder

This builder for chaining.

clearSource()

public ImportAptArtifactsRequest.Builder clearSource()
Returns
TypeDescription
ImportAptArtifactsRequest.Builder

clone()

public ImportAptArtifactsRequest.Builder clone()
Returns
TypeDescription
ImportAptArtifactsRequest.Builder
Overrides

getDefaultInstanceForType()

public ImportAptArtifactsRequest getDefaultInstanceForType()
Returns
TypeDescription
ImportAptArtifactsRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getGcsSource()

public ImportAptArtifactsGcsSource getGcsSource()

Google Cloud Storage location where input content is located.

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

Returns
TypeDescription
ImportAptArtifactsGcsSource

The gcsSource.

getGcsSourceBuilder()

public ImportAptArtifactsGcsSource.Builder getGcsSourceBuilder()

Google Cloud Storage location where input content is located.

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

Returns
TypeDescription
ImportAptArtifactsGcsSource.Builder

getGcsSourceOrBuilder()

public ImportAptArtifactsGcsSourceOrBuilder getGcsSourceOrBuilder()

Google Cloud Storage location where input content is located.

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

Returns
TypeDescription
ImportAptArtifactsGcsSourceOrBuilder

getParent()

public String getParent()

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

string parent = 1;

Returns
TypeDescription
String

The parent.

getParentBytes()

public ByteString getParentBytes()

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

string parent = 1;

Returns
TypeDescription
ByteString

The bytes for parent.

getSourceCase()

public ImportAptArtifactsRequest.SourceCase getSourceCase()
Returns
TypeDescription
ImportAptArtifactsRequest.SourceCase

hasGcsSource()

public boolean hasGcsSource()

Google Cloud Storage location where input content is located.

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

Returns
TypeDescription
boolean

Whether the gcsSource field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ImportAptArtifactsRequest other)

public ImportAptArtifactsRequest.Builder mergeFrom(ImportAptArtifactsRequest other)
Parameter
NameDescription
otherImportAptArtifactsRequest
Returns
TypeDescription
ImportAptArtifactsRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ImportAptArtifactsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ImportAptArtifactsRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ImportAptArtifactsRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ImportAptArtifactsRequest.Builder
Overrides

mergeGcsSource(ImportAptArtifactsGcsSource value)

public ImportAptArtifactsRequest.Builder mergeGcsSource(ImportAptArtifactsGcsSource value)

Google Cloud Storage location where input content is located.

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

Parameter
NameDescription
valueImportAptArtifactsGcsSource
Returns
TypeDescription
ImportAptArtifactsRequest.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ImportAptArtifactsRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportAptArtifactsRequest.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public ImportAptArtifactsRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ImportAptArtifactsRequest.Builder
Overrides

setGcsSource(ImportAptArtifactsGcsSource value)

public ImportAptArtifactsRequest.Builder setGcsSource(ImportAptArtifactsGcsSource value)

Google Cloud Storage location where input content is located.

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

Parameter
NameDescription
valueImportAptArtifactsGcsSource
Returns
TypeDescription
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.v1.ImportAptArtifactsGcsSource gcs_source = 2;

Parameter
NameDescription
builderForValueImportAptArtifactsGcsSource.Builder
Returns
TypeDescription
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
NameDescription
valueString

The parent to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for parent to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ImportAptArtifactsRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ImportAptArtifactsRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ImportAptArtifactsRequest.Builder
Overrides