Class CreateConnectorRequest.Builder

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

public static final class CreateConnectorRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateConnectorRequest.Builder> implements CreateConnectorRequestOrBuilder
 Request for CreateConnector.
 
Protobuf type google.cloud.managedkafka.v1.CreateConnectorRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateConnectorRequest.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<CreateConnectorRequest.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<CreateConnectorRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public CreateConnectorRequest.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<CreateConnectorRequest.Builder>
    • mergeFrom

    • isInitialized

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

      public CreateConnectorRequest.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<CreateConnectorRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent Connect cluster in which to create the connector.
       Structured like
       `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateConnectorRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent Connect cluster in which to create the connector.
       Structured like
       `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateConnectorRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateConnectorRequest.Builder setParent(String value)
       Required. The parent Connect cluster in which to create the connector.
       Structured like
       `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateConnectorRequest.Builder clearParent()
       Required. The parent Connect cluster in which to create the connector.
       Structured like
       `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateConnectorRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent Connect cluster in which to create the connector.
       Structured like
       `projects/{project}/locations/{location}/connectClusters/{connect_cluster_id}`.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • getConnectorId

      public String getConnectorId()
       Required. The ID to use for the connector, which will become the final
       component of the connector's name. The ID must be 1-63 characters long, and
       match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with
       RFC 1035.
      
       This value is structured like: `my-connector-id`.
       
      string connector_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConnectorId in interface CreateConnectorRequestOrBuilder
      Returns:
      The connectorId.
    • getConnectorIdBytes

      public com.google.protobuf.ByteString getConnectorIdBytes()
       Required. The ID to use for the connector, which will become the final
       component of the connector's name. The ID must be 1-63 characters long, and
       match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with
       RFC 1035.
      
       This value is structured like: `my-connector-id`.
       
      string connector_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConnectorIdBytes in interface CreateConnectorRequestOrBuilder
      Returns:
      The bytes for connectorId.
    • setConnectorId

      public CreateConnectorRequest.Builder setConnectorId(String value)
       Required. The ID to use for the connector, which will become the final
       component of the connector's name. The ID must be 1-63 characters long, and
       match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with
       RFC 1035.
      
       This value is structured like: `my-connector-id`.
       
      string connector_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The connectorId to set.
      Returns:
      This builder for chaining.
    • clearConnectorId

      public CreateConnectorRequest.Builder clearConnectorId()
       Required. The ID to use for the connector, which will become the final
       component of the connector's name. The ID must be 1-63 characters long, and
       match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with
       RFC 1035.
      
       This value is structured like: `my-connector-id`.
       
      string connector_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setConnectorIdBytes

      public CreateConnectorRequest.Builder setConnectorIdBytes(com.google.protobuf.ByteString value)
       Required. The ID to use for the connector, which will become the final
       component of the connector's name. The ID must be 1-63 characters long, and
       match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` to comply with
       RFC 1035.
      
       This value is structured like: `my-connector-id`.
       
      string connector_id = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for connectorId to set.
      Returns:
      This builder for chaining.
    • hasConnector

      public boolean hasConnector()
       Required. The connector to create.
       
      .google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasConnector in interface CreateConnectorRequestOrBuilder
      Returns:
      Whether the connector field is set.
    • getConnector

      public Connector getConnector()
       Required. The connector to create.
       
      .google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConnector in interface CreateConnectorRequestOrBuilder
      Returns:
      The connector.
    • setConnector

      public CreateConnectorRequest.Builder setConnector(Connector value)
       Required. The connector to create.
       
      .google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
    • setConnector

      public CreateConnectorRequest.Builder setConnector(Connector.Builder builderForValue)
       Required. The connector to create.
       
      .google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeConnector

      public CreateConnectorRequest.Builder mergeConnector(Connector value)
       Required. The connector to create.
       
      .google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearConnector

      public CreateConnectorRequest.Builder clearConnector()
       Required. The connector to create.
       
      .google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
    • getConnectorBuilder

      public Connector.Builder getConnectorBuilder()
       Required. The connector to create.
       
      .google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
    • getConnectorOrBuilder

      public ConnectorOrBuilder getConnectorOrBuilder()
       Required. The connector to create.
       
      .google.cloud.managedkafka.v1.Connector connector = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConnectorOrBuilder in interface CreateConnectorRequestOrBuilder