Class VirtualRepositoryConfig.Builder (1.40.0)

public static final class VirtualRepositoryConfig.Builder extends GeneratedMessageV3.Builder<VirtualRepositoryConfig.Builder> implements VirtualRepositoryConfigOrBuilder

Virtual repository configuration.

Protobuf type google.devtools.artifactregistry.v1.VirtualRepositoryConfig

Static Methods

getDescriptor()

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

Methods

addAllUpstreamPolicies(Iterable<? extends UpstreamPolicy> values)

public VirtualRepositoryConfig.Builder addAllUpstreamPolicies(Iterable<? extends UpstreamPolicy> values)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameter
Name Description
values Iterable<? extends com.google.devtools.artifactregistry.v1.UpstreamPolicy>
Returns
Type Description
VirtualRepositoryConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addUpstreamPolicies(UpstreamPolicy value)

public VirtualRepositoryConfig.Builder addUpstreamPolicies(UpstreamPolicy value)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameter
Name Description
value UpstreamPolicy
Returns
Type Description
VirtualRepositoryConfig.Builder

addUpstreamPolicies(UpstreamPolicy.Builder builderForValue)

public VirtualRepositoryConfig.Builder addUpstreamPolicies(UpstreamPolicy.Builder builderForValue)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameter
Name Description
builderForValue UpstreamPolicy.Builder
Returns
Type Description
VirtualRepositoryConfig.Builder

addUpstreamPolicies(int index, UpstreamPolicy value)

public VirtualRepositoryConfig.Builder addUpstreamPolicies(int index, UpstreamPolicy value)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameters
Name Description
index int
value UpstreamPolicy
Returns
Type Description
VirtualRepositoryConfig.Builder

addUpstreamPolicies(int index, UpstreamPolicy.Builder builderForValue)

public VirtualRepositoryConfig.Builder addUpstreamPolicies(int index, UpstreamPolicy.Builder builderForValue)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameters
Name Description
index int
builderForValue UpstreamPolicy.Builder
Returns
Type Description
VirtualRepositoryConfig.Builder

addUpstreamPoliciesBuilder()

public UpstreamPolicy.Builder addUpstreamPoliciesBuilder()

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Returns
Type Description
UpstreamPolicy.Builder

addUpstreamPoliciesBuilder(int index)

public UpstreamPolicy.Builder addUpstreamPoliciesBuilder(int index)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
UpstreamPolicy.Builder

build()

public VirtualRepositoryConfig build()
Returns
Type Description
VirtualRepositoryConfig

buildPartial()

public VirtualRepositoryConfig buildPartial()
Returns
Type Description
VirtualRepositoryConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpstreamPolicies()

public VirtualRepositoryConfig.Builder clearUpstreamPolicies()

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Returns
Type Description
VirtualRepositoryConfig.Builder

clone()

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

getDefaultInstanceForType()

public VirtualRepositoryConfig getDefaultInstanceForType()
Returns
Type Description
VirtualRepositoryConfig

getDescriptorForType()

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

getUpstreamPolicies(int index)

public UpstreamPolicy getUpstreamPolicies(int index)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
UpstreamPolicy

getUpstreamPoliciesBuilder(int index)

public UpstreamPolicy.Builder getUpstreamPoliciesBuilder(int index)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
UpstreamPolicy.Builder

getUpstreamPoliciesBuilderList()

public List<UpstreamPolicy.Builder> getUpstreamPoliciesBuilderList()

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Returns
Type Description
List<Builder>

getUpstreamPoliciesCount()

public int getUpstreamPoliciesCount()

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Returns
Type Description
int

getUpstreamPoliciesList()

public List<UpstreamPolicy> getUpstreamPoliciesList()

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Returns
Type Description
List<UpstreamPolicy>

getUpstreamPoliciesOrBuilder(int index)

public UpstreamPolicyOrBuilder getUpstreamPoliciesOrBuilder(int index)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
UpstreamPolicyOrBuilder

getUpstreamPoliciesOrBuilderList()

public List<? extends UpstreamPolicyOrBuilder> getUpstreamPoliciesOrBuilderList()

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Returns
Type Description
List<? extends com.google.devtools.artifactregistry.v1.UpstreamPolicyOrBuilder>

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VirtualRepositoryConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeUpstreamPolicies(int index)

public VirtualRepositoryConfig.Builder removeUpstreamPolicies(int index)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameter
Name Description
index int
Returns
Type Description
VirtualRepositoryConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpstreamPolicies(int index, UpstreamPolicy value)

public VirtualRepositoryConfig.Builder setUpstreamPolicies(int index, UpstreamPolicy value)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameters
Name Description
index int
value UpstreamPolicy
Returns
Type Description
VirtualRepositoryConfig.Builder

setUpstreamPolicies(int index, UpstreamPolicy.Builder builderForValue)

public VirtualRepositoryConfig.Builder setUpstreamPolicies(int index, UpstreamPolicy.Builder builderForValue)

Policies that configure the upstream artifacts distributed by the Virtual Repository. Upstream policies cannot be set on a standard repository.

repeated .google.devtools.artifactregistry.v1.UpstreamPolicy upstream_policies = 1;

Parameters
Name Description
index int
builderForValue UpstreamPolicy.Builder
Returns
Type Description
VirtualRepositoryConfig.Builder