@java.lang.Override
    public com.google.protobuf.ByteString getRoleArnBytes() {
      java.lang.Object ref = roleArn_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        roleArn_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
<pre>
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.
</pre>

<code>string role_arn = 4;</code>

@return The bytes for roleArn.
java-storage-transfer/proto-google-cloud-storage-transfer-v1/src/main/java/com/google/storagetransfer/v1/proto/TransferTypes.java