Package com.google.pubsub.v1
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 Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
Required.Required.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) Required.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Output only.Required.clone()
Required.com.google.protobuf.ByteString
Required.Required.com.google.protobuf.ByteString
Required.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
Required.com.google.protobuf.ByteString
Required.getState()
Output only.int
Output only.Required.com.google.protobuf.ByteString
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setAwsRoleArn
(String value) Required.setAwsRoleArnBytes
(com.google.protobuf.ByteString value) Required.setConsumerArn
(String value) Required.setConsumerArnBytes
(com.google.protobuf.ByteString value) Required.setGcpServiceAccount
(String value) Required.setGcpServiceAccountBytes
(com.google.protobuf.ByteString value) Required.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) Output only.setStateValue
(int value) Output only.setStreamArn
(String value) Required.setStreamArnBytes
(com.google.protobuf.ByteString value) Required.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsKinesis.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsKinesis.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsKinesis.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsKinesis.Builder>
-
clearField
public IngestionDataSourceSettings.AwsKinesis.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsKinesis.Builder>
-
clearOneof
public IngestionDataSourceSettings.AwsKinesis.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsKinesis.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<IngestionDataSourceSettings.AwsKinesis.Builder>
-
mergeFrom
public IngestionDataSourceSettings.AwsKinesis.Builder mergeFrom(IngestionDataSourceSettings.AwsKinesis other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.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 interfaceIngestionDataSourceSettings.AwsKinesisOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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 interfaceIngestionDataSourceSettings.AwsKinesisOrBuilder
- Returns:
- The state.
-
setState
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];
- 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
Required. The Kinesis stream ARN to ingest data from.
string stream_arn = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getStreamArn
in interfaceIngestionDataSourceSettings.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 interfaceIngestionDataSourceSettings.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
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 interfaceIngestionDataSourceSettings.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 interfaceIngestionDataSourceSettings.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
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 interfaceIngestionDataSourceSettings.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 interfaceIngestionDataSourceSettings.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
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 interfaceIngestionDataSourceSettings.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 interfaceIngestionDataSourceSettings.AwsKinesisOrBuilder
- Returns:
- The bytes for gcpServiceAccount.
-
setGcpServiceAccount
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
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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsKinesis.Builder>
-
mergeUnknownFields
public final IngestionDataSourceSettings.AwsKinesis.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsKinesis.Builder>
-