Class RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials (1.31.0)

public static final class RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials extends GeneratedMessageV3 implements RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentialsOrBuilder

Username and password credentials.

Protobuf type google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials

Static Fields

PASSWORD_SECRET_VERSION_FIELD_NUMBER

public static final int PASSWORD_SECRET_VERSION_FIELD_NUMBER
Field Value
TypeDescription
int

USERNAME_FIELD_NUMBER

public static final int USERNAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials getDefaultInstance()
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder newBuilder()
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder

newBuilder(RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials prototype)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder newBuilder(RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials prototype)
Parameter
NameDescription
prototypeRemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder

parseDelimitedFrom(InputStream input)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials> parser()
Returns
TypeDescription
Parser<UsernamePasswordCredentials>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials getDefaultInstanceForType()
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials

getParserForType()

public Parser<RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials> getParserForType()
Returns
TypeDescription
Parser<UsernamePasswordCredentials>
Overrides

getPasswordSecretVersion()

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
TypeDescription
String

The passwordSecretVersion.

getPasswordSecretVersionBytes()

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
TypeDescription
ByteString

The bytes for passwordSecretVersion.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUsername()

public String getUsername()

The username to access the remote repository.

string username = 1;

Returns
TypeDescription
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

The username to access the remote repository.

string username = 1;

Returns
TypeDescription
ByteString

The bytes for username.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder newBuilderForType()
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder toBuilder()
Returns
TypeDescription
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException