public static final class VirtualRepositoryConfig.Builder extends GeneratedMessage.Builder<VirtualRepositoryConfig.Builder> implements VirtualRepositoryConfigOrBuilder
Virtual repository configuration.
Protobuf type google.devtools.artifactregistry.v1.VirtualRepositoryConfig
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
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>
|
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;
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;
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;
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;
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;
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
|
public VirtualRepositoryConfig build()
public VirtualRepositoryConfig buildPartial()
public VirtualRepositoryConfig.Builder clear()
Overrides
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;
public VirtualRepositoryConfig getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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
|
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
|
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;
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 |
|
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;
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
|
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> |
|
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public VirtualRepositoryConfig.Builder mergeFrom(VirtualRepositoryConfig other)
public VirtualRepositoryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public VirtualRepositoryConfig.Builder mergeFrom(Message other)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
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
|
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;
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;