Class RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials (1.36.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
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

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()

getDescriptor()

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

newBuilder()

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

newBuilder(RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials prototype)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder newBuilder(RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials prototype)

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
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()

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()

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
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()

writeTo(CodedOutputStream output)

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