@java.lang.Override
      public com.google.storagetransfer.v1.proto.TransferTypes.S3CompatibleMetadata.AuthMethod
          getAuthMethod() {
        com.google.storagetransfer.v1.proto.TransferTypes.S3CompatibleMetadata.AuthMethod result =
            com.google.storagetransfer.v1.proto.TransferTypes.S3CompatibleMetadata.AuthMethod
                .forNumber(authMethod_);
        return result == null
            ? com.google.storagetransfer.v1.proto.TransferTypes.S3CompatibleMetadata.AuthMethod
                .UNRECOGNIZED
            : result;
      }
<pre>
Specifies the authentication and authorization method used by the storage
service. When not specified, Transfer Service will attempt to determine
right auth method to use.
</pre>

<code>.google.storagetransfer.v1.S3CompatibleMetadata.AuthMethod auth_method = 1;</code>

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