Class CreateConnectClusterRequest.Builder (0.16.1)

public static final class CreateConnectClusterRequest.Builder extends GeneratedMessageV3.Builder<CreateConnectClusterRequest.Builder> implements CreateConnectClusterRequestOrBuilder

Request for CreateConnectCluster.

Protobuf type google.cloud.managedkafka.v1.CreateConnectClusterRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateConnectClusterRequest build()
Returns
Type Description
CreateConnectClusterRequest

buildPartial()

public CreateConnectClusterRequest buildPartial()
Returns
Type Description
CreateConnectClusterRequest

clear()

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

clearConnectCluster()

public CreateConnectClusterRequest.Builder clearConnectCluster()

Required. Configuration of the Kafka Connect cluster to create. Its name field is ignored.

.google.cloud.managedkafka.v1.ConnectCluster connect_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateConnectClusterRequest.Builder

clearConnectClusterId()

public CreateConnectClusterRequest.Builder clearConnectClusterId()

Required. The ID to use for the Connect cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression a-z? to comply with RFC 1035.

This value is structured like: my-cluster-id.

string connect_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CreateConnectClusterRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateConnectClusterRequest.Builder clearParent()

Required. The parent project/location in which to create the Kafka Connect cluster. Structured like projects/{project}/locations/{location}/.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateConnectClusterRequest.Builder

This builder for chaining.

clearRequestId()

public CreateConnectClusterRequest.Builder clearRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request.

The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
CreateConnectClusterRequest.Builder

This builder for chaining.

clone()

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

getConnectCluster()

public ConnectCluster getConnectCluster()

Required. Configuration of the Kafka Connect cluster to create. Its name field is ignored.

.google.cloud.managedkafka.v1.ConnectCluster connect_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectCluster

The connectCluster.

getConnectClusterBuilder()

public ConnectCluster.Builder getConnectClusterBuilder()

Required. Configuration of the Kafka Connect cluster to create. Its name field is ignored.

.google.cloud.managedkafka.v1.ConnectCluster connect_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectCluster.Builder

getConnectClusterId()

public String getConnectClusterId()

Required. The ID to use for the Connect cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression a-z? to comply with RFC 1035.

This value is structured like: my-cluster-id.

string connect_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
String

The connectClusterId.

getConnectClusterIdBytes()

public ByteString getConnectClusterIdBytes()

Required. The ID to use for the Connect cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression a-z? to comply with RFC 1035.

This value is structured like: my-cluster-id.

string connect_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ByteString

The bytes for connectClusterId.

getConnectClusterOrBuilder()

public ConnectClusterOrBuilder getConnectClusterOrBuilder()

Required. Configuration of the Kafka Connect cluster to create. Its name field is ignored.

.google.cloud.managedkafka.v1.ConnectCluster connect_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ConnectClusterOrBuilder

getDefaultInstanceForType()

public CreateConnectClusterRequest getDefaultInstanceForType()
Returns
Type Description
CreateConnectClusterRequest

getDescriptorForType()

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

getParent()

public String getParent()

Required. The parent project/location in which to create the Kafka Connect cluster. Structured like projects/{project}/locations/{location}/.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The parent project/location in which to create the Kafka Connect cluster. Structured like projects/{project}/locations/{location}/.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

getRequestId()

public String getRequestId()

Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request.

The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
String

The requestId.

getRequestIdBytes()

public ByteString getRequestIdBytes()

Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request.

The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Returns
Type Description
ByteString

The bytes for requestId.

hasConnectCluster()

public boolean hasConnectCluster()

Required. Configuration of the Kafka Connect cluster to create. Its name field is ignored.

.google.cloud.managedkafka.v1.ConnectCluster connect_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the connectCluster field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeConnectCluster(ConnectCluster value)

public CreateConnectClusterRequest.Builder mergeConnectCluster(ConnectCluster value)

Required. Configuration of the Kafka Connect cluster to create. Its name field is ignored.

.google.cloud.managedkafka.v1.ConnectCluster connect_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConnectCluster
Returns
Type Description
CreateConnectClusterRequest.Builder

mergeFrom(CreateConnectClusterRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConnectCluster(ConnectCluster value)

public CreateConnectClusterRequest.Builder setConnectCluster(ConnectCluster value)

Required. Configuration of the Kafka Connect cluster to create. Its name field is ignored.

.google.cloud.managedkafka.v1.ConnectCluster connect_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ConnectCluster
Returns
Type Description
CreateConnectClusterRequest.Builder

setConnectCluster(ConnectCluster.Builder builderForValue)

public CreateConnectClusterRequest.Builder setConnectCluster(ConnectCluster.Builder builderForValue)

Required. Configuration of the Kafka Connect cluster to create. Its name field is ignored.

.google.cloud.managedkafka.v1.ConnectCluster connect_cluster = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ConnectCluster.Builder
Returns
Type Description
CreateConnectClusterRequest.Builder

setConnectClusterId(String value)

public CreateConnectClusterRequest.Builder setConnectClusterId(String value)

Required. The ID to use for the Connect cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression a-z? to comply with RFC 1035.

This value is structured like: my-cluster-id.

string connect_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value String

The connectClusterId to set.

Returns
Type Description
CreateConnectClusterRequest.Builder

This builder for chaining.

setConnectClusterIdBytes(ByteString value)

public CreateConnectClusterRequest.Builder setConnectClusterIdBytes(ByteString value)

Required. The ID to use for the Connect cluster, which will become the final component of the cluster's name. The ID must be 1-63 characters long, and match the regular expression a-z? to comply with RFC 1035.

This value is structured like: my-cluster-id.

string connect_cluster_id = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ByteString

The bytes for connectClusterId to set.

Returns
Type Description
CreateConnectClusterRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateConnectClusterRequest.Builder setParent(String value)

Required. The parent project/location in which to create the Kafka Connect cluster. Structured like projects/{project}/locations/{location}/.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateConnectClusterRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateConnectClusterRequest.Builder setParentBytes(ByteString value)

Required. The parent project/location in which to create the Kafka Connect cluster. Structured like projects/{project}/locations/{location}/.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateConnectClusterRequest.Builder

This builder for chaining.

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

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

setRequestId(String value)

public CreateConnectClusterRequest.Builder setRequestId(String value)

Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request.

The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value String

The requestId to set.

Returns
Type Description
CreateConnectClusterRequest.Builder

This builder for chaining.

setRequestIdBytes(ByteString value)

public CreateConnectClusterRequest.Builder setRequestIdBytes(ByteString value)

Optional. An optional request ID to identify requests. Specify a unique request ID to avoid duplication of requests. If a request times out or fails, retrying with the same ID allows the server to recognize the previous attempt. For at least 60 minutes, the server ignores duplicate requests bearing the same ID.

For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID within 60 minutes of the last request, the server checks if an original operation with the same request ID was received. If so, the server ignores the second request.

The request ID must be a valid UUID. A zero UUID is not supported (00000000-0000-0000-0000-000000000000).

string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... }

Parameter
Name Description
value ByteString

The bytes for requestId to set.

Returns
Type Description
CreateConnectClusterRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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