Class OracleProfile.Builder (1.53.0)

public static final class OracleProfile.Builder extends GeneratedMessageV3.Builder<OracleProfile.Builder> implements OracleProfileOrBuilder

Oracle database profile.

Protobuf type google.cloud.datastream.v1alpha1.OracleProfile

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public OracleProfile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OracleProfile.Builder
Overrides

build()

public OracleProfile build()
Returns
Type Description
OracleProfile

buildPartial()

public OracleProfile buildPartial()
Returns
Type Description
OracleProfile

clear()

public OracleProfile.Builder clear()
Returns
Type Description
OracleProfile.Builder
Overrides

clearConnectionAttributes()

public OracleProfile.Builder clearConnectionAttributes()
Returns
Type Description
OracleProfile.Builder

clearDatabaseService()

public OracleProfile.Builder clearDatabaseService()

Required. Database for the Oracle connection.

string database_service = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public OracleProfile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
OracleProfile.Builder
Overrides

clearHostname()

public OracleProfile.Builder clearHostname()

Required. Hostname for the Oracle connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public OracleProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
OracleProfile.Builder
Overrides

clearPassword()

public OracleProfile.Builder clearPassword()

Required. Password for the Oracle connection.

string password = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

clearPort()

public OracleProfile.Builder clearPort()

Port for the Oracle connection, default value is 1521.

int32 port = 2;

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

clearUsername()

public OracleProfile.Builder clearUsername()

Required. Username for the Oracle connection.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

clone()

public OracleProfile.Builder clone()
Returns
Type Description
OracleProfile.Builder
Overrides

containsConnectionAttributes(String key)

public boolean containsConnectionAttributes(String key)

Connection string attributes

map<string, string> connection_attributes = 6;

Parameter
Name Description
key String
Returns
Type Description
boolean

getConnectionAttributes() (deprecated)

public Map<String,String> getConnectionAttributes()
Returns
Type Description
Map<String,String>

getConnectionAttributesCount()

public int getConnectionAttributesCount()

Connection string attributes

map<string, string> connection_attributes = 6;

Returns
Type Description
int

getConnectionAttributesMap()

public Map<String,String> getConnectionAttributesMap()

Connection string attributes

map<string, string> connection_attributes = 6;

Returns
Type Description
Map<String,String>

getConnectionAttributesOrDefault(String key, String defaultValue)

public String getConnectionAttributesOrDefault(String key, String defaultValue)

Connection string attributes

map<string, string> connection_attributes = 6;

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getConnectionAttributesOrThrow(String key)

public String getConnectionAttributesOrThrow(String key)

Connection string attributes

map<string, string> connection_attributes = 6;

Parameter
Name Description
key String
Returns
Type Description
String

getDatabaseService()

public String getDatabaseService()

Required. Database for the Oracle connection.

string database_service = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The databaseService.

getDatabaseServiceBytes()

public ByteString getDatabaseServiceBytes()

Required. Database for the Oracle connection.

string database_service = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for databaseService.

getDefaultInstanceForType()

public OracleProfile getDefaultInstanceForType()
Returns
Type Description
OracleProfile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getHostname()

public String getHostname()

Required. Hostname for the Oracle connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The hostname.

getHostnameBytes()

public ByteString getHostnameBytes()

Required. Hostname for the Oracle connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for hostname.

getMutableConnectionAttributes() (deprecated)

public Map<String,String> getMutableConnectionAttributes()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getPassword()

public String getPassword()

Required. Password for the Oracle connection.

string password = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

Required. Password for the Oracle connection.

string password = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for password.

getPort()

public int getPort()

Port for the Oracle connection, default value is 1521.

int32 port = 2;

Returns
Type Description
int

The port.

getUsername()

public String getUsername()

Required. Username for the Oracle connection.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Required. Username for the Oracle connection.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for username.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
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.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(OracleProfile other)

public OracleProfile.Builder mergeFrom(OracleProfile other)
Parameter
Name Description
other OracleProfile
Returns
Type Description
OracleProfile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public OracleProfile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
OracleProfile.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public OracleProfile.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
OracleProfile.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final OracleProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OracleProfile.Builder
Overrides

putAllConnectionAttributes(Map<String,String> values)

public OracleProfile.Builder putAllConnectionAttributes(Map<String,String> values)

Connection string attributes

map<string, string> connection_attributes = 6;

Parameter
Name Description
values Map<String,String>
Returns
Type Description
OracleProfile.Builder

putConnectionAttributes(String key, String value)

public OracleProfile.Builder putConnectionAttributes(String key, String value)

Connection string attributes

map<string, string> connection_attributes = 6;

Parameters
Name Description
key String
value String
Returns
Type Description
OracleProfile.Builder

removeConnectionAttributes(String key)

public OracleProfile.Builder removeConnectionAttributes(String key)

Connection string attributes

map<string, string> connection_attributes = 6;

Parameter
Name Description
key String
Returns
Type Description
OracleProfile.Builder

setDatabaseService(String value)

public OracleProfile.Builder setDatabaseService(String value)

Required. Database for the Oracle connection.

string database_service = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The databaseService to set.

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

setDatabaseServiceBytes(ByteString value)

public OracleProfile.Builder setDatabaseServiceBytes(ByteString value)

Required. Database for the Oracle connection.

string database_service = 5 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for databaseService to set.

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public OracleProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
OracleProfile.Builder
Overrides

setHostname(String value)

public OracleProfile.Builder setHostname(String value)

Required. Hostname for the Oracle connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The hostname to set.

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

setHostnameBytes(ByteString value)

public OracleProfile.Builder setHostnameBytes(ByteString value)

Required. Hostname for the Oracle connection.

string hostname = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for hostname to set.

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

setPassword(String value)

public OracleProfile.Builder setPassword(String value)

Required. Password for the Oracle connection.

string password = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The password to set.

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public OracleProfile.Builder setPasswordBytes(ByteString value)

Required. Password for the Oracle connection.

string password = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for password to set.

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

setPort(int value)

public OracleProfile.Builder setPort(int value)

Port for the Oracle connection, default value is 1521.

int32 port = 2;

Parameter
Name Description
value int

The port to set.

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public OracleProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
OracleProfile.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final OracleProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
OracleProfile.Builder
Overrides

setUsername(String value)

public OracleProfile.Builder setUsername(String value)

Required. Username for the Oracle connection.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The username to set.

Returns
Type Description
OracleProfile.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

public OracleProfile.Builder setUsernameBytes(ByteString value)

Required. Username for the Oracle connection.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for username to set.

Returns
Type Description
OracleProfile.Builder

This builder for chaining.