public static final class AuthConfig.UserPasswordConfig.Builder extends GeneratedMessage.Builder<AuthConfig.UserPasswordConfig.Builder> implements AuthConfig.UserPasswordConfigOrBuilderParameters to support Username and Password Authentication.
Protobuf type google.cloud.apihub.v1.AuthConfig.UserPasswordConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AuthConfig.UserPasswordConfig.BuilderImplements
AuthConfig.UserPasswordConfigOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public AuthConfig.UserPasswordConfig build()| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
buildPartial()
public AuthConfig.UserPasswordConfig buildPartial()| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
clear()
public AuthConfig.UserPasswordConfig.Builder clear()| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
clearPassword()
public AuthConfig.UserPasswordConfig.Builder clearPassword() Required. Secret version reference containing the password.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
clearUsername()
public AuthConfig.UserPasswordConfig.Builder clearUsername()Required. Username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public AuthConfig.UserPasswordConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPassword()
public Secret getPassword() Required. Secret version reference containing the password.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Secret |
The password. |
getPasswordBuilder()
public Secret.Builder getPasswordBuilder() Required. Secret version reference containing the password.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Secret.Builder |
|
getPasswordOrBuilder()
public SecretOrBuilder getPasswordOrBuilder() Required. Secret version reference containing the password.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SecretOrBuilder |
|
getUsername()
public String getUsername()Required. Username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The username. |
getUsernameBytes()
public ByteString getUsernameBytes()Required. Username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for username. |
hasPassword()
public boolean hasPassword() Required. Secret version reference containing the password.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the password field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AuthConfig.UserPasswordConfig other)
public AuthConfig.UserPasswordConfig.Builder mergeFrom(AuthConfig.UserPasswordConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
AuthConfig.UserPasswordConfig |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AuthConfig.UserPasswordConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AuthConfig.UserPasswordConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
mergePassword(Secret value)
public AuthConfig.UserPasswordConfig.Builder mergePassword(Secret value) Required. Secret version reference containing the password.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Secret |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
setPassword(Secret value)
public AuthConfig.UserPasswordConfig.Builder setPassword(Secret value) Required. Secret version reference containing the password.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Secret |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
setPassword(Secret.Builder builderForValue)
public AuthConfig.UserPasswordConfig.Builder setPassword(Secret.Builder builderForValue) Required. Secret version reference containing the password.
The secretmanager.versions.access permission should be
granted to the service account accessing the secret.
.google.cloud.apihub.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Secret.Builder |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
setUsername(String value)
public AuthConfig.UserPasswordConfig.Builder setUsername(String value)Required. Username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe username to set. |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
This builder for chaining. |
setUsernameBytes(ByteString value)
public AuthConfig.UserPasswordConfig.Builder setUsernameBytes(ByteString value)Required. Username.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for username to set. |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
This builder for chaining. |