Class Connector.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Connector.Builder>
com.google.cloud.managedkafka.v1.Connector.Builder
All Implemented Interfaces:
ConnectorOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Connector

public static final class Connector.Builder extends com.google.protobuf.GeneratedMessage.Builder<Connector.Builder> implements ConnectorOrBuilder
 A Kafka Connect connector in a given ConnectCluster.
 
Protobuf type google.cloud.managedkafka.v1.Connector
  • 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.Builder<Connector.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Connector.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Connector.Builder>
    • clear

      public Connector.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<Connector.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Connector.Builder>
    • getDefaultInstanceForType

      public Connector getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public Connector build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public Connector buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public Connector.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Connector.Builder>
    • mergeFrom

      public Connector.Builder mergeFrom(Connector other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Connector.Builder>
    • mergeFrom

      public Connector.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Connector.Builder>
      Throws:
      IOException
    • getRestartPolicyCase

      public Connector.RestartPolicyCase getRestartPolicyCase()
      Specified by:
      getRestartPolicyCase in interface ConnectorOrBuilder
    • clearRestartPolicy

      public Connector.Builder clearRestartPolicy()
    • hasTaskRestartPolicy

      public boolean hasTaskRestartPolicy()
       Optional. Restarts the individual tasks of a Connector.
       
      .google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasTaskRestartPolicy in interface ConnectorOrBuilder
      Returns:
      Whether the taskRestartPolicy field is set.
    • getTaskRestartPolicy

      public TaskRetryPolicy getTaskRestartPolicy()
       Optional. Restarts the individual tasks of a Connector.
       
      .google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTaskRestartPolicy in interface ConnectorOrBuilder
      Returns:
      The taskRestartPolicy.
    • setTaskRestartPolicy

      public Connector.Builder setTaskRestartPolicy(TaskRetryPolicy value)
       Optional. Restarts the individual tasks of a Connector.
       
      .google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setTaskRestartPolicy

      public Connector.Builder setTaskRestartPolicy(TaskRetryPolicy.Builder builderForValue)
       Optional. Restarts the individual tasks of a Connector.
       
      .google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeTaskRestartPolicy

      public Connector.Builder mergeTaskRestartPolicy(TaskRetryPolicy value)
       Optional. Restarts the individual tasks of a Connector.
       
      .google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearTaskRestartPolicy

      public Connector.Builder clearTaskRestartPolicy()
       Optional. Restarts the individual tasks of a Connector.
       
      .google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getTaskRestartPolicyBuilder

      public TaskRetryPolicy.Builder getTaskRestartPolicyBuilder()
       Optional. Restarts the individual tasks of a Connector.
       
      .google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getTaskRestartPolicyOrBuilder

      public TaskRetryPolicyOrBuilder getTaskRestartPolicyOrBuilder()
       Optional. Restarts the individual tasks of a Connector.
       
      .google.cloud.managedkafka.v1.TaskRetryPolicy task_restart_policy = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getTaskRestartPolicyOrBuilder in interface ConnectorOrBuilder
    • getName

      public String getName()
       Identifier. The name of the connector.
       Structured like:
       projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getName in interface ConnectorOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Identifier. The name of the connector.
       Structured like:
       projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Specified by:
      getNameBytes in interface ConnectorOrBuilder
      Returns:
      The bytes for name.
    • setName

      public Connector.Builder setName(String value)
       Identifier. The name of the connector.
       Structured like:
       projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public Connector.Builder clearName()
       Identifier. The name of the connector.
       Structured like:
       projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Returns:
      This builder for chaining.
    • setNameBytes

      public Connector.Builder setNameBytes(com.google.protobuf.ByteString value)
       Identifier. The name of the connector.
       Structured like:
       projects/{project}/locations/{location}/connectClusters/{connect_cluster}/connectors/{connector}
       
      string name = 1 [(.google.api.field_behavior) = IDENTIFIER];
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getConfigsCount

      public int getConfigsCount()
      Description copied from interface: ConnectorOrBuilder
       Optional. Connector config as keys/values.
       The keys of the map are connector property names, for example:
       `connector.class`, `tasks.max`, `key.converter`.
       
      map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConfigsCount in interface ConnectorOrBuilder
    • containsConfigs

      public boolean containsConfigs(String key)
       Optional. Connector config as keys/values.
       The keys of the map are connector property names, for example:
       `connector.class`, `tasks.max`, `key.converter`.
       
      map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      containsConfigs in interface ConnectorOrBuilder
    • getConfigs

      @Deprecated public Map<String,String> getConfigs()
      Deprecated.
      Use getConfigsMap() instead.
      Specified by:
      getConfigs in interface ConnectorOrBuilder
    • getConfigsMap

      public Map<String,String> getConfigsMap()
       Optional. Connector config as keys/values.
       The keys of the map are connector property names, for example:
       `connector.class`, `tasks.max`, `key.converter`.
       
      map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConfigsMap in interface ConnectorOrBuilder
    • getConfigsOrDefault

      public String getConfigsOrDefault(String key, String defaultValue)
       Optional. Connector config as keys/values.
       The keys of the map are connector property names, for example:
       `connector.class`, `tasks.max`, `key.converter`.
       
      map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConfigsOrDefault in interface ConnectorOrBuilder
    • getConfigsOrThrow

      public String getConfigsOrThrow(String key)
       Optional. Connector config as keys/values.
       The keys of the map are connector property names, for example:
       `connector.class`, `tasks.max`, `key.converter`.
       
      map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getConfigsOrThrow in interface ConnectorOrBuilder
    • clearConfigs

      public Connector.Builder clearConfigs()
    • removeConfigs

      public Connector.Builder removeConfigs(String key)
       Optional. Connector config as keys/values.
       The keys of the map are connector property names, for example:
       `connector.class`, `tasks.max`, `key.converter`.
       
      map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getMutableConfigs

      @Deprecated public Map<String,String> getMutableConfigs()
      Deprecated.
      Use alternate mutation accessors instead.
    • putConfigs

      public Connector.Builder putConfigs(String key, String value)
       Optional. Connector config as keys/values.
       The keys of the map are connector property names, for example:
       `connector.class`, `tasks.max`, `key.converter`.
       
      map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • putAllConfigs

      public Connector.Builder putAllConfigs(Map<String,String> values)
       Optional. Connector config as keys/values.
       The keys of the map are connector property names, for example:
       `connector.class`, `tasks.max`, `key.converter`.
       
      map<string, string> configs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getStateValue

      public int getStateValue()
       Output only. The current state of the connector.
       
      .google.cloud.managedkafka.v1.Connector.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface ConnectorOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public Connector.Builder setStateValue(int value)
       Output only. The current state of the connector.
       
      .google.cloud.managedkafka.v1.Connector.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public Connector.State getState()
       Output only. The current state of the connector.
       
      .google.cloud.managedkafka.v1.Connector.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface ConnectorOrBuilder
      Returns:
      The state.
    • setState

      public Connector.Builder setState(Connector.State value)
       Output only. The current state of the connector.
       
      .google.cloud.managedkafka.v1.Connector.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public Connector.Builder clearState()
       Output only. The current state of the connector.
       
      .google.cloud.managedkafka.v1.Connector.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.