Package com.google.pubsub.v1
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 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.ByteStringRequired.Required.com.google.protobuf.ByteStringRequired.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorRequired.com.google.protobuf.ByteStringRequired.getState()Output only.intOutput only.getTopic()Required.com.google.protobuf.ByteStringRequired.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(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.setClusterArn(String value) Required.setClusterArnBytes(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.Required.setTopicBytes(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
-
setField
public IngestionDataSourceSettings.AwsMsk.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
-
clearField
public IngestionDataSourceSettings.AwsMsk.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
-
clearOneof
public IngestionDataSourceSettings.AwsMsk.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
-
addRepeatedField
public IngestionDataSourceSettings.AwsMsk.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
-
mergeFrom
public IngestionDataSourceSettings.AwsMsk.Builder mergeFrom(IngestionDataSourceSettings.AwsMsk other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getStateValuein interfaceIngestionDataSourceSettings.AwsMskOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
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:
getStatein interfaceIngestionDataSourceSettings.AwsMskOrBuilder- Returns:
- The state.
-
setState
public IngestionDataSourceSettings.AwsMsk.Builder setState(IngestionDataSourceSettings.AwsMsk.State 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 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
Required. The Amazon Resource Name (ARN) that uniquely identifies the cluster.
string cluster_arn = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getClusterArnin interfaceIngestionDataSourceSettings.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:
getClusterArnBytesin interfaceIngestionDataSourceSettings.AwsMskOrBuilder- Returns:
- The bytes for clusterArn.
-
setClusterArn
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
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:
getTopicin interfaceIngestionDataSourceSettings.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:
getTopicBytesin interfaceIngestionDataSourceSettings.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
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:
getAwsRoleArnin interfaceIngestionDataSourceSettings.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:
getAwsRoleArnBytesin interfaceIngestionDataSourceSettings.AwsMskOrBuilder- Returns:
- The bytes for awsRoleArn.
-
setAwsRoleArn
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
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:
getGcpServiceAccountin interfaceIngestionDataSourceSettings.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:
getGcpServiceAccountBytesin interfaceIngestionDataSourceSettings.AwsMskOrBuilder- Returns:
- The bytes for gcpServiceAccount.
-
setGcpServiceAccount
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
-
mergeUnknownFields
public final IngestionDataSourceSettings.AwsMsk.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<IngestionDataSourceSettings.AwsMsk.Builder>
-