Class TransferTypes.AwsS3Data
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.storagetransfer.v1.proto.TransferTypes.AwsS3Data
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,TransferTypes.AwsS3DataOrBuilder,Serializable
- Enclosing class:
- TransferTypes
public static final class TransferTypes.AwsS3Data
extends com.google.protobuf.GeneratedMessage
implements TransferTypes.AwsS3DataOrBuilder
An AwsS3Data resource can be a data source, but not a data sink. In an AwsS3Data resource, an object's name is the S3 object's key name.Protobuf type
google.storagetransfer.v1.AwsS3Data- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAn AwsS3Data resource can be a data source, but not a data sink.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanInput only.Input only.Required.com.google.protobuf.ByteStringRequired.Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.static TransferTypes.AwsS3Datastatic final com.google.protobuf.Descriptors.DescriptorbooleanEgress bytes over a Google-managed private network.com.google.protobuf.Parser<TransferTypes.AwsS3Data>getPath()Root path to transfer objects.com.google.protobuf.ByteStringRoot path to transfer objects.The Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`.com.google.protobuf.ByteStringThe Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`.intbooleanInput only.inthashCode()booleanEgress bytes over a Google-managed private network.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(TransferTypes.AwsS3Data prototype) protected TransferTypes.AwsS3Data.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static TransferTypes.AwsS3DataparseDelimitedFrom(InputStream input) static TransferTypes.AwsS3DataparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransferTypes.AwsS3DataparseFrom(byte[] data) static TransferTypes.AwsS3DataparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransferTypes.AwsS3DataparseFrom(com.google.protobuf.ByteString data) static TransferTypes.AwsS3DataparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransferTypes.AwsS3DataparseFrom(com.google.protobuf.CodedInputStream input) static TransferTypes.AwsS3DataparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransferTypes.AwsS3DataparseFrom(InputStream input) static TransferTypes.AwsS3DataparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransferTypes.AwsS3DataparseFrom(ByteBuffer data) static TransferTypes.AwsS3DataparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TransferTypes.AwsS3Data>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
BUCKET_NAME_FIELD_NUMBER
public static final int BUCKET_NAME_FIELD_NUMBER- See Also:
-
AWS_ACCESS_KEY_FIELD_NUMBER
public static final int AWS_ACCESS_KEY_FIELD_NUMBER- See Also:
-
PATH_FIELD_NUMBER
public static final int PATH_FIELD_NUMBER- See Also:
-
ROLE_ARN_FIELD_NUMBER
public static final int ROLE_ARN_FIELD_NUMBER- See Also:
-
CLOUDFRONT_DOMAIN_FIELD_NUMBER
public static final int CLOUDFRONT_DOMAIN_FIELD_NUMBER- See Also:
-
CREDENTIALS_SECRET_FIELD_NUMBER
public static final int CREDENTIALS_SECRET_FIELD_NUMBER- See Also:
-
MANAGED_PRIVATE_NETWORK_FIELD_NUMBER
public static final int MANAGED_PRIVATE_NETWORK_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getPrivateNetworkCase
- Specified by:
getPrivateNetworkCasein interfaceTransferTypes.AwsS3DataOrBuilder
-
getBucketName
Required. S3 Bucket name (see [Creating a bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).
string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBucketNamein interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The bucketName.
-
getBucketNameBytes
public com.google.protobuf.ByteString getBucketNameBytes()Required. S3 Bucket name (see [Creating a bucket](https://docs.aws.amazon.com/AmazonS3/latest/dev/create-bucket-get-location-example.html)).
string bucket_name = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getBucketNameBytesin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The bytes for bucketName.
-
hasAwsAccessKey
public boolean hasAwsAccessKey()Input only. AWS access key used to sign the API requests to the AWS S3 bucket. Permissions on the bucket must be granted to the access ID of the AWS access key. For information on our data retention policy for user credentials, see [User credentials](/storage-transfer/docs/data-retention#user-credentials).
.google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
hasAwsAccessKeyin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- Whether the awsAccessKey field is set.
-
getAwsAccessKey
Input only. AWS access key used to sign the API requests to the AWS S3 bucket. Permissions on the bucket must be granted to the access ID of the AWS access key. For information on our data retention policy for user credentials, see [User credentials](/storage-transfer/docs/data-retention#user-credentials).
.google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getAwsAccessKeyin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The awsAccessKey.
-
getAwsAccessKeyOrBuilder
Input only. AWS access key used to sign the API requests to the AWS S3 bucket. Permissions on the bucket must be granted to the access ID of the AWS access key. For information on our data retention policy for user credentials, see [User credentials](/storage-transfer/docs/data-retention#user-credentials).
.google.storagetransfer.v1.AwsAccessKey aws_access_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getAwsAccessKeyOrBuilderin interfaceTransferTypes.AwsS3DataOrBuilder
-
getPath
Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'.
string path = 3;- Specified by:
getPathin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The path.
-
getPathBytes
public com.google.protobuf.ByteString getPathBytes()Root path to transfer objects. Must be an empty string or full path name that ends with a '/'. This field is treated as an object prefix. As such, it should generally not begin with a '/'.
string path = 3;- Specified by:
getPathBytesin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The bytes for path.
-
getRoleArn
The Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`. For more information about ARNs, see [IAM ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns). When a role ARN is provided, Transfer Service fetches temporary credentials for the session using a `AssumeRoleWithWebIdentity` call for the provided role using the [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] for this project.
string role_arn = 4;- Specified by:
getRoleArnin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The roleArn.
-
getRoleArnBytes
public com.google.protobuf.ByteString getRoleArnBytes()The Amazon Resource Name (ARN) of the role to support temporary credentials via `AssumeRoleWithWebIdentity`. For more information about ARNs, see [IAM ARNs](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html#identifiers-arns). When a role ARN is provided, Transfer Service fetches temporary credentials for the session using a `AssumeRoleWithWebIdentity` call for the provided role using the [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] for this project.
string role_arn = 4;- Specified by:
getRoleArnBytesin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The bytes for roleArn.
-
getCloudfrontDomain
Optional. The CloudFront distribution domain name pointing to this bucket, to use when fetching. See [Transfer from S3 via CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront) for more information. Format: `https://{id}.cloudfront.net` or any valid custom domain. Must begin with `https://`.string cloudfront_domain = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCloudfrontDomainin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The cloudfrontDomain.
-
getCloudfrontDomainBytes
public com.google.protobuf.ByteString getCloudfrontDomainBytes()Optional. The CloudFront distribution domain name pointing to this bucket, to use when fetching. See [Transfer from S3 via CloudFront](https://cloud.google.com/storage-transfer/docs/s3-cloudfront) for more information. Format: `https://{id}.cloudfront.net` or any valid custom domain. Must begin with `https://`.string cloudfront_domain = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCloudfrontDomainBytesin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The bytes for cloudfrontDomain.
-
getCredentialsSecret
Optional. The Resource name of a secret in Secret Manager. AWS credentials must be stored in Secret Manager in JSON format: { "access_key_id": "ACCESS_KEY_ID", "secret_access_key": "SECRET_ACCESS_KEY" } [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must be granted `roles/secretmanager.secretAccessor` for the resource. See [Configure access to a source: Amazon S3] (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager) for more information. If `credentials_secret` is specified, do not specify [role_arn][google.storagetransfer.v1.AwsS3Data.role_arn] or [aws_access_key][google.storagetransfer.v1.AwsS3Data.aws_access_key]. Format: `projects/{project_number}/secrets/{secret_name}`string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCredentialsSecretin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The credentialsSecret.
-
getCredentialsSecretBytes
public com.google.protobuf.ByteString getCredentialsSecretBytes()Optional. The Resource name of a secret in Secret Manager. AWS credentials must be stored in Secret Manager in JSON format: { "access_key_id": "ACCESS_KEY_ID", "secret_access_key": "SECRET_ACCESS_KEY" } [GoogleServiceAccount][google.storagetransfer.v1.GoogleServiceAccount] must be granted `roles/secretmanager.secretAccessor` for the resource. See [Configure access to a source: Amazon S3] (https://cloud.google.com/storage-transfer/docs/source-amazon-s3#secret_manager) for more information. If `credentials_secret` is specified, do not specify [role_arn][google.storagetransfer.v1.AwsS3Data.role_arn] or [aws_access_key][google.storagetransfer.v1.AwsS3Data.aws_access_key]. Format: `projects/{project_number}/secrets/{secret_name}`string credentials_secret = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getCredentialsSecretBytesin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The bytes for credentialsSecret.
-
hasManagedPrivateNetwork
public boolean hasManagedPrivateNetwork()Egress bytes over a Google-managed private network. This network is shared between other users of Storage Transfer Service.
bool managed_private_network = 8;- Specified by:
hasManagedPrivateNetworkin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- Whether the managedPrivateNetwork field is set.
-
getManagedPrivateNetwork
public boolean getManagedPrivateNetwork()Egress bytes over a Google-managed private network. This network is shared between other users of Storage Transfer Service.
bool managed_private_network = 8;- Specified by:
getManagedPrivateNetworkin interfaceTransferTypes.AwsS3DataOrBuilder- Returns:
- The managedPrivateNetwork.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TransferTypes.AwsS3Data parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransferTypes.AwsS3Data parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransferTypes.AwsS3Data parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransferTypes.AwsS3Data parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransferTypes.AwsS3Data parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransferTypes.AwsS3Data parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TransferTypes.AwsS3Data parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TransferTypes.AwsS3Data parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TransferTypes.AwsS3Data parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TransferTypes.AwsS3Data parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TransferTypes.AwsS3Data.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-