Class IngestionDataSourceSettings.AwsKinesis.Builder

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

public static final class IngestionDataSourceSettings.AwsKinesis.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsKinesis.Builder> implements IngestionDataSourceSettings.AwsKinesisOrBuilder
 Ingestion settings for Amazon Kinesis Data Streams.
 
Protobuf type google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis
  • 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.AwsKinesis.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.AwsKinesis.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.AwsKinesis.Builder>
    • getDefaultInstanceForType

      public IngestionDataSourceSettings.AwsKinesis 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

      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.AwsKinesis.Builder>
    • setField

      public IngestionDataSourceSettings.AwsKinesis.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.AwsKinesis.Builder>
    • clearField

      public IngestionDataSourceSettings.AwsKinesis.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.AwsKinesis.Builder>
    • clearOneof

      public IngestionDataSourceSettings.AwsKinesis.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.AwsKinesis.Builder>
    • setRepeatedField

      public IngestionDataSourceSettings.AwsKinesis.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.AwsKinesis.Builder>
    • addRepeatedField

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

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

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

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

      public IngestionDataSourceSettings.AwsKinesis.Builder setStateValue(int value)
       Output only. An output-only field that indicates the state of the Kinesis
       ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.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 Kinesis
       ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getState in interface IngestionDataSourceSettings.AwsKinesisOrBuilder
      Returns:
      The state.
    • setState

       Output only. An output-only field that indicates the state of the Kinesis
       ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.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 Kinesis
       ingestion source.
       
      .google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis.State state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getStreamArn

      public String getStreamArn()
       Required. The Kinesis stream ARN to ingest data from.
       
      string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStreamArn in interface IngestionDataSourceSettings.AwsKinesisOrBuilder
      Returns:
      The streamArn.
    • getStreamArnBytes

      public com.google.protobuf.ByteString getStreamArnBytes()
       Required. The Kinesis stream ARN to ingest data from.
       
      string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStreamArnBytes in interface IngestionDataSourceSettings.AwsKinesisOrBuilder
      Returns:
      The bytes for streamArn.
    • setStreamArn

       Required. The Kinesis stream ARN to ingest data from.
       
      string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The streamArn to set.
      Returns:
      This builder for chaining.
    • clearStreamArn

       Required. The Kinesis stream ARN to ingest data from.
       
      string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setStreamArnBytes

      public IngestionDataSourceSettings.AwsKinesis.Builder setStreamArnBytes(com.google.protobuf.ByteString value)
       Required. The Kinesis stream ARN to ingest data from.
       
      string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for streamArn to set.
      Returns:
      This builder for chaining.
    • getConsumerArn

      public String getConsumerArn()
       Required. The Kinesis consumer ARN to used for ingestion in Enhanced
       Fan-Out mode. The consumer must be already created and ready to be used.
       
      string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConsumerArn in interface IngestionDataSourceSettings.AwsKinesisOrBuilder
      Returns:
      The consumerArn.
    • getConsumerArnBytes

      public com.google.protobuf.ByteString getConsumerArnBytes()
       Required. The Kinesis consumer ARN to used for ingestion in Enhanced
       Fan-Out mode. The consumer must be already created and ready to be used.
       
      string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getConsumerArnBytes in interface IngestionDataSourceSettings.AwsKinesisOrBuilder
      Returns:
      The bytes for consumerArn.
    • setConsumerArn

       Required. The Kinesis consumer ARN to used for ingestion in Enhanced
       Fan-Out mode. The consumer must be already created and ready to be used.
       
      string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The consumerArn to set.
      Returns:
      This builder for chaining.
    • clearConsumerArn

       Required. The Kinesis consumer ARN to used for ingestion in Enhanced
       Fan-Out mode. The consumer must be already created and ready to be used.
       
      string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setConsumerArnBytes

      public IngestionDataSourceSettings.AwsKinesis.Builder setConsumerArnBytes(com.google.protobuf.ByteString value)
       Required. The Kinesis consumer ARN to used for ingestion in Enhanced
       Fan-Out mode. The consumer must be already created and ready to be used.
       
      string consumer_arn = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for consumerArn to set.
      Returns:
      This builder for chaining.
    • getAwsRoleArn

      public String getAwsRoleArn()
       Required. AWS role ARN to be used for Federated Identity authentication
       with Kinesis. 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.AwsKinesisOrBuilder
      Returns:
      The awsRoleArn.
    • getAwsRoleArnBytes

      public com.google.protobuf.ByteString getAwsRoleArnBytes()
       Required. AWS role ARN to be used for Federated Identity authentication
       with Kinesis. 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.AwsKinesisOrBuilder
      Returns:
      The bytes for awsRoleArn.
    • setAwsRoleArn

       Required. AWS role ARN to be used for Federated Identity authentication
       with Kinesis. 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 Kinesis. 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.AwsKinesis.Builder setAwsRoleArnBytes(com.google.protobuf.ByteString value)
       Required. AWS role ARN to be used for Federated Identity authentication
       with Kinesis. 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 Kinesis (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.AwsKinesisOrBuilder
      Returns:
      The gcpServiceAccount.
    • getGcpServiceAccountBytes

      public com.google.protobuf.ByteString getGcpServiceAccountBytes()
       Required. The GCP service account to be used for Federated Identity
       authentication with Kinesis (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.AwsKinesisOrBuilder
      Returns:
      The bytes for gcpServiceAccount.
    • setGcpServiceAccount

      public IngestionDataSourceSettings.AwsKinesis.Builder setGcpServiceAccount(String value)
       Required. The GCP service account to be used for Federated Identity
       authentication with Kinesis (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.AwsKinesis.Builder clearGcpServiceAccount()
       Required. The GCP service account to be used for Federated Identity
       authentication with Kinesis (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.AwsKinesis.Builder setGcpServiceAccountBytes(com.google.protobuf.ByteString value)
       Required. The GCP service account to be used for Federated Identity
       authentication with Kinesis (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.AwsKinesis.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.AwsKinesis.Builder>
    • mergeUnknownFields

      public final IngestionDataSourceSettings.AwsKinesis.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.AwsKinesis.Builder>