Class ImportYumArtifactsGcsSource.Builder (1.46.0)

public static final class ImportYumArtifactsGcsSource.Builder extends GeneratedMessageV3.Builder<ImportYumArtifactsGcsSource.Builder> implements ImportYumArtifactsGcsSourceOrBuilder

Google Cloud Storage location where the artifacts currently reside.

Protobuf type google.devtools.artifactregistry.v1.ImportYumArtifactsGcsSource

Static Methods

getDescriptor()

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

Methods

addAllUris(Iterable<String> values)

public ImportYumArtifactsGcsSource.Builder addAllUris(Iterable<String> values)

Cloud Storage paths URI (e.g., gs://my_bucket//my_object).

repeated string uris = 1;

Parameter
Name Description
values Iterable<String>

The uris to add.

Returns
Type Description
ImportYumArtifactsGcsSource.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUris(String value)

public ImportYumArtifactsGcsSource.Builder addUris(String value)

Cloud Storage paths URI (e.g., gs://my_bucket//my_object).

repeated string uris = 1;

Parameter
Name Description
value String

The uris to add.

Returns
Type Description
ImportYumArtifactsGcsSource.Builder

This builder for chaining.

addUrisBytes(ByteString value)

public ImportYumArtifactsGcsSource.Builder addUrisBytes(ByteString value)

Cloud Storage paths URI (e.g., gs://my_bucket//my_object).

repeated string uris = 1;

Parameter
Name Description
value ByteString

The bytes of the uris to add.

Returns
Type Description
ImportYumArtifactsGcsSource.Builder

This builder for chaining.

build()

public ImportYumArtifactsGcsSource build()
Returns
Type Description
ImportYumArtifactsGcsSource

buildPartial()

public ImportYumArtifactsGcsSource buildPartial()
Returns
Type Description
ImportYumArtifactsGcsSource

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUris()

public ImportYumArtifactsGcsSource.Builder clearUris()

Cloud Storage paths URI (e.g., gs://my_bucket//my_object).

repeated string uris = 1;

Returns
Type Description
ImportYumArtifactsGcsSource.Builder

This builder for chaining.

clearUseWildcards()

public ImportYumArtifactsGcsSource.Builder clearUseWildcards()

Supports URI wildcards for matching multiple objects from a single URI.

bool use_wildcards = 2;

Returns
Type Description
ImportYumArtifactsGcsSource.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public ImportYumArtifactsGcsSource getDefaultInstanceForType()
Returns
Type Description
ImportYumArtifactsGcsSource

getDescriptorForType()

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

getUris(int index)

public String getUris(int index)

Cloud Storage paths URI (e.g., gs://my_bucket//my_object).

repeated string uris = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The uris at the given index.

getUrisBytes(int index)

public ByteString getUrisBytes(int index)

Cloud Storage paths URI (e.g., gs://my_bucket//my_object).

repeated string uris = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the uris at the given index.

getUrisCount()

public int getUrisCount()

Cloud Storage paths URI (e.g., gs://my_bucket//my_object).

repeated string uris = 1;

Returns
Type Description
int

The count of uris.

getUrisList()

public ProtocolStringList getUrisList()

Cloud Storage paths URI (e.g., gs://my_bucket//my_object).

repeated string uris = 1;

Returns
Type Description
ProtocolStringList

A list containing the uris.

getUseWildcards()

public boolean getUseWildcards()

Supports URI wildcards for matching multiple objects from a single URI.

bool use_wildcards = 2;

Returns
Type Description
boolean

The useWildcards.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ImportYumArtifactsGcsSource other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUris(int index, String value)

public ImportYumArtifactsGcsSource.Builder setUris(int index, String value)

Cloud Storage paths URI (e.g., gs://my_bucket//my_object).

repeated string uris = 1;

Parameters
Name Description
index int

The index to set the value at.

value String

The uris to set.

Returns
Type Description
ImportYumArtifactsGcsSource.Builder

This builder for chaining.

setUseWildcards(boolean value)

public ImportYumArtifactsGcsSource.Builder setUseWildcards(boolean value)

Supports URI wildcards for matching multiple objects from a single URI.

bool use_wildcards = 2;

Parameter
Name Description
value boolean

The useWildcards to set.

Returns
Type Description
ImportYumArtifactsGcsSource.Builder

This builder for chaining.