@Default.InstanceFactory(HttpTransportFactory.class) @JsonIgnore HttpTransport getTransport();
return Optional.of(((Default.Enum) annotation).value()); } else if (annotation instanceof Default.InstanceFactory) { return Optional.of(((Default.InstanceFactory) annotation).value().getSimpleName());
(Class<Enum>) method.getReturnType(), ((Default.Enum) annotation).value()); } else if (annotation instanceof Default.InstanceFactory) { return InstanceBuilder.ofType(((Default.InstanceFactory) annotation).value()) .build() .create(proxy);
/** * The client configuration instance that should be used to configure AWS service clients. Please * note that the configuration deserialization only allows one to specify proxy settings. * * <p>For example, to specify the proxy host, port, username and password, specify the following: * <code> * --clientConfiguration={ * "proxyHost":"hostname", * "proxyPort":1234, * "proxyUsername":"username", * "proxyPassword":"password" * } * </code> * * @return */ @Description( "The client configuration instance that should be used to configure AWS service " + "clients. Please note that the configuration deserialization only allows one to specify " + "proxy settings. For example, to specify the proxy host, port, username and password, " + "specify the following: --clientConfiguration={\"proxyHost\":\"hostname\",\"proxyPort\":1234," + "\"proxyUsername\":\"username\",\"proxyPassword\":\"password\"}") @Default.InstanceFactory(ClientConfigurationFactory.class) ClientConfiguration getClientConfiguration();
/** * A user agent string as per RFC2616, describing the pipeline to external services. * * <p>https://www.ietf.org/rfc/rfc2616.txt * * <p>It should follow the BNF Form: * * <pre><code> * user agent = 1*(product | comment) * product = token ["/" product-version] * product-version = token * </code></pre> * * Where a token is a series of characters without a separator. * * <p>The string defaults to {@code [name]/[version]} based on the properties of the Apache Beam * release. */ @Description( "A user agent string describing the pipeline to external services." + " The format should follow RFC2616. This option defaults to \"[name]/[version]\"" + " where name and version are properties of the Apache Beam release.") @Default.InstanceFactory(UserAgentFactory.class) String getUserAgent();
/** * The credential instance that should be used to authenticate against AWS services. The option * value must contain a "@type" field and an AWS Credentials Provider class as the field value. * Refer to {@link DefaultAWSCredentialsProviderChain} Javadoc for usage help. * * <p>For example, to specify the AWS key ID and secret, specify the following: <code> * {"@type" : "AWSStaticCredentialsProvider", "awsAccessKeyId" : "key_id_value", * "awsSecretKey" : "secret_value"} * </code> */ @Description( "The credential instance that should be used to authenticate " + "against AWS services. The option value must contain \"@type\" field " + "and an AWS Credentials Provider class name as the field value. " + "Refer to DefaultAWSCredentialsProviderChain Javadoc for usage help. " + "For example, to specify the AWS key ID and secret, specify the following: " + "{\"@type\": \"AWSStaticCredentialsProvider\", " + "\"awsAccessKeyId\":\"<key_id>\", \"awsSecretKey\":\"<secret_key>\"}") @Default.InstanceFactory(AwsUserCredentialsFactory.class) AWSCredentialsProvider getAwsCredentialsProvider();
@Description("GDELT file date") @Default.InstanceFactory(Options.GDELTFileFactory.class) String getDate(); void setDate(String value);
@Default.InstanceFactory(SubProcessConfigurationFactory.class) SubProcessConfiguration getSubProcessConfiguration();
/** * GCS path for staging local files, e.g. gs://bucket/object * * <p>Must be a valid Cloud Storage URL, beginning with the prefix "gs://" * * <p>If {@link #getStagingLocation()} is not set, it will default to {@link * GcpOptions#getGcpTempLocation()}. {@link GcpOptions#getGcpTempLocation()} must be a valid GCS * path. */ @Description( "GCS path for staging local files, e.g. \"gs://bucket/object\". " + "Must be a valid Cloud Storage URL, beginning with the prefix \"gs://\". " + "If stagingLocation is unset, defaults to gcpTempLocation with \"/staging\" suffix.") @Default.InstanceFactory(StagingLocationFactory.class) String getStagingLocation();
/** * The ExecutorService instance to use to create threads, can be overridden to specify an * ExecutorService that is compatible with the users environment. If unset, the default is to * create an ExecutorService with an unbounded number of threads; this is compatible with Google * AppEngine. */ @JsonIgnore @Description( "The ExecutorService instance to use to create multiple threads. Can be overridden " + "to specify an ExecutorService that is compatible with the users environment. If unset, " + "the default is to create an ExecutorService with an unbounded number of threads; this " + "is compatible with Google AppEngine.") @Default.InstanceFactory(ExecutorServiceFactory.class) @Hidden ExecutorService getExecutorService();
@Default.InstanceFactory(TestOptionFactory.class) String getComplex();
@Default.InstanceFactory(GenomicsFactoryFactory.class) @JsonIgnore GenomicsFactory getGenomicsFactory();
@Default.InstanceFactory(JsonFactoryFactory.class) @JsonIgnore JsonFactory getJsonFactory();
@Description("String containing comma separated arguments for the JobServer.") @Default.InstanceFactory(DefaultJobServerConfigFactory.class) String[] getJobServerConfig();
@Default.InstanceFactory(ScopesFactory.class) @JsonIgnore List<String> getScopes();
@Description("Pub/Sub subscription") @Default.InstanceFactory(PubsubSubscriptionFactory.class) String getPubsubSubscription();
@Description("Path of the file to write to") @Default.InstanceFactory(OutputFactory.class) String getOutput();
@Default.InstanceFactory(ScopesFactory.class) @JsonIgnore List<String> getScopes();
@Description("GDELT file date") @Default.InstanceFactory(GDELTFileFactory.class) String getDate();
@Description("GDELT file date") @Default.InstanceFactory(Options.GDELTFileFactory.class) String getDate();