public static final class EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder extends GeneratedMessage.Builder<EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder> implements EnableManagedRotationRequest.CloudSQLSingleUserCredentialsOrBuilderThese are the credentials required for Cloud SQL DB for Single user Managed Rotation.
Protobuf type
google.cloud.secretmanager.v1.EnableManagedRotationRequest.CloudSQLSingleUserCredentials
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > EnableManagedRotationRequest.CloudSQLSingleUserCredentials.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials build()| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials |
|
buildPartial()
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials buildPartial()| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials |
|
clear()
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder clear()| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
|
clearInstanceId()
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder clearInstanceId()Required. Instance ID of the Cloud SQL instance.
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
This builder for chaining. |
clearPassword()
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder clearPassword()Optional. Password of the Cloud SQL instance. If this is not provided, a random password will be generated.
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
This builder for chaining. |
clearUsername()
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder clearUsername()Required. Username of the Cloud SQL instance.
string username = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getInstanceId()
public String getInstanceId()Required. Instance ID of the Cloud SQL instance.
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The instanceId. |
getInstanceIdBytes()
public ByteString getInstanceIdBytes()Required. Instance ID of the Cloud SQL instance.
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for instanceId. |
getPassword()
public String getPassword()Optional. Password of the Cloud SQL instance. If this is not provided, a random password will be generated.
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The password. |
getPasswordBytes()
public ByteString getPasswordBytes()Optional. Password of the Cloud SQL instance. If this is not provided, a random password will be generated.
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for password. |
getUsername()
public String getUsername()Required. Username of the Cloud SQL instance.
string username = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The username. |
getUsernameBytes()
public ByteString getUsernameBytes()Required. Username of the Cloud SQL instance.
string username = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for username. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(EnableManagedRotationRequest.CloudSQLSingleUserCredentials other)
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder mergeFrom(EnableManagedRotationRequest.CloudSQLSingleUserCredentials other)| Parameter | |
|---|---|
| Name | Description |
other |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials |
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
|
setInstanceId(String value)
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder setInstanceId(String value)Required. Instance ID of the Cloud SQL instance.
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe instanceId to set. |
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
This builder for chaining. |
setInstanceIdBytes(ByteString value)
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder setInstanceIdBytes(ByteString value)Required. Instance ID of the Cloud SQL instance.
string instance_id = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for instanceId to set. |
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
This builder for chaining. |
setPassword(String value)
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder setPassword(String value)Optional. Password of the Cloud SQL instance. If this is not provided, a random password will be generated.
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe password to set. |
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
This builder for chaining. |
setPasswordBytes(ByteString value)
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder setPasswordBytes(ByteString value)Optional. Password of the Cloud SQL instance. If this is not provided, a random password will be generated.
string password = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for password to set. |
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
This builder for chaining. |
setUsername(String value)
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder setUsername(String value)Required. Username of the Cloud SQL instance.
string username = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe username to set. |
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
This builder for chaining. |
setUsernameBytes(ByteString value)
public EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder setUsernameBytes(ByteString value)Required. Username of the Cloud SQL instance.
string username = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for username to set. |
| Returns | |
|---|---|
| Type | Description |
EnableManagedRotationRequest.CloudSQLSingleUserCredentials.Builder |
This builder for chaining. |