Interface ClusterOrBuilder (0.4.0)

public interface ClusterOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

containsLabels(String key)

public abstract boolean containsLabels(String key)

Optional. Labels as key value pairs.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
boolean

getCapacityConfig()

public abstract CapacityConfig getCapacityConfig()

Required. Capacity configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.CapacityConfig capacity_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CapacityConfig

The capacityConfig.

getCapacityConfigOrBuilder()

public abstract CapacityConfigOrBuilder getCapacityConfigOrBuilder()

Required. Capacity configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.CapacityConfig capacity_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
CapacityConfigOrBuilder

getCreateTime()

public abstract Timestamp getCreateTime()

Output only. The time when the cluster was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

public abstract TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time when the cluster was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getGcpConfig()

public abstract GcpConfig getGcpConfig()

Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform.

.google.cloud.managedkafka.v1.GcpConfig gcp_config = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GcpConfig

The gcpConfig.

getGcpConfigOrBuilder()

public abstract GcpConfigOrBuilder getGcpConfigOrBuilder()

Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform.

.google.cloud.managedkafka.v1.GcpConfig gcp_config = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
GcpConfigOrBuilder

getLabels() (deprecated)

public abstract Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public abstract int getLabelsCount()

Optional. Labels as key value pairs.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getLabelsMap()

public abstract Map<String,String> getLabelsMap()

Optional. Labels as key value pairs.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public abstract String getLabelsOrDefault(String key, String defaultValue)

Optional. Labels as key value pairs.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public abstract String getLabelsOrThrow(String key)

Optional. Labels as key value pairs.

map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
key String
Returns
Type Description
String

getName()

public abstract String getName()

Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

Identifier. The name of the cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id}

string name = 1 [(.google.api.field_behavior) = IDENTIFIER];

Returns
Type Description
ByteString

The bytes for name.

getPlatformConfigCase()

public abstract Cluster.PlatformConfigCase getPlatformConfigCase()
Returns
Type Description
Cluster.PlatformConfigCase

getRebalanceConfig()

public abstract RebalanceConfig getRebalanceConfig()

Optional. Rebalance configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.RebalanceConfig rebalance_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RebalanceConfig

The rebalanceConfig.

getRebalanceConfigOrBuilder()

public abstract RebalanceConfigOrBuilder getRebalanceConfigOrBuilder()

Optional. Rebalance configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.RebalanceConfig rebalance_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RebalanceConfigOrBuilder

getState()

public abstract Cluster.State getState()

Output only. The current state of the cluster.

.google.cloud.managedkafka.v1.Cluster.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Cluster.State

The state.

getStateValue()

public abstract int getStateValue()

Output only. The current state of the cluster.

.google.cloud.managedkafka.v1.Cluster.State state = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for state.

getUpdateTime()

public abstract Timestamp getUpdateTime()

Output only. The time when the cluster was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public abstract TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time when the cluster was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

hasCapacityConfig()

public abstract boolean hasCapacityConfig()

Required. Capacity configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.CapacityConfig capacity_config = 5 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the capacityConfig field is set.

hasCreateTime()

public abstract boolean hasCreateTime()

Output only. The time when the cluster was created.

.google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the createTime field is set.

hasGcpConfig()

public abstract boolean hasGcpConfig()

Required. Configuration properties for a Kafka cluster deployed to Google Cloud Platform.

.google.cloud.managedkafka.v1.GcpConfig gcp_config = 9 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the gcpConfig field is set.

hasRebalanceConfig()

public abstract boolean hasRebalanceConfig()

Optional. Rebalance configuration for the Kafka cluster.

.google.cloud.managedkafka.v1.RebalanceConfig rebalance_config = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the rebalanceConfig field is set.

hasUpdateTime()

public abstract boolean hasUpdateTime()

Output only. The time when the cluster was last updated.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.