public static final class ConnectCluster.Builder extends GeneratedMessageV3.Builder<ConnectCluster.Builder> implements ConnectClusterOrBuilderAn Apache Kafka Connect cluster deployed in a location.
 Protobuf type google.cloud.managedkafka.v1.ConnectCluster
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ConnectCluster.BuilderImplements
ConnectClusterOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public ConnectCluster.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
build()
public ConnectCluster build()| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster | |
buildPartial()
public ConnectCluster buildPartial()| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster | |
clear()
public ConnectCluster.Builder clear()| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
clearCapacityConfig()
public ConnectCluster.Builder clearCapacityConfig()Required. Capacity configuration for the Kafka Connect cluster.
 
 .google.cloud.managedkafka.v1.CapacityConfig capacity_config = 6 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
clearConfig()
public ConnectCluster.Builder clearConfig()| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
clearCreateTime()
public ConnectCluster.Builder clearCreateTime()Output only. The time when the cluster was created.
 
 .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
clearField(Descriptors.FieldDescriptor field)
public ConnectCluster.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
clearGcpConfig()
public ConnectCluster.Builder clearGcpConfig()Required. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.
 
 .google.cloud.managedkafka.v1.ConnectGcpConfig gcp_config = 7 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
clearKafkaCluster()
public ConnectCluster.Builder clearKafkaCluster()Required. Immutable. The name of the Kafka cluster this Kafka Connect cluster is attached to. Structured like: projects/{project}/locations/{location}/clusters/{cluster}
 
 string kafka_cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | This builder for chaining. | 
clearLabels()
public ConnectCluster.Builder clearLabels()| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
clearName()
public ConnectCluster.Builder clearName()Identifier. The name of the Kafka Connect cluster. Structured like: projects/{project_number}/locations/{location}/connectClusters/{connect_cluster_id}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | This builder for chaining. | 
clearOneof(Descriptors.OneofDescriptor oneof)
public ConnectCluster.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
| oneof | OneofDescriptor | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
clearPlatformConfig()
public ConnectCluster.Builder clearPlatformConfig()| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
clearState()
public ConnectCluster.Builder clearState()Output only. The current state of the cluster.
 
 .google.cloud.managedkafka.v1.ConnectCluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | This builder for chaining. | 
clearUpdateTime()
public ConnectCluster.Builder clearUpdateTime()Output only. The time when the cluster was last updated.
 
 .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
clone()
public ConnectCluster.Builder clone()| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
containsConfig(String key)
public boolean containsConfig(String key) Optional. Configurations for the worker that are overridden from the
 defaults. The key of the map is a Kafka Connect worker property name, for
 example: exactly.once.source.support.
 map<string, string> config = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| boolean | |
containsLabels(String key)
public boolean containsLabels(String key)Optional. Labels as key value pairs.
 map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| boolean | |
getCapacityConfig()
public CapacityConfig getCapacityConfig()Required. Capacity configuration for the Kafka Connect cluster.
 
 .google.cloud.managedkafka.v1.CapacityConfig capacity_config = 6 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| CapacityConfig | The capacityConfig. | 
getCapacityConfigBuilder()
public CapacityConfig.Builder getCapacityConfigBuilder()Required. Capacity configuration for the Kafka Connect cluster.
 
 .google.cloud.managedkafka.v1.CapacityConfig capacity_config = 6 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| CapacityConfig.Builder | |
getCapacityConfigOrBuilder()
public CapacityConfigOrBuilder getCapacityConfigOrBuilder()Required. Capacity configuration for the Kafka Connect cluster.
 
 .google.cloud.managedkafka.v1.CapacityConfig capacity_config = 6 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| CapacityConfigOrBuilder | |
getConfig() (deprecated)
public Map<String,String> getConfig()Use #getConfigMap() instead.
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
getConfigCount()
public int getConfigCount() Optional. Configurations for the worker that are overridden from the
 defaults. The key of the map is a Kafka Connect worker property name, for
 example: exactly.once.source.support.
 map<string, string> config = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| int | |
getConfigMap()
public Map<String,String> getConfigMap() Optional. Configurations for the worker that are overridden from the
 defaults. The key of the map is a Kafka Connect worker property name, for
 example: exactly.once.source.support.
 map<string, string> config = 9 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
getConfigOrDefault(String key, String defaultValue)
public String getConfigOrDefault(String key, String defaultValue) Optional. Configurations for the worker that are overridden from the
 defaults. The key of the map is a Kafka Connect worker property name, for
 example: exactly.once.source.support.
 map<string, string> config = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description | 
| key | String | 
| defaultValue | String | 
| Returns | |
|---|---|
| Type | Description | 
| String | |
getConfigOrThrow(String key)
public String getConfigOrThrow(String key) Optional. Configurations for the worker that are overridden from the
 defaults. The key of the map is a Kafka Connect worker property name, for
 example: exactly.once.source.support.
 map<string, string> config = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| String | |
getCreateTime()
public Timestamp getCreateTime()Output only. The time when the cluster was created.
 
 .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| Timestamp | The createTime. | 
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()Output only. The time when the cluster was created.
 
 .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| Builder | |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()Output only. The time when the cluster was created.
 
 .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| TimestampOrBuilder | |
getDefaultInstanceForType()
public ConnectCluster getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster | |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
| Descriptor | |
getGcpConfig()
public ConnectGcpConfig getGcpConfig()Required. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.
 
 .google.cloud.managedkafka.v1.ConnectGcpConfig gcp_config = 7 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| ConnectGcpConfig | The gcpConfig. | 
getGcpConfigBuilder()
public ConnectGcpConfig.Builder getGcpConfigBuilder()Required. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.
 
 .google.cloud.managedkafka.v1.ConnectGcpConfig gcp_config = 7 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| ConnectGcpConfig.Builder | |
getGcpConfigOrBuilder()
public ConnectGcpConfigOrBuilder getGcpConfigOrBuilder()Required. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.
 
 .google.cloud.managedkafka.v1.ConnectGcpConfig gcp_config = 7 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| ConnectGcpConfigOrBuilder | |
getKafkaCluster()
public String getKafkaCluster()Required. Immutable. The name of the Kafka cluster this Kafka Connect cluster is attached to. Structured like: projects/{project}/locations/{location}/clusters/{cluster}
 
 string kafka_cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
 
| Returns | |
|---|---|
| Type | Description | 
| String | The kafkaCluster. | 
getKafkaClusterBytes()
public ByteString getKafkaClusterBytes()Required. Immutable. The name of the Kafka cluster this Kafka Connect cluster is attached to. Structured like: projects/{project}/locations/{location}/clusters/{cluster}
 
 string kafka_cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
 
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for kafkaCluster. | 
getLabels() (deprecated)
public Map<String,String> getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
getLabelsCount()
public int getLabelsCount()Optional. Labels as key value pairs.
 map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| int | |
getLabelsMap()
public Map<String,String> getLabelsMap()Optional. Labels as key value pairs.
 map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
getLabelsOrDefault(String key, String defaultValue)
public String getLabelsOrDefault(String key, String defaultValue)Optional. Labels as key value pairs.
 map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description | 
| key | String | 
| defaultValue | String | 
| Returns | |
|---|---|
| Type | Description | 
| String | |
getLabelsOrThrow(String key)
public String getLabelsOrThrow(String key)Optional. Labels as key value pairs.
 map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| String | |
getMutableConfig() (deprecated)
public Map<String,String> getMutableConfig()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
getMutableLabels() (deprecated)
public Map<String,String> getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description | 
| Map<String,String> | |
getName()
public String getName()Identifier. The name of the Kafka Connect cluster. Structured like: projects/{project_number}/locations/{location}/connectClusters/{connect_cluster_id}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description | 
| String | The name. | 
getNameBytes()
public ByteString getNameBytes()Identifier. The name of the Kafka Connect cluster. Structured like: projects/{project_number}/locations/{location}/connectClusters/{connect_cluster_id}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Returns | |
|---|---|
| Type | Description | 
| ByteString | The bytes for name. | 
getPlatformConfigCase()
public ConnectCluster.PlatformConfigCase getPlatformConfigCase()| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.PlatformConfigCase | |
getState()
public ConnectCluster.State getState()Output only. The current state of the cluster.
 
 .google.cloud.managedkafka.v1.ConnectCluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.State | The state. | 
getStateValue()
public int getStateValue()Output only. The current state of the cluster.
 
 .google.cloud.managedkafka.v1.ConnectCluster.State state = 8 [(.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 time when the cluster was last updated.
 
 .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| Timestamp | The updateTime. | 
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()Output only. The time when the cluster was last updated.
 
 .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| Builder | |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()Output only. The time when the cluster was last updated.
 
 .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| TimestampOrBuilder | |
hasCapacityConfig()
public boolean hasCapacityConfig()Required. Capacity configuration for the Kafka Connect cluster.
 
 .google.cloud.managedkafka.v1.CapacityConfig capacity_config = 6 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the capacityConfig field is set. | 
hasCreateTime()
public boolean hasCreateTime()Output only. The time when the cluster was created.
 
 .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the createTime field is set. | 
hasGcpConfig()
public boolean hasGcpConfig()Required. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.
 
 .google.cloud.managedkafka.v1.ConnectGcpConfig gcp_config = 7 [(.google.api.field_behavior) = REQUIRED];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the gcpConfig field is set. | 
hasUpdateTime()
public boolean hasUpdateTime()Output only. The time when the cluster was last updated.
 
 .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Returns | |
|---|---|
| Type | Description | 
| boolean | Whether the updateTime field is set. | 
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
| FieldAccessorTable | |
internalGetMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description | 
| number | int | 
| Returns | |
|---|---|
| Type | Description | 
| com.google.protobuf.MapFieldReflectionAccessor | |
internalGetMutableMapFieldReflection(int number)
protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)| Parameter | |
|---|---|
| Name | Description | 
| number | int | 
| Returns | |
|---|---|
| Type | Description | 
| com.google.protobuf.MapFieldReflectionAccessor | |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
| boolean | |
mergeCapacityConfig(CapacityConfig value)
public ConnectCluster.Builder mergeCapacityConfig(CapacityConfig value)Required. Capacity configuration for the Kafka Connect cluster.
 
 .google.cloud.managedkafka.v1.CapacityConfig capacity_config = 6 [(.google.api.field_behavior) = REQUIRED];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | CapacityConfig | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
mergeCreateTime(Timestamp value)
public ConnectCluster.Builder mergeCreateTime(Timestamp value)Output only. The time when the cluster was created.
 
 .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
mergeFrom(ConnectCluster other)
public ConnectCluster.Builder mergeFrom(ConnectCluster other)| Parameter | |
|---|---|
| Name | Description | 
| other | ConnectCluster | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ConnectCluster.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
| input | CodedInputStream | 
| extensionRegistry | ExtensionRegistryLite | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
| Exceptions | |
|---|---|
| Type | Description | 
| IOException | |
mergeFrom(Message other)
public ConnectCluster.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
| other | Message | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
mergeGcpConfig(ConnectGcpConfig value)
public ConnectCluster.Builder mergeGcpConfig(ConnectGcpConfig value)Required. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.
 
 .google.cloud.managedkafka.v1.ConnectGcpConfig gcp_config = 7 [(.google.api.field_behavior) = REQUIRED];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | ConnectGcpConfig | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ConnectCluster.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
mergeUpdateTime(Timestamp value)
public ConnectCluster.Builder mergeUpdateTime(Timestamp value)Output only. The time when the cluster was last updated.
 
 .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
putAllConfig(Map<String,String> values)
public ConnectCluster.Builder putAllConfig(Map<String,String> values) Optional. Configurations for the worker that are overridden from the
 defaults. The key of the map is a Kafka Connect worker property name, for
 example: exactly.once.source.support.
 map<string, string> config = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| values | Map<String,String> | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
putAllLabels(Map<String,String> values)
public ConnectCluster.Builder putAllLabels(Map<String,String> values)Optional. Labels as key value pairs.
 map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| values | Map<String,String> | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
putConfig(String key, String value)
public ConnectCluster.Builder putConfig(String key, String value) Optional. Configurations for the worker that are overridden from the
 defaults. The key of the map is a Kafka Connect worker property name, for
 example: exactly.once.source.support.
 map<string, string> config = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description | 
| key | String | 
| value | String | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
putLabels(String key, String value)
public ConnectCluster.Builder putLabels(String key, String value)Optional. Labels as key value pairs.
 map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description | 
| key | String | 
| value | String | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
removeConfig(String key)
public ConnectCluster.Builder removeConfig(String key) Optional. Configurations for the worker that are overridden from the
 defaults. The key of the map is a Kafka Connect worker property name, for
 example: exactly.once.source.support.
 map<string, string> config = 9 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
removeLabels(String key)
public ConnectCluster.Builder removeLabels(String key)Optional. Labels as key value pairs.
 map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description | 
| key | String | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
setCapacityConfig(CapacityConfig value)
public ConnectCluster.Builder setCapacityConfig(CapacityConfig value)Required. Capacity configuration for the Kafka Connect cluster.
 
 .google.cloud.managedkafka.v1.CapacityConfig capacity_config = 6 [(.google.api.field_behavior) = REQUIRED];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | CapacityConfig | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
setCapacityConfig(CapacityConfig.Builder builderForValue)
public ConnectCluster.Builder setCapacityConfig(CapacityConfig.Builder builderForValue)Required. Capacity configuration for the Kafka Connect cluster.
 
 .google.cloud.managedkafka.v1.CapacityConfig capacity_config = 6 [(.google.api.field_behavior) = REQUIRED];
 
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | CapacityConfig.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
setCreateTime(Timestamp value)
public ConnectCluster.Builder setCreateTime(Timestamp value)Output only. The time when the cluster was created.
 
 .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
setCreateTime(Timestamp.Builder builderForValue)
public ConnectCluster.Builder setCreateTime(Timestamp.Builder builderForValue)Output only. The time when the cluster was created.
 
 .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | Builder | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
setField(Descriptors.FieldDescriptor field, Object value)
public ConnectCluster.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
setGcpConfig(ConnectGcpConfig value)
public ConnectCluster.Builder setGcpConfig(ConnectGcpConfig value)Required. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.
 
 .google.cloud.managedkafka.v1.ConnectGcpConfig gcp_config = 7 [(.google.api.field_behavior) = REQUIRED];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | ConnectGcpConfig | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
setGcpConfig(ConnectGcpConfig.Builder builderForValue)
public ConnectCluster.Builder setGcpConfig(ConnectGcpConfig.Builder builderForValue)Required. Configuration properties for a Kafka Connect cluster deployed to Google Cloud Platform.
 
 .google.cloud.managedkafka.v1.ConnectGcpConfig gcp_config = 7 [(.google.api.field_behavior) = REQUIRED];
 
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | ConnectGcpConfig.Builder | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
setKafkaCluster(String value)
public ConnectCluster.Builder setKafkaCluster(String value)Required. Immutable. The name of the Kafka cluster this Kafka Connect cluster is attached to. Structured like: projects/{project}/locations/{location}/clusters/{cluster}
 
 string kafka_cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe kafkaCluster to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | This builder for chaining. | 
setKafkaClusterBytes(ByteString value)
public ConnectCluster.Builder setKafkaClusterBytes(ByteString value)Required. Immutable. The name of the Kafka cluster this Kafka Connect cluster is attached to. Structured like: projects/{project}/locations/{location}/clusters/{cluster}
 
 string kafka_cluster = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for kafkaCluster to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | This builder for chaining. | 
setName(String value)
public ConnectCluster.Builder setName(String value)Identifier. The name of the Kafka Connect cluster. Structured like: projects/{project_number}/locations/{location}/connectClusters/{connect_cluster_id}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description | 
| value | StringThe name to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | This builder for chaining. | 
setNameBytes(ByteString value)
public ConnectCluster.Builder setNameBytes(ByteString value)Identifier. The name of the Kafka Connect cluster. Structured like: projects/{project_number}/locations/{location}/connectClusters/{connect_cluster_id}
 string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
| Parameter | |
|---|---|
| Name | Description | 
| value | ByteStringThe bytes for name to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | This builder for chaining. | 
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public ConnectCluster.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
| field | FieldDescriptor | 
| index | int | 
| value | Object | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
setState(ConnectCluster.State value)
public ConnectCluster.Builder setState(ConnectCluster.State value)Output only. The current state of the cluster.
 
 .google.cloud.managedkafka.v1.ConnectCluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | ConnectCluster.StateThe state to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | This builder for chaining. | 
setStateValue(int value)
public ConnectCluster.Builder setStateValue(int value)Output only. The current state of the cluster.
 
 .google.cloud.managedkafka.v1.ConnectCluster.State state = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | intThe enum numeric value on the wire for state to set. | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | This builder for chaining. | 
setUnknownFields(UnknownFieldSet unknownFields)
public final ConnectCluster.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
| unknownFields | UnknownFieldSet | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
setUpdateTime(Timestamp value)
public ConnectCluster.Builder setUpdateTime(Timestamp value)Output only. The time when the cluster was last updated.
 
 .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| value | Timestamp | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |
setUpdateTime(Timestamp.Builder builderForValue)
public ConnectCluster.Builder setUpdateTime(Timestamp.Builder builderForValue)Output only. The time when the cluster was last updated.
 
 .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
 
| Parameter | |
|---|---|
| Name | Description | 
| builderForValue | Builder | 
| Returns | |
|---|---|
| Type | Description | 
| ConnectCluster.Builder | |