public class DefaultGcpProjectIdProvider extends Object implements GcpProjectIdProvider
ServiceOptions.getDefaultProjectId()
.Constructor and Description |
---|
DefaultGcpProjectIdProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getProjectId()
ServiceOptions.getDefaultProjectId() checks for the project ID in the
GOOGLE_CLOUD_PROJECT environment variable and the Metadata Server, among others. |
public String getProjectId()
ServiceOptions.getDefaultProjectId()
checks for the project ID in the
GOOGLE_CLOUD_PROJECT
environment variable and the Metadata Server, among others.getProjectId
in interface GcpProjectIdProvider
Copyright © 2021. All rights reserved.