Class ConnectCluster

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.managedkafka.v1.ConnectCluster
All Implemented Interfaces:
ConnectClusterOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ConnectCluster extends com.google.protobuf.GeneratedMessage implements ConnectClusterOrBuilder
 An Apache Kafka Connect cluster deployed in a location.
 
Protobuf type google.cloud.managedkafka.v1.ConnectCluster
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getPlatformConfigCase

      public ConnectCluster.PlatformConfigCase getPlatformConfigCase()
      Specified by:
      getPlatformConfigCase in interface ConnectClusterOrBuilder
    • 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];
      Specified by:
      hasGcpConfig in interface ConnectClusterOrBuilder
      Returns:
      Whether the gcpConfig field is set.
    • 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];
      Specified by:
      getGcpConfig in interface ConnectClusterOrBuilder
      Returns:
      The gcpConfig.
    • 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];
      Specified by:
      getGcpConfigOrBuilder in interface ConnectClusterOrBuilder
    • 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];
      Specified by:
      getName in interface ConnectClusterOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.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];
      Specified by:
      getNameBytes in interface ConnectClusterOrBuilder
      Returns:
      The bytes for name.
    • 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];
      Specified by:
      getKafkaCluster in interface ConnectClusterOrBuilder
      Returns:
      The kafkaCluster.
    • getKafkaClusterBytes

      public com.google.protobuf.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];
      Specified by:
      getKafkaClusterBytes in interface ConnectClusterOrBuilder
      Returns:
      The bytes for kafkaCluster.
    • 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];
      Specified by:
      hasCreateTime in interface ConnectClusterOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. The time when the cluster was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface ConnectClusterOrBuilder
      Returns:
      The createTime.
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. The time when the cluster was created.
       
      .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface ConnectClusterOrBuilder
    • 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];
      Specified by:
      hasUpdateTime in interface ConnectClusterOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. The time when the cluster was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface ConnectClusterOrBuilder
      Returns:
      The updateTime.
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. The time when the cluster was last updated.
       
      .google.protobuf.Timestamp update_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface ConnectClusterOrBuilder
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: ConnectClusterOrBuilder
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsCount in interface ConnectClusterOrBuilder
    • containsLabels

      public boolean containsLabels(String key)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsLabels in interface ConnectClusterOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface ConnectClusterOrBuilder
    • getLabelsMap

      public Map<String,String> getLabelsMap()
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsMap in interface ConnectClusterOrBuilder
    • getLabelsOrDefault

      public String getLabelsOrDefault(String key, String defaultValue)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrDefault in interface ConnectClusterOrBuilder
    • getLabelsOrThrow

      public String getLabelsOrThrow(String key)
       Optional. Labels as key value pairs.
       
      map<string, string> labels = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getLabelsOrThrow in interface ConnectClusterOrBuilder
    • 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];
      Specified by:
      hasCapacityConfig in interface ConnectClusterOrBuilder
      Returns:
      Whether the capacityConfig field is set.
    • 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];
      Specified by:
      getCapacityConfig in interface ConnectClusterOrBuilder
      Returns:
      The capacityConfig.
    • 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];
      Specified by:
      getCapacityConfigOrBuilder in interface ConnectClusterOrBuilder
    • 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];
      Specified by:
      getStateValue in interface ConnectClusterOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • 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];
      Specified by:
      getState in interface ConnectClusterOrBuilder
      Returns:
      The state.
    • getConfigCount

      public int getConfigCount()
      Description copied from interface: ConnectClusterOrBuilder
       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];
      Specified by:
      getConfigCount in interface ConnectClusterOrBuilder
    • containsConfig

      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];
      Specified by:
      containsConfig in interface ConnectClusterOrBuilder
    • getConfig

      @Deprecated public Map<String,String> getConfig()
      Deprecated.
      Use getConfigMap() instead.
      Specified by:
      getConfig in interface ConnectClusterOrBuilder
    • 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];
      Specified by:
      getConfigMap in interface ConnectClusterOrBuilder
    • getConfigOrDefault

      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];
      Specified by:
      getConfigOrDefault in interface ConnectClusterOrBuilder
    • getConfigOrThrow

      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];
      Specified by:
      getConfigOrThrow in interface ConnectClusterOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static ConnectCluster parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConnectCluster parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConnectCluster parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConnectCluster parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConnectCluster parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConnectCluster parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static ConnectCluster parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConnectCluster parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConnectCluster parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ConnectCluster parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConnectCluster parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ConnectCluster parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public ConnectCluster.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static ConnectCluster.Builder newBuilder()
    • newBuilder

      public static ConnectCluster.Builder newBuilder(ConnectCluster prototype)
    • toBuilder

      public ConnectCluster.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected ConnectCluster.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static ConnectCluster getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<ConnectCluster> parser()
    • getParserForType

      public com.google.protobuf.Parser<ConnectCluster> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public ConnectCluster getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder