public static final class AuthConfig.UserPasswordConfig extends GeneratedMessage implements AuthConfig.UserPasswordConfigOrBuilderParameters to support Username and Password Authentication.
Protobuf type google.cloud.apihub.v1.AuthConfig.UserPasswordConfig
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > AuthConfig.UserPasswordConfigImplements
AuthConfig.UserPasswordConfigOrBuilderStatic Fields
PASSWORD_FIELD_NUMBER
public static final int PASSWORD_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
USERNAME_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static AuthConfig.UserPasswordConfig getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static AuthConfig.UserPasswordConfig.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
newBuilder(AuthConfig.UserPasswordConfig prototype)
public static AuthConfig.UserPasswordConfig.Builder newBuilder(AuthConfig.UserPasswordConfig prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
AuthConfig.UserPasswordConfig |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
parseDelimitedFrom(InputStream input)
public static AuthConfig.UserPasswordConfig parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.UserPasswordConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static AuthConfig.UserPasswordConfig parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.UserPasswordConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static AuthConfig.UserPasswordConfig parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.UserPasswordConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static AuthConfig.UserPasswordConfig parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.UserPasswordConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static AuthConfig.UserPasswordConfig parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.UserPasswordConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static AuthConfig.UserPasswordConfig parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AuthConfig.UserPasswordConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<AuthConfig.UserPasswordConfig> parser()| Returns | |
|---|---|
| Type | Description |
Parser<UserPasswordConfig> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public AuthConfig.UserPasswordConfig getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig |
|
getParserForType()
public Parser<AuthConfig.UserPasswordConfig> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<UserPasswordConfig> |
|
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. |
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 |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public AuthConfig.UserPasswordConfig.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected AuthConfig.UserPasswordConfig.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
toBuilder()
public AuthConfig.UserPasswordConfig.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
AuthConfig.UserPasswordConfig.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|