public static final class Repository.MavenRepositoryConfig.Builder extends GeneratedMessageV3.Builder<Repository.MavenRepositoryConfig.Builder> implements Repository.MavenRepositoryConfigOrBuilder
MavenRepositoryConfig is maven related repository details.
Provides additional configuration details for repositories of the maven
format type.
Protobuf type google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public Repository.MavenRepositoryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Repository.MavenRepositoryConfig build()
Returns
public Repository.MavenRepositoryConfig buildPartial()
Returns
public Repository.MavenRepositoryConfig.Builder clear()
Returns
Overrides
public Repository.MavenRepositoryConfig.Builder clearAllowSnapshotOverwrites()
The repository with this flag will allow publishing
the same snapshot versions.
bool allow_snapshot_overwrites = 1;
Returns
public Repository.MavenRepositoryConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public Repository.MavenRepositoryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public Repository.MavenRepositoryConfig.Builder clearVersionPolicy()
Version policy defines the versions that the registry will accept.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2;
Returns
public Repository.MavenRepositoryConfig.Builder clone()
Returns
Overrides
public boolean getAllowSnapshotOverwrites()
The repository with this flag will allow publishing
the same snapshot versions.
bool allow_snapshot_overwrites = 1;
Returns
Type | Description |
boolean | The allowSnapshotOverwrites.
|
public Repository.MavenRepositoryConfig getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public Repository.MavenRepositoryConfig.VersionPolicy getVersionPolicy()
Version policy defines the versions that the registry will accept.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2;
Returns
public int getVersionPolicyValue()
Version policy defines the versions that the registry will accept.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2;
Returns
Type | Description |
int | The enum numeric value on the wire for versionPolicy.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public Repository.MavenRepositoryConfig.Builder mergeFrom(Repository.MavenRepositoryConfig other)
Parameter
Returns
public Repository.MavenRepositoryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public Repository.MavenRepositoryConfig.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public final Repository.MavenRepositoryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Repository.MavenRepositoryConfig.Builder setAllowSnapshotOverwrites(boolean value)
The repository with this flag will allow publishing
the same snapshot versions.
bool allow_snapshot_overwrites = 1;
Parameter
Name | Description |
value | boolean
The allowSnapshotOverwrites to set.
|
Returns
public Repository.MavenRepositoryConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public Repository.MavenRepositoryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public final Repository.MavenRepositoryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public Repository.MavenRepositoryConfig.Builder setVersionPolicy(Repository.MavenRepositoryConfig.VersionPolicy value)
Version policy defines the versions that the registry will accept.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2;
Parameter
Returns
public Repository.MavenRepositoryConfig.Builder setVersionPolicyValue(int value)
Version policy defines the versions that the registry will accept.
.google.devtools.artifactregistry.v1.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for versionPolicy to set.
|
Returns