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.v1beta2.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()
Methods
public Repository.MavenRepositoryConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Repository.MavenRepositoryConfig build()
public Repository.MavenRepositoryConfig buildPartial()
public Repository.MavenRepositoryConfig.Builder clear()
Overrides
public Repository.MavenRepositoryConfig.Builder clearAllowSnapshotOverwrites()
The repository with this flag will allow publishing
the same snapshot versions.
bool allow_snapshot_overwrites = 1;
public Repository.MavenRepositoryConfig.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public Repository.MavenRepositoryConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public Repository.MavenRepositoryConfig.Builder clearVersionPolicy()
Version policy defines the versions that the registry will accept.
.google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2;
public Repository.MavenRepositoryConfig.Builder clone()
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()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public Repository.MavenRepositoryConfig.VersionPolicy getVersionPolicy()
Version policy defines the versions that the registry will accept.
.google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2;
public int getVersionPolicyValue()
Version policy defines the versions that the registry will accept.
.google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for versionPolicy.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public Repository.MavenRepositoryConfig.Builder mergeFrom(Repository.MavenRepositoryConfig other)
public Repository.MavenRepositoryConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public Repository.MavenRepositoryConfig.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public final Repository.MavenRepositoryConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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.
|
public Repository.MavenRepositoryConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public Repository.MavenRepositoryConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final Repository.MavenRepositoryConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public Repository.MavenRepositoryConfig.Builder setVersionPolicy(Repository.MavenRepositoryConfig.VersionPolicy value)
Version policy defines the versions that the registry will accept.
.google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2;
public Repository.MavenRepositoryConfig.Builder setVersionPolicyValue(int value)
Version policy defines the versions that the registry will accept.
.google.devtools.artifactregistry.v1beta2.Repository.MavenRepositoryConfig.VersionPolicy version_policy = 2;
Parameter |
---|
Name | Description |
value | int
The enum numeric value on the wire for versionPolicy to set.
|