Class IngestionDataSourceSettings.AwsKinesis.Builder (1.126.6)

public static final class IngestionDataSourceSettings.AwsKinesis.Builder extends GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsKinesis.Builder> implements IngestionDataSourceSettings.AwsKinesisOrBuilder

Ingestion settings for Amazon Kinesis Data Streams.

Protobuf type google.pubsub.v1.IngestionDataSourceSettings.AwsKinesis

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public IngestionDataSourceSettings.AwsKinesis.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder
Overrides

build()

public IngestionDataSourceSettings.AwsKinesis build()
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis

buildPartial()

public IngestionDataSourceSettings.AwsKinesis buildPartial()
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis

clear()

public IngestionDataSourceSettings.AwsKinesis.Builder clear()
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder
Overrides

clearAwsRoleArn()

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

This builder for chaining.

clearConsumerArn()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public IngestionDataSourceSettings.AwsKinesis.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder
Overrides

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

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public IngestionDataSourceSettings.AwsKinesis.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder
Overrides

clearState()

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

This builder for chaining.

clearStreamArn()

public IngestionDataSourceSettings.AwsKinesis.Builder clearStreamArn()

Required. The Kinesis stream ARN to ingest data from.

string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

This builder for chaining.

clone()

public IngestionDataSourceSettings.AwsKinesis.Builder clone()
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder
Overrides

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];

Returns
TypeDescription
String

The awsRoleArn.

getAwsRoleArnBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for awsRoleArn.

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];

Returns
TypeDescription
String

The consumerArn.

getConsumerArnBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for consumerArn.

getDefaultInstanceForType()

public IngestionDataSourceSettings.AwsKinesis getDefaultInstanceForType()
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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];

Returns
TypeDescription
String

The gcpServiceAccount.

getGcpServiceAccountBytes()

public 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];

Returns
TypeDescription
ByteString

The bytes for gcpServiceAccount.

getState()

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

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.State

The state.

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];

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getStreamArn()

public String getStreamArn()

Required. The Kinesis stream ARN to ingest data from.

string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The streamArn.

getStreamArnBytes()

public ByteString getStreamArnBytes()

Required. The Kinesis stream ARN to ingest data from.

string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for streamArn.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IngestionDataSourceSettings.AwsKinesis.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public IngestionDataSourceSettings.AwsKinesis.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder
Overrides

mergeFrom(IngestionDataSourceSettings.AwsKinesis other)

public IngestionDataSourceSettings.AwsKinesis.Builder mergeFrom(IngestionDataSourceSettings.AwsKinesis other)
Parameter
NameDescription
otherIngestionDataSourceSettings.AwsKinesis
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final IngestionDataSourceSettings.AwsKinesis.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder
Overrides

setAwsRoleArn(String value)

public IngestionDataSourceSettings.AwsKinesis.Builder setAwsRoleArn(String 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];

Parameter
NameDescription
valueString

The awsRoleArn to set.

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

This builder for chaining.

setAwsRoleArnBytes(ByteString value)

public IngestionDataSourceSettings.AwsKinesis.Builder setAwsRoleArnBytes(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];

Parameter
NameDescription
valueByteString

The bytes for awsRoleArn to set.

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

This builder for chaining.

setConsumerArn(String value)

public IngestionDataSourceSettings.AwsKinesis.Builder setConsumerArn(String 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];

Parameter
NameDescription
valueString

The consumerArn to set.

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

This builder for chaining.

setConsumerArnBytes(ByteString value)

public IngestionDataSourceSettings.AwsKinesis.Builder setConsumerArnBytes(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];

Parameter
NameDescription
valueByteString

The bytes for consumerArn to set.

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public IngestionDataSourceSettings.AwsKinesis.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder
Overrides

setGcpServiceAccount(String value)

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];

Parameter
NameDescription
valueString

The gcpServiceAccount to set.

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

This builder for chaining.

setGcpServiceAccountBytes(ByteString value)

public IngestionDataSourceSettings.AwsKinesis.Builder setGcpServiceAccountBytes(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];

Parameter
NameDescription
valueByteString

The bytes for gcpServiceAccount to set.

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public IngestionDataSourceSettings.AwsKinesis.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder
Overrides

setState(IngestionDataSourceSettings.AwsKinesis.State value)

public IngestionDataSourceSettings.AwsKinesis.Builder setState(IngestionDataSourceSettings.AwsKinesis.State 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];

Parameter
NameDescription
valueIngestionDataSourceSettings.AwsKinesis.State

The state to set.

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

This builder for chaining.

setStateValue(int value)

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];

Parameter
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

This builder for chaining.

setStreamArn(String value)

public IngestionDataSourceSettings.AwsKinesis.Builder setStreamArn(String value)

Required. The Kinesis stream ARN to ingest data from.

string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The streamArn to set.

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

This builder for chaining.

setStreamArnBytes(ByteString value)

public IngestionDataSourceSettings.AwsKinesis.Builder setStreamArnBytes(ByteString value)

Required. The Kinesis stream ARN to ingest data from.

string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for streamArn to set.

Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final IngestionDataSourceSettings.AwsKinesis.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
IngestionDataSourceSettings.AwsKinesis.Builder
Overrides