Class IngestionDataSourceSettings.AwsMsk.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
com.google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, IngestionDataSourceSettings.AwsMskOrBuilder, Cloneable
Enclosing class:
IngestionDataSourceSettings.AwsMsk

public static final class IngestionDataSourceSettings.AwsMsk.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder> implements IngestionDataSourceSettings.AwsMskOrBuilder
 Ingestion settings for Amazon MSK.
 
Protobuf type google.pubsub.v1.IngestionDataSourceSettings.AwsMsk
  • Method Details

    • getDescriptor

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

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public IngestionDataSourceSettings.AwsMsk buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
    • setField

      public IngestionDataSourceSettings.AwsMsk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
    • clearField

      public IngestionDataSourceSettings.AwsMsk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
    • clearOneof

      public IngestionDataSourceSettings.AwsMsk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
    • setRepeatedField

      public IngestionDataSourceSettings.AwsMsk.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
    • addRepeatedField

      public IngestionDataSourceSettings.AwsMsk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
    • mergeFrom

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

    • isInitialized

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

      public IngestionDataSourceSettings.AwsMsk.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<IngestionDataSourceSettings.AwsMsk.Builder>
      Throws:
      IOException
    • getStateValue

      public int getStateValue()
       Output only. An output-only field that indicates the state of the Amazon
       MSK ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStateValue in interface IngestionDataSourceSettings.AwsMskOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public IngestionDataSourceSettings.AwsMsk.Builder setStateValue(int value)
       Output only. An output-only field that indicates the state of the Amazon
       MSK ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.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

       Output only. An output-only field that indicates the state of the Amazon
       MSK ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface IngestionDataSourceSettings.AwsMskOrBuilder
      Returns:
      The state.
    • setState

       Output only. An output-only field that indicates the state of the Amazon
       MSK ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

       Output only. An output-only field that indicates the state of the Amazon
       MSK ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.AwsMsk.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getClusterArn

      public String getClusterArn()
       Required. The Amazon Resource Name (ARN) that uniquely identifies the
       cluster.
       
      string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClusterArn in interface IngestionDataSourceSettings.AwsMskOrBuilder
      Returns:
      The clusterArn.
    • getClusterArnBytes

      public com.google.protobuf.ByteString getClusterArnBytes()
       Required. The Amazon Resource Name (ARN) that uniquely identifies the
       cluster.
       
      string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClusterArnBytes in interface IngestionDataSourceSettings.AwsMskOrBuilder
      Returns:
      The bytes for clusterArn.
    • setClusterArn

      public IngestionDataSourceSettings.AwsMsk.Builder setClusterArn(String value)
       Required. The Amazon Resource Name (ARN) that uniquely identifies the
       cluster.
       
      string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The clusterArn to set.
      Returns:
      This builder for chaining.
    • clearClusterArn

       Required. The Amazon Resource Name (ARN) that uniquely identifies the
       cluster.
       
      string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setClusterArnBytes

      public IngestionDataSourceSettings.AwsMsk.Builder setClusterArnBytes(com.google.protobuf.ByteString value)
       Required. The Amazon Resource Name (ARN) that uniquely identifies the
       cluster.
       
      string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for clusterArn to set.
      Returns:
      This builder for chaining.
    • getTopic

      public String getTopic()
       Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
       will import from.
       
      string topic = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTopic in interface IngestionDataSourceSettings.AwsMskOrBuilder
      Returns:
      The topic.
    • getTopicBytes

      public com.google.protobuf.ByteString getTopicBytes()
       Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
       will import from.
       
      string topic = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTopicBytes in interface IngestionDataSourceSettings.AwsMskOrBuilder
      Returns:
      The bytes for topic.
    • setTopic

       Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
       will import from.
       
      string topic = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The topic to set.
      Returns:
      This builder for chaining.
    • clearTopic

       Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
       will import from.
       
      string topic = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setTopicBytes

      public IngestionDataSourceSettings.AwsMsk.Builder setTopicBytes(com.google.protobuf.ByteString value)
       Required. The name of the topic in the Amazon MSK cluster that Pub/Sub
       will import from.
       
      string topic = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for topic to set.
      Returns:
      This builder for chaining.
    • getAwsRoleArn

      public String getAwsRoleArn()
       Required. AWS role ARN to be used for Federated Identity authentication
       with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
       the required permissions that need to be attached to it.
       
      string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAwsRoleArn in interface IngestionDataSourceSettings.AwsMskOrBuilder
      Returns:
      The awsRoleArn.
    • getAwsRoleArnBytes

      public com.google.protobuf.ByteString getAwsRoleArnBytes()
       Required. AWS role ARN to be used for Federated Identity authentication
       with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
       the required permissions that need to be attached to it.
       
      string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getAwsRoleArnBytes in interface IngestionDataSourceSettings.AwsMskOrBuilder
      Returns:
      The bytes for awsRoleArn.
    • setAwsRoleArn

      public IngestionDataSourceSettings.AwsMsk.Builder setAwsRoleArn(String value)
       Required. AWS role ARN to be used for Federated Identity authentication
       with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
       the required permissions that need to be attached to it.
       
      string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The awsRoleArn to set.
      Returns:
      This builder for chaining.
    • clearAwsRoleArn

       Required. AWS role ARN to be used for Federated Identity authentication
       with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
       the required permissions that need to be attached to it.
       
      string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setAwsRoleArnBytes

      public IngestionDataSourceSettings.AwsMsk.Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value)
       Required. AWS role ARN to be used for Federated Identity authentication
       with Amazon MSK. Check the Pub/Sub docs for how to set up this role and
       the required permissions that need to be attached to it.
       
      string aws_role_arn = 4 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for awsRoleArn to set.
      Returns:
      This builder for chaining.
    • getGcpServiceAccount

      public String getGcpServiceAccount()
       Required. The GCP service account to be used for Federated Identity
       authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
       for the provided role). The `aws_role_arn` must be set up with
       `accounts.google.com:sub` equals to this service account number.
       
      string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGcpServiceAccount in interface IngestionDataSourceSettings.AwsMskOrBuilder
      Returns:
      The gcpServiceAccount.
    • getGcpServiceAccountBytes

      public com.google.protobuf.ByteString getGcpServiceAccountBytes()
       Required. The GCP service account to be used for Federated Identity
       authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
       for the provided role). The `aws_role_arn` must be set up with
       `accounts.google.com:sub` equals to this service account number.
       
      string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getGcpServiceAccountBytes in interface IngestionDataSourceSettings.AwsMskOrBuilder
      Returns:
      The bytes for gcpServiceAccount.
    • setGcpServiceAccount

      public IngestionDataSourceSettings.AwsMsk.Builder setGcpServiceAccount(String value)
       Required. The GCP service account to be used for Federated Identity
       authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
       for the provided role). The `aws_role_arn` must be set up with
       `accounts.google.com:sub` equals to this service account number.
       
      string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The gcpServiceAccount to set.
      Returns:
      This builder for chaining.
    • clearGcpServiceAccount

      public IngestionDataSourceSettings.AwsMsk.Builder clearGcpServiceAccount()
       Required. The GCP service account to be used for Federated Identity
       authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
       for the provided role). The `aws_role_arn` must be set up with
       `accounts.google.com:sub` equals to this service account number.
       
      string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setGcpServiceAccountBytes

      public IngestionDataSourceSettings.AwsMsk.Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value)
       Required. The GCP service account to be used for Federated Identity
       authentication with Amazon MSK (via a `AssumeRoleWithWebIdentity` call
       for the provided role). The `aws_role_arn` must be set up with
       `accounts.google.com:sub` equals to this service account number.
       
      string gcp_service_account = 5 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for gcpServiceAccount to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final IngestionDataSourceSettings.AwsMsk.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
    • mergeUnknownFields

      public final IngestionDataSourceSettings.AwsMsk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>