Class KafkaBootstrapServer.Builder (0.42.0)

public static final class KafkaBootstrapServer.Builder extends GeneratedMessage.Builder<KafkaBootstrapServer.Builder> implements KafkaBootstrapServerOrBuilder

Represents a Kafka bootstrap server with host name, optional port defaults to 9092, and an optional private ip.

Protobuf type google.cloud.oracledatabase.v1.KafkaBootstrapServer

Static Methods

getDescriptor()

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

Methods

build()

public KafkaBootstrapServer build()
Returns
Type Description
KafkaBootstrapServer

buildPartial()

public KafkaBootstrapServer buildPartial()
Returns
Type Description
KafkaBootstrapServer

clear()

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

clearHost()

public KafkaBootstrapServer.Builder clearHost()

Required. The name or address of a host.

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

Returns
Type Description
KafkaBootstrapServer.Builder

This builder for chaining.

clearPort()

public KafkaBootstrapServer.Builder clearPort()

Optional. The port of an endpoint usually specified for a connection.

int32 port = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
KafkaBootstrapServer.Builder

This builder for chaining.

clearPrivateIpAddress()

public KafkaBootstrapServer.Builder clearPrivateIpAddress()

Optional. The private IP address of the connection's endpoint in the customer's VCN, typically a database endpoint or a big data endpoint (e.g. Kafka bootstrap server). In case the privateIp is provided, the subnetId must also be provided. In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection.

string private_ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
KafkaBootstrapServer.Builder

This builder for chaining.

getDefaultInstanceForType()

public KafkaBootstrapServer getDefaultInstanceForType()
Returns
Type Description
KafkaBootstrapServer

getDescriptorForType()

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

getHost()

public String getHost()

Required. The name or address of a host.

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

Returns
Type Description
String

The host.

getHostBytes()

public ByteString getHostBytes()

Required. The name or address of a host.

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

Returns
Type Description
ByteString

The bytes for host.

getPort()

public int getPort()

Optional. The port of an endpoint usually specified for a connection.

int32 port = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The port.

getPrivateIpAddress()

public String getPrivateIpAddress()

Optional. The private IP address of the connection's endpoint in the customer's VCN, typically a database endpoint or a big data endpoint (e.g. Kafka bootstrap server). In case the privateIp is provided, the subnetId must also be provided. In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection.

string private_ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The privateIpAddress.

getPrivateIpAddressBytes()

public ByteString getPrivateIpAddressBytes()

Optional. The private IP address of the connection's endpoint in the customer's VCN, typically a database endpoint or a big data endpoint (e.g. Kafka bootstrap server). In case the privateIp is provided, the subnetId must also be provided. In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection.

string private_ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for privateIpAddress.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(KafkaBootstrapServer other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setHost(String value)

public KafkaBootstrapServer.Builder setHost(String value)

Required. The name or address of a host.

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

Parameter
Name Description
value String

The host to set.

Returns
Type Description
KafkaBootstrapServer.Builder

This builder for chaining.

setHostBytes(ByteString value)

public KafkaBootstrapServer.Builder setHostBytes(ByteString value)

Required. The name or address of a host.

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

Parameter
Name Description
value ByteString

The bytes for host to set.

Returns
Type Description
KafkaBootstrapServer.Builder

This builder for chaining.

setPort(int value)

public KafkaBootstrapServer.Builder setPort(int value)

Optional. The port of an endpoint usually specified for a connection.

int32 port = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The port to set.

Returns
Type Description
KafkaBootstrapServer.Builder

This builder for chaining.

setPrivateIpAddress(String value)

public KafkaBootstrapServer.Builder setPrivateIpAddress(String value)

Optional. The private IP address of the connection's endpoint in the customer's VCN, typically a database endpoint or a big data endpoint (e.g. Kafka bootstrap server). In case the privateIp is provided, the subnetId must also be provided. In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection.

string private_ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The privateIpAddress to set.

Returns
Type Description
KafkaBootstrapServer.Builder

This builder for chaining.

setPrivateIpAddressBytes(ByteString value)

public KafkaBootstrapServer.Builder setPrivateIpAddressBytes(ByteString value)

Optional. The private IP address of the connection's endpoint in the customer's VCN, typically a database endpoint or a big data endpoint (e.g. Kafka bootstrap server). In case the privateIp is provided, the subnetId must also be provided. In case the privateIp (and the subnetId) is not provided it is assumed the datasource is publicly accessible. In case the connection is accessible only privately, the lack of privateIp will result in not being able to access the connection.

string private_ip_address = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for privateIpAddress to set.

Returns
Type Description
KafkaBootstrapServer.Builder

This builder for chaining.