public static final class UserPasswordCredentials.Builder extends GeneratedMessage.Builder<UserPasswordCredentials.Builder> implements UserPasswordCredentialsOrBuilderUser-password credentials.
Protobuf type google.cloud.datastream.v1.UserPasswordCredentials
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > UserPasswordCredentials.BuilderImplements
UserPasswordCredentialsOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public UserPasswordCredentials build()| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials |
|
buildPartial()
public UserPasswordCredentials buildPartial()| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials |
|
clear()
public UserPasswordCredentials.Builder clear()| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials.Builder |
|
clearPassword()
public UserPasswordCredentials.Builder clearPassword()Required. Password for the connection.
.google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials.Builder |
|
clearUsername()
public UserPasswordCredentials.Builder clearUsername()Required. Username for the connection.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public UserPasswordCredentials getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getPassword()
public Secret getPassword()Required. Password for the connection.
.google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Secret |
The password. |
getPasswordBuilder()
public Secret.Builder getPasswordBuilder()Required. Password for the connection.
.google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Secret.Builder |
|
getPasswordOrBuilder()
public SecretOrBuilder getPasswordOrBuilder()Required. Password for the connection.
.google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
SecretOrBuilder |
|
getUsername()
public String getUsername()Required. Username for the connection.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The username. |
getUsernameBytes()
public ByteString getUsernameBytes()Required. Username for the connection.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for username. |
hasPassword()
public boolean hasPassword()Required. Password for the connection.
.google.cloud.datastream.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(UserPasswordCredentials other)
public UserPasswordCredentials.Builder mergeFrom(UserPasswordCredentials other)| Parameter | |
|---|---|
| Name | Description |
other |
UserPasswordCredentials |
| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public UserPasswordCredentials.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public UserPasswordCredentials.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials.Builder |
|
mergePassword(Secret value)
public UserPasswordCredentials.Builder mergePassword(Secret value)Required. Password for the connection.
.google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Secret |
| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials.Builder |
|
setPassword(Secret value)
public UserPasswordCredentials.Builder setPassword(Secret value)Required. Password for the connection.
.google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
Secret |
| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials.Builder |
|
setPassword(Secret.Builder builderForValue)
public UserPasswordCredentials.Builder setPassword(Secret.Builder builderForValue)Required. Password for the connection.
.google.cloud.datastream.v1.Secret password = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Secret.Builder |
| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials.Builder |
|
setUsername(String value)
public UserPasswordCredentials.Builder setUsername(String value)Required. Username for the connection.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe username to set. |
| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials.Builder |
This builder for chaining. |
setUsernameBytes(ByteString value)
public UserPasswordCredentials.Builder setUsernameBytes(ByteString value)Required. Username for the connection.
string username = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for username to set. |
| Returns | |
|---|---|
| Type | Description |
UserPasswordCredentials.Builder |
This builder for chaining. |