Class RemoteRepositoryConfig.UpstreamCredentials.Builder (1.53.0)

See more code actions.
public static final class RemoteRepositoryConfig.UpstreamCredentials.Builder extends GeneratedMessageV3.Builder<RemoteRepositoryConfig.UpstreamCredentials.Builder> implements RemoteRepositoryConfig.UpstreamCredentialsOrBuilder

The credentials to access the remote repository.

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

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

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public RemoteRepositoryConfig.UpstreamCredentials.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

build()

public RemoteRepositoryConfig.UpstreamCredentials build()

buildPartial()

public RemoteRepositoryConfig.UpstreamCredentials buildPartial()

clear()

public RemoteRepositoryConfig.UpstreamCredentials.Builder clear()
Overrides

clearCredentials()

public RemoteRepositoryConfig.UpstreamCredentials.Builder clearCredentials()

clearField(Descriptors.FieldDescriptor field)

public RemoteRepositoryConfig.UpstreamCredentials.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public RemoteRepositoryConfig.UpstreamCredentials.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Overrides

clearUsernamePasswordCredentials()

public RemoteRepositoryConfig.UpstreamCredentials.Builder clearUsernamePasswordCredentials()

Use username and password to access the remote repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials username_password_credentials = 1;

clone()

public RemoteRepositoryConfig.UpstreamCredentials.Builder clone()
Overrides

getCredentialsCase()

public RemoteRepositoryConfig.UpstreamCredentials.CredentialsCase getCredentialsCase()

getDefaultInstanceForType()

public RemoteRepositoryConfig.UpstreamCredentials getDefaultInstanceForType()

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getUsernamePasswordCredentials()

public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials getUsernamePasswordCredentials()

Use username and password to access the remote repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials username_password_credentials = 1;

Returns
Type Description
RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials

The usernamePasswordCredentials.

getUsernamePasswordCredentialsBuilder()

public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder getUsernamePasswordCredentialsBuilder()

Use username and password to access the remote repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials username_password_credentials = 1;

getUsernamePasswordCredentialsOrBuilder()

public RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentialsOrBuilder getUsernamePasswordCredentialsOrBuilder()

Use username and password to access the remote repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials username_password_credentials = 1;

hasUsernamePasswordCredentials()

public boolean hasUsernamePasswordCredentials()

Use username and password to access the remote repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials username_password_credentials = 1;

Returns
Type Description
boolean

Whether the usernamePasswordCredentials field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RemoteRepositoryConfig.UpstreamCredentials other)

public RemoteRepositoryConfig.UpstreamCredentials.Builder mergeFrom(RemoteRepositoryConfig.UpstreamCredentials other)
Parameter
Name Description
other RemoteRepositoryConfig.UpstreamCredentials

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public RemoteRepositoryConfig.UpstreamCredentials.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public RemoteRepositoryConfig.UpstreamCredentials.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RemoteRepositoryConfig.UpstreamCredentials.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides

mergeUsernamePasswordCredentials(RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials value)

public RemoteRepositoryConfig.UpstreamCredentials.Builder mergeUsernamePasswordCredentials(RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials value)

Use username and password to access the remote repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials username_password_credentials = 1;

setField(Descriptors.FieldDescriptor field, Object value)

public RemoteRepositoryConfig.UpstreamCredentials.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public RemoteRepositoryConfig.UpstreamCredentials.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final RemoteRepositoryConfig.UpstreamCredentials.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides

setUsernamePasswordCredentials(RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials value)

public RemoteRepositoryConfig.UpstreamCredentials.Builder setUsernamePasswordCredentials(RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials value)

Use username and password to access the remote repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials username_password_credentials = 1;

setUsernamePasswordCredentials(RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder builderForValue)

public RemoteRepositoryConfig.UpstreamCredentials.Builder setUsernamePasswordCredentials(RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials.Builder builderForValue)

Use username and password to access the remote repository.

.google.devtools.artifactregistry.v1.RemoteRepositoryConfig.UpstreamCredentials.UsernamePasswordCredentials username_password_credentials = 1;