Class VirtualRepositoryConfig.Builder (1.30.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.devtools.artifactregistry.v1.UpstreamPolicy>
Returns
TypeDescription
VirtualRepositoryConfig.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VirtualRepositoryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueUpstreamPolicy
Returns
TypeDescription
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
NameDescription
builderForValueUpstreamPolicy.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueUpstreamPolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUpstreamPolicy.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
UpstreamPolicy.Builder

build()

public VirtualRepositoryConfig build()
Returns
TypeDescription
VirtualRepositoryConfig

buildPartial()

public VirtualRepositoryConfig buildPartial()
Returns
TypeDescription
VirtualRepositoryConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public VirtualRepositoryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
VirtualRepositoryConfig.Builder

clone()

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

getDefaultInstanceForType()

public VirtualRepositoryConfig getDefaultInstanceForType()
Returns
TypeDescription
VirtualRepositoryConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.devtools.artifactregistry.v1.UpstreamPolicyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VirtualRepositoryConfig other)

public VirtualRepositoryConfig.Builder mergeFrom(VirtualRepositoryConfig other)
Parameter
NameDescription
otherVirtualRepositoryConfig
Returns
TypeDescription
VirtualRepositoryConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VirtualRepositoryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VirtualRepositoryConfig.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

public VirtualRepositoryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VirtualRepositoryConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VirtualRepositoryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueUpstreamPolicy
Returns
TypeDescription
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
NameDescription
indexint
builderForValueUpstreamPolicy.Builder
Returns
TypeDescription
VirtualRepositoryConfig.Builder