Skip to content

Commit

Permalink
Add quickstarts to root module.
Browse files Browse the repository at this point in the history
Fixes checkstyle errors in samples.
  • Loading branch information
tswast committed Oct 25, 2016
1 parent 9c5635d commit 1f0c8a5
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
9 changes: 7 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,13 @@
<module>appengine/users</module>
<module>appengine/xmpp</module>
<module>bigquery</module>
<module>bigquery/cloud-client</module>
<module>compute/cmdline</module>
<module>compute/error-reporting</module>
<module>compute/mailjet</module>
<module>compute/sendgrid</module>
<module>datastore</module>
<module>logging</module>
<module>datastore/cloud-client</module>
<module>flexible/analytics</module>
<module>flexible/async-rest</module>
<module>flexible/cloudsql</module>
Expand All @@ -101,15 +102,19 @@
-->
<module>flexible/static-files</module>
<module>flexible/twilio</module>
<module>language/analysis</module>
<module>logging</module>
<module>monitoring/v2</module>
<module>monitoring/v3</module>
<module>pubsub/cloud-client</module>
<module>speech/grpc</module>
<module>storage/cloud-client</module>
<module>storage/json-api</module>
<module>storage/storage-transfer</module>
<module>storage/xml-api/cmdline-sample</module>
<module>storage/xml-api/serviceaccount-appengine-sample</module>
<module>taskqueue/deferred</module>
<module>language/analysis</module>
<module>translate/cloud-client</module>
<module>unittests</module>
<module>vision/face-detection</module>
<module>vision/label</module>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

// [START storage_quickstart]
// Imports the Google Cloud client library
import com.google.cloud.storage.Storage;
import com.google.cloud.storage.StorageOptions;
import com.google.cloud.storage.Bucket;
import com.google.cloud.storage.BucketInfo;
import com.google.cloud.storage.Storage;
import com.google.cloud.storage.StorageOptions;

public class QuickstartSample {
public static void main(String... args) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,12 @@ public static void main(String... args) throws Exception {
String text = "Hello, world!";

// Translates some text into Russian
Translation translation = translate.translate(
text,
TranslateOption.sourceLanguage("en"),
TranslateOption.targetLanguage("ru")
);
Translation translation =
translate.translate(
text,
TranslateOption.sourceLanguage("en"),
TranslateOption.targetLanguage("ru"));


System.out.printf("Text: %s%n", text);
System.out.printf("Translation: %s%n", translation.translatedText());
Expand Down

0 comments on commit 1f0c8a5

Please sign in to comment.