public static final class GenericHTTPEndpointConfig.BasicAuthentication.Builder extends GeneratedMessage.Builder<GenericHTTPEndpointConfig.BasicAuthentication.Builder> implements GenericHTTPEndpointConfig.BasicAuthenticationOrBuilderBasic authentication with username and password.
Protobuf type
google.cloud.developerconnect.v1.GenericHTTPEndpointConfig.BasicAuthentication
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > GenericHTTPEndpointConfig.BasicAuthentication.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public GenericHTTPEndpointConfig.BasicAuthentication build()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication |
|
buildPartial()
public GenericHTTPEndpointConfig.BasicAuthentication buildPartial()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication |
|
clear()
public GenericHTTPEndpointConfig.BasicAuthentication.Builder clear()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
|
clearPassword()
public GenericHTTPEndpointConfig.BasicAuthentication.Builder clearPassword()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
|
clearPasswordSecretVersion()
public GenericHTTPEndpointConfig.BasicAuthentication.Builder clearPasswordSecretVersion()The password SecretManager secret version to authenticate as.
string password_secret_version = 2 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
This builder for chaining. |
clearUsername()
public GenericHTTPEndpointConfig.BasicAuthentication.Builder clearUsername()Required. The username to authenticate as.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public GenericHTTPEndpointConfig.BasicAuthentication getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPasswordCase()
public GenericHTTPEndpointConfig.BasicAuthentication.PasswordCase getPasswordCase()| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.PasswordCase |
|
getPasswordSecretVersion()
public String getPasswordSecretVersion()The password SecretManager secret version to authenticate as.
string password_secret_version = 2 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The passwordSecretVersion. |
getPasswordSecretVersionBytes()
public ByteString getPasswordSecretVersionBytes()The password SecretManager secret version to authenticate as.
string password_secret_version = 2 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for passwordSecretVersion. |
getUsername()
public String getUsername()Required. The username to authenticate as.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The username. |
getUsernameBytes()
public ByteString getUsernameBytes()Required. The username to authenticate as.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for username. |
hasPasswordSecretVersion()
public boolean hasPasswordSecretVersion()The password SecretManager secret version to authenticate as.
string password_secret_version = 2 [(.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the passwordSecretVersion field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(GenericHTTPEndpointConfig.BasicAuthentication other)
public GenericHTTPEndpointConfig.BasicAuthentication.Builder mergeFrom(GenericHTTPEndpointConfig.BasicAuthentication other)| Parameter | |
|---|---|
| Name | Description |
other |
GenericHTTPEndpointConfig.BasicAuthentication |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public GenericHTTPEndpointConfig.BasicAuthentication.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public GenericHTTPEndpointConfig.BasicAuthentication.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
|
setPasswordSecretVersion(String value)
public GenericHTTPEndpointConfig.BasicAuthentication.Builder setPasswordSecretVersion(String value)The password SecretManager secret version to authenticate as.
string password_secret_version = 2 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe passwordSecretVersion to set. |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
This builder for chaining. |
setPasswordSecretVersionBytes(ByteString value)
public GenericHTTPEndpointConfig.BasicAuthentication.Builder setPasswordSecretVersionBytes(ByteString value)The password SecretManager secret version to authenticate as.
string password_secret_version = 2 [(.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for passwordSecretVersion to set. |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
This builder for chaining. |
setUsername(String value)
public GenericHTTPEndpointConfig.BasicAuthentication.Builder setUsername(String value)Required. The username to authenticate as.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe username to set. |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
This builder for chaining. |
setUsernameBytes(ByteString value)
public GenericHTTPEndpointConfig.BasicAuthentication.Builder setUsernameBytes(ByteString value)Required. The username to authenticate as.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for username to set. |
| Returns | |
|---|---|
| Type | Description |
GenericHTTPEndpointConfig.BasicAuthentication.Builder |
This builder for chaining. |