Google Cloud Dataflow SDK for Java, version 1.9.1
com.google.cloud.dataflow.sdk.options
Class GcpOptions.DefaultProjectFactory
- java.lang.Object
-
- com.google.cloud.dataflow.sdk.options.GcpOptions.DefaultProjectFactory
-
- All Implemented Interfaces:
- DefaultValueFactory<String>
- Enclosing interface:
- GcpOptions
public static class GcpOptions.DefaultProjectFactory extends Object implements DefaultValueFactory<String>
Attempts to infer the default project based upon the environment this application is executing within. Currently this only supports getting the default project from gcloud.
-
-
Constructor Summary
Constructors Constructor and Description DefaultProjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description String
create(PipelineOptions options)
Creates a default value for a getter marked withDefault.InstanceFactory
.
-
-
-
Method Detail
-
create
public String create(PipelineOptions options)
Description copied from interface:DefaultValueFactory
Creates a default value for a getter marked withDefault.InstanceFactory
.- Specified by:
create
in interfaceDefaultValueFactory<String>
- Parameters:
options
- The current pipeline options.- Returns:
- The default value to be used for the annotated getter.
-
-