Class KafkaBootstrapServer (0.42.0)

public final class KafkaBootstrapServer extends GeneratedMessage 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 Fields

HOST_FIELD_NUMBER

public static final int HOST_FIELD_NUMBER
Field Value
Type Description
int

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
Type Description
int

PRIVATE_IP_ADDRESS_FIELD_NUMBER

public static final int PRIVATE_IP_ADDRESS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static KafkaBootstrapServer getDefaultInstance()
Returns
Type Description
KafkaBootstrapServer

getDescriptor()

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

newBuilder()

public static KafkaBootstrapServer.Builder newBuilder()
Returns
Type Description
KafkaBootstrapServer.Builder

newBuilder(KafkaBootstrapServer prototype)

public static KafkaBootstrapServer.Builder newBuilder(KafkaBootstrapServer prototype)
Parameter
Name Description
prototype KafkaBootstrapServer
Returns
Type Description
KafkaBootstrapServer.Builder

parseDelimitedFrom(InputStream input)

public static KafkaBootstrapServer parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static KafkaBootstrapServer parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static KafkaBootstrapServer parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static KafkaBootstrapServer parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static KafkaBootstrapServer parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static KafkaBootstrapServer parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static KafkaBootstrapServer parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static KafkaBootstrapServer parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static KafkaBootstrapServer parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static KafkaBootstrapServer parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static KafkaBootstrapServer parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static KafkaBootstrapServer parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
KafkaBootstrapServer
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<KafkaBootstrapServer> parser()
Returns
Type Description
Parser<KafkaBootstrapServer>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public KafkaBootstrapServer getDefaultInstanceForType()
Returns
Type Description
KafkaBootstrapServer

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.

getParserForType()

public Parser<KafkaBootstrapServer> getParserForType()
Returns
Type Description
Parser<KafkaBootstrapServer>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public KafkaBootstrapServer.Builder newBuilderForType()
Returns
Type Description
KafkaBootstrapServer.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected KafkaBootstrapServer.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
KafkaBootstrapServer.Builder
Overrides

toBuilder()

public KafkaBootstrapServer.Builder toBuilder()
Returns
Type Description
KafkaBootstrapServer.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException