public static final class DatabaseConnection.Builder extends GeneratedMessage.Builder<DatabaseConnection.Builder> implements DatabaseConnectionOrBuilderRepresents DatabaseConnection resource.
Protobuf type google.cloud.oracledatabase.v1.DatabaseConnection
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DatabaseConnection.BuilderImplements
DatabaseConnectionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public DatabaseConnection build()| Returns | |
|---|---|
| Type | Description |
DatabaseConnection |
|
buildPartial()
public DatabaseConnection buildPartial()| Returns | |
|---|---|
| Type | Description |
DatabaseConnection |
|
clear()
public DatabaseConnection.Builder clear()| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
clearConnectionString()
public DatabaseConnection.Builder clearConnectionString()Required. Immutable. Oracle Easy Connect or TNS connection string. Example: "your-db-host.example.com:1521/YOUR_SERVICE_NAME"
string connection_string = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
clearCreateTime()
public DatabaseConnection.Builder clearCreateTime()Output only. The create time of the resource.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
clearDisplayName()
public DatabaseConnection.Builder clearDisplayName()Optional. Immutable. User-friendly display name for the connection.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
clearLabels()
public DatabaseConnection.Builder clearLabels()| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
clearLifecycleDetails()
public DatabaseConnection.Builder clearLifecycleDetails()Output only. Additional information about the current state of the connection.
string lifecycle_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
clearName()
public DatabaseConnection.Builder clearName()Identifier. The resource name of the DatabaseConnection. Format: projects/{project}/locations/{location}/databaseConnections/{database_connection}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
clearNetworkConfiguration()
public DatabaseConnection.Builder clearNetworkConfiguration()| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
clearOdbNetwork()
public DatabaseConnection.Builder clearOdbNetwork()Optional. Immutable. For Oracle Database@Google cloud resources. Format: projects/{project}/locations/{location}/odbNetworks/{odbNetwork}
string odb_network = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
clearPasswordSecretVersion()
public DatabaseConnection.Builder clearPasswordSecretVersion()Optional. The resource name of the GCP Secret Manager secret version containing the password for the specified username. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.
string password_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
clearState()
public DatabaseConnection.Builder clearState()Output only. The current state of the connection.
.google.cloud.oracledatabase.v1.DatabaseConnection.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
clearUpdateTime()
public DatabaseConnection.Builder clearUpdateTime()Output only. The update time of the resource.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
clearUsername()
public DatabaseConnection.Builder clearUsername()Optional. Immutable. The default database username to use for connections.
string username = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
clearWalletSecretVersion()
public DatabaseConnection.Builder clearWalletSecretVersion()Optional. Optional: The resource name of the GCP Secret Manager secret version containing base64 encoded content of the Oracle Wallet ZIP file required for mTLS/TLS connections. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.
string wallet_secret_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
clearWalletSource()
public DatabaseConnection.Builder clearWalletSource()| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
containsLabels(String key)
public boolean containsLabels(String key)Optional. Optional: Labels as key-value pairs to organize the resource.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getConnectionString()
public String getConnectionString()Required. Immutable. Oracle Easy Connect or TNS connection string. Example: "your-db-host.example.com:1521/YOUR_SERVICE_NAME"
string connection_string = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
String |
The connectionString. |
getConnectionStringBytes()
public ByteString getConnectionStringBytes()Required. Immutable. Oracle Easy Connect or TNS connection string. Example: "your-db-host.example.com:1521/YOUR_SERVICE_NAME"
string connection_string = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for connectionString. |
getCreateTime()
public Timestamp getCreateTime()Output only. The create time of the resource.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The create time of the resource.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The create time of the resource.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getDefaultInstanceForType()
public DatabaseConnection getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DatabaseConnection |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisplayName()
public String getDisplayName()Optional. Immutable. User-friendly display name for the connection.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public ByteString getDisplayNameBytes()Optional. Immutable. User-friendly display name for the connection.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
public int getLabelsCount()Optional. Optional: Labels as key-value pairs to organize the resource.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. Optional: Labels as key-value pairs to organize the resource.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Optional. Optional: Labels as key-value pairs to organize the resource.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Optional. Optional: Labels as key-value pairs to organize the resource.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLifecycleDetails()
public String getLifecycleDetails()Output only. Additional information about the current state of the connection.
string lifecycle_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The lifecycleDetails. |
getLifecycleDetailsBytes()
public ByteString getLifecycleDetailsBytes()Output only. Additional information about the current state of the connection.
string lifecycle_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for lifecycleDetails. |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getName()
public String getName()Identifier. The resource name of the DatabaseConnection. Format: projects/{project}/locations/{location}/databaseConnections/{database_connection}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
String |
The name. |
getNameBytes()
public ByteString getNameBytes()Identifier. The resource name of the DatabaseConnection. Format: projects/{project}/locations/{location}/databaseConnections/{database_connection}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for name. |
getNetworkConfigurationCase()
public DatabaseConnection.NetworkConfigurationCase getNetworkConfigurationCase()| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.NetworkConfigurationCase |
|
getOdbNetwork()
public String getOdbNetwork()Optional. Immutable. For Oracle Database@Google cloud resources. Format: projects/{project}/locations/{location}/odbNetworks/{odbNetwork}
string odb_network = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The odbNetwork. |
getOdbNetworkBytes()
public ByteString getOdbNetworkBytes()Optional. Immutable. For Oracle Database@Google cloud resources. Format: projects/{project}/locations/{location}/odbNetworks/{odbNetwork}
string odb_network = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for odbNetwork. |
getPasswordSecretVersion()
public String getPasswordSecretVersion()Optional. The resource name of the GCP Secret Manager secret version containing the password for the specified username. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.
string password_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The passwordSecretVersion. |
getPasswordSecretVersionBytes()
public ByteString getPasswordSecretVersionBytes()Optional. The resource name of the GCP Secret Manager secret version containing the password for the specified username. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.
string password_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for passwordSecretVersion. |
getState()
public DatabaseConnection.State getState()Output only. The current state of the connection.
.google.cloud.oracledatabase.v1.DatabaseConnection.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.State |
The state. |
getStateValue()
public int getStateValue()Output only. The current state of the connection.
.google.cloud.oracledatabase.v1.DatabaseConnection.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for state. |
getUpdateTime()
public Timestamp getUpdateTime()Output only. The update time of the resource.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. The update time of the resource.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The update time of the resource.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getUsername()
public String getUsername()Optional. Immutable. The default database username to use for connections.
string username = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
String |
The username. |
getUsernameBytes()
public ByteString getUsernameBytes()Optional. Immutable. The default database username to use for connections.
string username = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for username. |
getWalletSecretVersion()
public String getWalletSecretVersion()Optional. Optional: The resource name of the GCP Secret Manager secret version containing base64 encoded content of the Oracle Wallet ZIP file required for mTLS/TLS connections. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.
string wallet_secret_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The walletSecretVersion. |
getWalletSecretVersionBytes()
public ByteString getWalletSecretVersionBytes()Optional. Optional: The resource name of the GCP Secret Manager secret version containing base64 encoded content of the Oracle Wallet ZIP file required for mTLS/TLS connections. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.
string wallet_secret_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for walletSecretVersion. |
getWalletSourceCase()
public DatabaseConnection.WalletSourceCase getWalletSourceCase()| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.WalletSourceCase |
|
hasCreateTime()
public boolean hasCreateTime()Output only. The create time of the resource.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the createTime field is set. |
hasOdbNetwork()
public boolean hasOdbNetwork()Optional. Immutable. For Oracle Database@Google cloud resources. Format: projects/{project}/locations/{location}/odbNetworks/{odbNetwork}
string odb_network = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the odbNetwork field is set. |
hasUpdateTime()
public boolean hasUpdateTime()Output only. The update time of the resource.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the updateTime field is set. |
hasWalletSecretVersion()
public boolean hasWalletSecretVersion()Optional. Optional: The resource name of the GCP Secret Manager secret version containing base64 encoded content of the Oracle Wallet ZIP file required for mTLS/TLS connections. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.
string wallet_secret_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the walletSecretVersion field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeCreateTime(Timestamp value)
public DatabaseConnection.Builder mergeCreateTime(Timestamp value)Output only. The create time of the resource.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
mergeFrom(DatabaseConnection other)
public DatabaseConnection.Builder mergeFrom(DatabaseConnection other)| Parameter | |
|---|---|
| Name | Description |
other |
DatabaseConnection |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DatabaseConnection.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DatabaseConnection.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
mergeUpdateTime(Timestamp value)
public DatabaseConnection.Builder mergeUpdateTime(Timestamp value)Output only. The update time of the resource.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
putAllLabels(Map<String,String> values)
public DatabaseConnection.Builder putAllLabels(Map<String,String> values)Optional. Optional: Labels as key-value pairs to organize the resource.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
putLabels(String key, String value)
public DatabaseConnection.Builder putLabels(String key, String value)Optional. Optional: Labels as key-value pairs to organize the resource.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
removeLabels(String key)
public DatabaseConnection.Builder removeLabels(String key)Optional. Optional: Labels as key-value pairs to organize the resource.
map<string, string> labels = 11 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
key |
String |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
setConnectionString(String value)
public DatabaseConnection.Builder setConnectionString(String value)Required. Immutable. Oracle Easy Connect or TNS connection string. Example: "your-db-host.example.com:1521/YOUR_SERVICE_NAME"
string connection_string = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe connectionString to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setConnectionStringBytes(ByteString value)
public DatabaseConnection.Builder setConnectionStringBytes(ByteString value)Required. Immutable. Oracle Easy Connect or TNS connection string. Example: "your-db-host.example.com:1521/YOUR_SERVICE_NAME"
string connection_string = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for connectionString to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setCreateTime(Timestamp value)
public DatabaseConnection.Builder setCreateTime(Timestamp value)Output only. The create time of the resource.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
setCreateTime(Timestamp.Builder builderForValue)
public DatabaseConnection.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The create time of the resource.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
setDisplayName(String value)
public DatabaseConnection.Builder setDisplayName(String value)Optional. Immutable. User-friendly display name for the connection.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe displayName to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setDisplayNameBytes(ByteString value)
public DatabaseConnection.Builder setDisplayNameBytes(ByteString value)Optional. Immutable. User-friendly display name for the connection.
string display_name = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for displayName to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setLifecycleDetails(String value)
public DatabaseConnection.Builder setLifecycleDetails(String value)Output only. Additional information about the current state of the connection.
string lifecycle_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe lifecycleDetails to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setLifecycleDetailsBytes(ByteString value)
public DatabaseConnection.Builder setLifecycleDetailsBytes(ByteString value)Output only. Additional information about the current state of the connection.
string lifecycle_details = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for lifecycleDetails to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setName(String value)
public DatabaseConnection.Builder setName(String value)Identifier. The resource name of the DatabaseConnection. Format: projects/{project}/locations/{location}/databaseConnections/{database_connection}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe name to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setNameBytes(ByteString value)
public DatabaseConnection.Builder setNameBytes(ByteString value)Identifier. The resource name of the DatabaseConnection. Format: projects/{project}/locations/{location}/databaseConnections/{database_connection}
string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for name to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setOdbNetwork(String value)
public DatabaseConnection.Builder setOdbNetwork(String value)Optional. Immutable. For Oracle Database@Google cloud resources. Format: projects/{project}/locations/{location}/odbNetworks/{odbNetwork}
string odb_network = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe odbNetwork to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setOdbNetworkBytes(ByteString value)
public DatabaseConnection.Builder setOdbNetworkBytes(ByteString value)Optional. Immutable. For Oracle Database@Google cloud resources. Format: projects/{project}/locations/{location}/odbNetworks/{odbNetwork}
string odb_network = 7 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for odbNetwork to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setPasswordSecretVersion(String value)
public DatabaseConnection.Builder setPasswordSecretVersion(String value)Optional. The resource name of the GCP Secret Manager secret version containing the password for the specified username. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.
string password_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe passwordSecretVersion to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setPasswordSecretVersionBytes(ByteString value)
public DatabaseConnection.Builder setPasswordSecretVersionBytes(ByteString value)Optional. The resource name of the GCP Secret Manager secret version containing the password for the specified username. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.
string password_secret_version = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for passwordSecretVersion to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setState(DatabaseConnection.State value)
public DatabaseConnection.Builder setState(DatabaseConnection.State value)Output only. The current state of the connection.
.google.cloud.oracledatabase.v1.DatabaseConnection.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
DatabaseConnection.StateThe state to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setStateValue(int value)
public DatabaseConnection.Builder setStateValue(int value)Output only. The current state of the connection.
.google.cloud.oracledatabase.v1.DatabaseConnection.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setUpdateTime(Timestamp value)
public DatabaseConnection.Builder setUpdateTime(Timestamp value)Output only. The update time of the resource.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
setUpdateTime(Timestamp.Builder builderForValue)
public DatabaseConnection.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. The update time of the resource.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
|
setUsername(String value)
public DatabaseConnection.Builder setUsername(String value)Optional. Immutable. The default database username to use for connections.
string username = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe username to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setUsernameBytes(ByteString value)
public DatabaseConnection.Builder setUsernameBytes(ByteString value)Optional. Immutable. The default database username to use for connections.
string username = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = IMMUTABLE];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for username to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setWalletSecretVersion(String value)
public DatabaseConnection.Builder setWalletSecretVersion(String value)Optional. Optional: The resource name of the GCP Secret Manager secret version containing base64 encoded content of the Oracle Wallet ZIP file required for mTLS/TLS connections. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.
string wallet_secret_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe walletSecretVersion to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |
setWalletSecretVersionBytes(ByteString value)
public DatabaseConnection.Builder setWalletSecretVersionBytes(ByteString value)Optional. Optional: The resource name of the GCP Secret Manager secret version containing base64 encoded content of the Oracle Wallet ZIP file required for mTLS/TLS connections. Format: projects/{project}/secrets/{secret_id}/versions/{version_id} The service's Per-Product Per-Project Service Account (P4SA) must have the 'secretmanager.secretAccessor' permission on this secret.
string wallet_secret_version = 6 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for walletSecretVersion to set. |
| Returns | |
|---|---|
| Type | Description |
DatabaseConnection.Builder |
This builder for chaining. |