Send feedback
Class RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder (1.54.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.54.0 keyboard_arrow_down
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.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-28 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-28 UTC."],[],[]]