public static final class RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder extends GeneratedMessageV3.Builder<RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder> implements RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentialsOrBuilder
Username and password credentials.
Protobuf type
google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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 RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials build()
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials buildPartial()
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder clear()
Overrides
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder clearPasswordSecretVersion()
The Secret Manager key version that holds the password to access the
remote repository. Must be in the format of
projects/{project}/secrets/{secret}/versions/{version}
.
string password_secret_version = 2 [(.google.api.resource_reference) = { ... }
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder clearUsername()
The username to access the remote repository.
string username = 1;
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder clone()
Overrides
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public String getPasswordSecretVersion()
The Secret Manager key version that holds the password to access the
remote repository. Must be in the format of
projects/{project}/secrets/{secret}/versions/{version}
.
string password_secret_version = 2 [(.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The passwordSecretVersion.
|
public ByteString getPasswordSecretVersionBytes()
The Secret Manager key version that holds the password to access the
remote repository. Must be in the format of
projects/{project}/secrets/{secret}/versions/{version}
.
string password_secret_version = 2 [(.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for passwordSecretVersion.
|
public String getUsername()
The username to access the remote repository.
string username = 1;
Returns |
Type |
Description |
String |
The username.
|
public ByteString getUsernameBytes()
The username to access the remote repository.
string username = 1;
Returns |
Type |
Description |
ByteString |
The bytes for username.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder mergeFrom(RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials other)
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
public final RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder setPasswordSecretVersion(String value)
The Secret Manager key version that holds the password to access the
remote repository. Must be in the format of
projects/{project}/secrets/{secret}/versions/{version}
.
string password_secret_version = 2 [(.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The passwordSecretVersion to set.
|
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder setPasswordSecretVersionBytes(ByteString value)
The Secret Manager key version that holds the password to access the
remote repository. Must be in the format of
projects/{project}/secrets/{secret}/versions/{version}
.
string password_secret_version = 2 [(.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes for passwordSecretVersion to set.
|
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public final RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder setUsername(String value)
The username to access the remote repository.
string username = 1;
Parameter |
Name |
Description |
value |
String
The username to set.
|
public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder setUsernameBytes(ByteString value)
The username to access the remote repository.
string username = 1;
Parameter |
Name |
Description |
value |
ByteString
The bytes for username to set.
|