public final class DatabaseConnection extends GeneratedMessage implements DatabaseConnectionOrBuilder
Represents DatabaseConnection resource.
Protobuf type google.cloud.oracledatabase.v1.DatabaseConnection
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
CONNECTION_STRING_FIELD_NUMBER
public static final int CONNECTION_STRING_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
DISPLAY_NAME_FIELD_NUMBER
public static final int DISPLAY_NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
LABELS_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
LIFECYCLE_DETAILS_FIELD_NUMBER
public static final int LIFECYCLE_DETAILS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ODB_NETWORK_FIELD_NUMBER
public static final int ODB_NETWORK_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
PASSWORD_SECRET_VERSION_FIELD_NUMBER
public static final int PASSWORD_SECRET_VERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
STATE_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UPDATE_TIME_FIELD_NUMBER
public static final int UPDATE_TIME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
USERNAME_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
WALLET_SECRET_VERSION_FIELD_NUMBER
public static final int WALLET_SECRET_VERSION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static DatabaseConnection getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static DatabaseConnection.Builder newBuilder()
newBuilder(DatabaseConnection prototype)
public static DatabaseConnection.Builder newBuilder(DatabaseConnection prototype)
public static DatabaseConnection parseDelimitedFrom(InputStream input)
public static DatabaseConnection parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static DatabaseConnection parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DatabaseConnection parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static DatabaseConnection parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DatabaseConnection parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DatabaseConnection parseFrom(CodedInputStream input)
public static DatabaseConnection parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DatabaseConnection parseFrom(InputStream input)
public static DatabaseConnection parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static DatabaseConnection parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DatabaseConnection parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<DatabaseConnection> parser()
Methods
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
|
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
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.
|
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The create time of the resource.
.google.protobuf.Timestamp create_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];
getDefaultInstanceForType()
public DatabaseConnection getDefaultInstanceForType()
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()
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];
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];
| 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.
|
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()
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.
|
getParserForType()
public Parser<DatabaseConnection> getParserForType()
Overrides
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.
|
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
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];
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.
|
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The update time of the resource.
.google.protobuf.Timestamp update_time = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];
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()
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.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
| Parameter |
| Name |
Description |
number |
int
|
| Returns |
| Type |
Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
Overrides
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public DatabaseConnection.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected DatabaseConnection.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public DatabaseConnection.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides