Skip to content

Commit 824ecfd

Browse files
---
yaml --- r: 8253 b: refs/heads/master c: 4864e23 h: refs/heads/master i: 8251: f033397
1 parent c916c2a commit 824ecfd

10 files changed

Lines changed: 287 additions & 222 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8fb2e6f67b224941d6175da84de8dcb85c5ce19d
2+
refs/heads/master: 4864e23a34115fc972b02623000ace0a0661b264
33
refs/heads/travis: 47e4fee4fd5af9b2a8ce46f23c72ec95f9b195b2
44
refs/heads/gh-pages: 0114589947fea527ea3831330789accedbecf45c
55
refs/tags/0.0.9: 22f1839238f66c39e67ed4dfdcd273b1ae2e8444

trunk/README.md

Lines changed: 9 additions & 196 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,24 @@ This client supports the following Google Cloud Platform services at a [Beta](#v
2323
- [BigQuery](google-cloud-bigquery) (Beta)
2424
- [Cloud Pub/Sub](google-cloud-pubsub) (Beta)
2525
- [Cloud Spanner](google-cloud-spanner) (Beta)
26-
- [Cloud Natural Language](#google-cloud-language-beta) (Beta)
27-
- [Cloud Vision](#google-cloud-vision-beta) (Beta)
26+
- [Cloud Natural Language](google-cloud-language) (Beta)
27+
- [Cloud Vision](google-cloud-vision) (Beta)
2828

2929
This client supports the following Google Cloud Platform services at an [Alpha](#versioning) quality level:
3030

3131
- [Cloud Compute](#google-cloud-compute-alpha) (Alpha)
32-
- [Cloud Data Loss Prevention](#google-cloud-data-loss-prevention-alpha) (Alpha)
32+
- [Cloud Data Loss Prevention](google-cloud-dlp) (Alpha)
3333
- [Cloud DNS](#google-cloud-dns-alpha) (Alpha)
34-
- [Stackdriver Error Reporting](#stackdriver-error-reporting-alpha) (Alpha)
35-
- [Stackdriver Monitoring](#stackdriver-monitoring-alpha) (Alpha)
34+
- [Stackdriver Error Reporting](google-cloud-errorreporting) (Alpha)
35+
- [Stackdriver Monitoring](google-cloud-monitoring) (Alpha)
3636
- [Cloud Resource Manager](#google-cloud-resource-manager-alpha) (Alpha)
37-
- [Cloud Speech](#google-cloud-speech-alpha) (Alpha)
38-
- [Cloud Trace](#google-cloud-trace-alpha) (Alpha)
39-
- [Cloud Video Intelligence](#google-cloud-video-intelligence-alpha) (Alpha)
37+
- [Cloud Speech](google-cloud-speech) (Alpha)
38+
- [Cloud Trace](google-cloud-trace) (Alpha)
39+
- [Cloud Video Intelligence](google-cloud-video-intelligence) (Alpha)
4040

41-
> Note: This client is a work-in-progress, and may occasionally
41+
> Note: google-cloud-java is a work-in-progress, and may occasionally
4242
> make backwards-incompatible changes.
4343
44-
## Where did `gcloud-java` go?
45-
46-
`gcloud-java` lives on under a new name, `google-cloud`.
47-
Your code will behave the same, simply change your dependency (see [Quickstart](./README.md#quickstart)).
48-
4944
Quickstart
5045
----------
5146

@@ -228,40 +223,6 @@ Credentials in the following locations (in order):
228223
4. Google Cloud Shell built-in credentials
229224
5. Google Compute Engine built-in credentials
230225
231-
Google Cloud Language (Beta)
232-
----------------------
233-
- [API Documentation][language-api]
234-
- [Official Documentation][cloud-language-docs]
235-
236-
### Preview
237-
238-
Here is a code snippet showing a simple usage example of LanguageServiceClient. The example assumes that either Application Default
239-
Credentials or a valid API key are available. (See [Authentication section](#authentication) for more information)
240-
```java
241-
try (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
242-
Document document = Document.newBuilder().build();
243-
AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document);
244-
}
245-
```
246-
247-
Google Cloud Vision (Beta)
248-
----------------
249-
250-
- [API Documentation][vision-api]
251-
- [Official Documentation][cloud-vision-docs]
252-
253-
### Preview
254-
255-
Here is a code snippet showing a simple usage example of ImageAnnotatorClient.
256-
The example assumes that either Application Default Credentials or a valid API key
257-
are available. (See [Authentication section](#authentication) for more information)
258-
```java
259-
try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
260-
List<AnnotateImageRequest> requests = new ArrayList<>();
261-
BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
262-
}
263-
```
264-
265226
Google Cloud Compute (Alpha)
266227
----------------------
267228
@@ -327,25 +288,6 @@ if (operation.getErrors() == null) {
327288
}
328289
```
329290
330-
Google Cloud Data Loss Prevention (Alpha)
331-
----------------
332-
333-
- [API Documentation][dlp-api]
334-
- [Official Documentation][cloud-dlp-docs]
335-
336-
#### Preview
337-
338-
Here is a code snippet showing a simple usage example of DlpServiceClient. The example assumes that either default application
339-
credentials or a valid API key are available. (See [Authentication section](#authentication) for more information)
340-
341-
```java
342-
try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) {
343-
InspectConfig inspectConfig = InspectConfig.newBuilder().build();
344-
List<ContentItem> items = new ArrayList<>();
345-
InspectContentResponse response = dlpServiceClient.inspectContent(inspectConfig, items);
346-
}
347-
```
348-
349291
Google Cloud DNS (Alpha)
350292
----------------------
351293
- [API Documentation][dns-api]
@@ -411,39 +353,6 @@ ChangeRequestInfo changeRequest = changeBuilder.build();
411353
zone.applyChangeRequest(changeRequest);
412354
```
413355
414-
Stackdriver Error Reporting (Alpha)
415-
----------------------
416-
- [API Documentation][errorreporting-api]
417-
- [Official Documentation][cloud-errorreporting-docs]
418-
419-
### Preview
420-
421-
Here is a code snippet showing a simple usage example of ErrorGroupServiceClient.
422-
Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
423-
```java
424-
try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
425-
GroupName groupName = GroupName.create("[PROJECT]", "[GROUP]");
426-
ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
427-
}
428-
```
429-
430-
Stackdriver Monitoring (Alpha)
431-
----------------------
432-
- [API Documentation][monitoring-api]
433-
- [Official Documentation][cloud-monitoring-docs]
434-
435-
### Preview
436-
437-
Here is a code snippet showing a simple usage example of MetricServiceClient.
438-
Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
439-
```java
440-
try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
441-
MonitoredResourceDescriptorName name =
442-
MonitoredResourceDescriptorName.create("[PROJECT]", "[MONITORED_RESOURCE_DESCRIPTOR]");
443-
MonitoredResourceDescriptor response = metricServiceClient.getMonitoredResourceDescriptor(name);
444-
}
445-
```
446-
447356
Google Cloud Resource Manager (Alpha)
448357
----------------------
449358
@@ -479,79 +388,6 @@ while (projectIterator.hasNext()) {
479388
}
480389
```
481390
482-
Google Cloud Speech (Alpha)
483-
----------------
484-
485-
- [API Documentation][speech-api]
486-
- [Official Documentation][cloud-speech-docs]
487-
488-
### Preview
489-
490-
Here is a code snippet showing a simple usage example of SpeechClient. The example assumes that either Application Default
491-
Credentials or a valid API key are available. (See [Authentication section](#authentication) for more information)
492-
Note that you must provide a uri to a FLAC audio file to run this.
493-
494-
```java
495-
try (SpeechClient speechClient = SpeechClient.create()) {
496-
RecognitionConfig.AudioEncoding encoding = RecognitionConfig.AudioEncoding.FLAC;
497-
int sampleRateHertz = 44100;
498-
String languageCode = "en-US";
499-
RecognitionConfig config = RecognitionConfig.newBuilder()
500-
.setEncoding(encoding)
501-
.setSampleRateHertz(sampleRateHertz)
502-
.setLanguageCode(languageCode)
503-
.build();
504-
String uri = "gs://bucket_name/file_name.flac";
505-
RecognitionAudio audio = RecognitionAudio.newBuilder()
506-
.setUri(uri)
507-
.build();
508-
RecognizeResponse response = speechClient.recognize(config, audio);
509-
}
510-
```
511-
512-
Google Cloud Trace (Alpha)
513-
----------------
514-
515-
- [API Documentation][trace-api]
516-
- [Official Documentation][cloud-trace-docs]
517-
518-
### Preview
519-
520-
Here is a code snippet showing a simple usage example of TraceServiceClient. The example assumes that either Application Default
521-
Credentials or a valid API key are available.
522-
Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
523-
```java
524-
try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
525-
String projectId = "";
526-
Traces traces = Traces.newBuilder().build();
527-
traceServiceClient.patchTraces(projectId, traces);
528-
}
529-
```
530-
531-
Google Cloud Video Intelligence (Alpha)
532-
----------------
533-
534-
- [Official Documentation][cloud-video-intelligence-docs]
535-
536-
### Preview
537-
538-
Here is a code snippet showing a simple usage example of TraceServiceClient. The example assumes that either Application Default
539-
Credentials or a valid API key are available.
540-
Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
541-
```java
542-
try (VideoIntelligenceServiceClient videoIntelligenceServiceClient =
543-
VideoIntelligenceServiceClient.create()) {
544-
String inputUri = "";
545-
List<Feature> features = new ArrayList<>();
546-
VideoContext videoContext = VideoContext.newBuilder().build();
547-
String outputUri = "";
548-
String locationId = "";
549-
AnnotateVideoResponse response =
550-
videoIntelligenceServiceClient.annotateVideoAsync(
551-
inputUri, features, videoContext, outputUri, locationId).get();
552-
}
553-
```
554-
555391
Troubleshooting
556392
---------------
557393
@@ -675,32 +511,9 @@ Apache 2.0 - See [LICENSE] for more information.
675511
[cloud-dns-docs]: https://cloud.google.com/dns/docs/
676512
[cloud-dns-activation]: https://console.cloud.google.com/start/api?id=dns
677513
678-
[errorreporting-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/errorreporting/spi/v1beta1/package-summary.html
679-
[cloud-errorreporting-docs]: https://cloud.google.com/error-reporting/docs/
680-
681-
[language-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/language/spi/v1/package-summary.html
682-
[cloud-language-docs]: https://cloud.google.com/language/docs/
683-
684-
[monitoring-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/monitoring/spi/v3/package-summary.html
685-
[cloud-monitoring-docs]: https://cloud.google.com/monitoring/docs/
686-
687-
[speech-api]: http://googlecloudplatform.github.io/google-cloud-java/0.15.0/apidocs/?com/google/cloud/speech/spi/v1/package-summary.html
688-
[cloud-speech-docs]: https://cloud.google.com/speech/docs/
689-
690-
[trace-api]: http://googlecloudplatform.github.io/google-cloud-java/0.15.0/apidocs/?com/google/cloud/trace/spi/v1/package-summary.html
691-
[cloud-trace-docs]: https://cloud.google.com/trace/docs/
692-
693-
[vision-api]: http://googlecloudplatform.github.io/google-cloud-java/0.15.0/apidocs/?com/google/cloud/vision/spi/v1/package-summary.html
694-
[cloud-vision-docs]: https://cloud.google.com/vision/docs/
695-
696-
[cloud-video-intelligence-docs]: https://cloud.google.com/video-intelligence/docs/
697-
698514
[resourcemanager-api]:https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/resourcemanager/package-summary.html
699515
[cloud-resourcemanager-docs]:https://cloud.google.com/resource-manager/docs/
700516
701517
[cloud-compute]: https://cloud.google.com/compute/
702518
[cloud-compute-docs]: https://cloud.google.com/compute/docs/
703519
[compute-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/compute/package-summary.html
704-
705-
[cloud-dlp-docs]: https://cloud.google.com/dlp/docs/
706-
[dlp-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/dlp/package-summary.html

trunk/google-cloud-dlp/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Java idiomatic client for [Google Cloud Data Loss Prevention](https://cloud.goog
1010
[![Dependency Status](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772/badge.svg?style=flat)](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772)
1111

1212
- [Homepage](https://googlecloudplatform.github.io/google-cloud-java/)
13-
- [API Documentation][dlp-api]
13+
- [Client Library Documentation][dlp-client-lib-docs]
1414

1515
> Note: This client is a work-in-progress, and may occasionally
1616
> make backwards-incompatible changes.
@@ -46,7 +46,7 @@ About Google Cloud Data Loss Prevention
4646
Google [Cloud Data Loss Prevention API][cloud-dlp-docs]
4747
provides programmatic access to a powerful detection engine for personally identifiable information and other privacy-sensitive data in unstructured data streams, like text blocks and images.
4848

49-
See the ``google-cloud`` API [Data Loss Prevention API documentation][dlp-api]
49+
See the [Data Loss Prevention client library docs][dlp-client-lib-docs]
5050
to learn how to use this Cloud Data Loss Prevention API Client Library.
5151

5252
Getting Started
@@ -99,4 +99,4 @@ Apache 2.0 - See [LICENSE] for more information.
9999
[LICENSE]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/LICENSE
100100
[cloud-platform]: https://cloud.google.com/
101101
[cloud-dlp-docs]: https://cloud.google.com/dlp/docs/
102-
[dlp-api]: http://googlecloudplatform.github.io/google-cloud-java/0.20.2/apidocs/com/google/cloud/dlp/v2beta1/package-summary.html
102+
[dlp-client-lib-docs]: http://googlecloudplatform.github.io/google-cloud-java/latest/apidocs/index.html?com/google/cloud/dlp/v2beta1/package-summary.html

trunk/google-cloud-errorreporting/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Java idiomatic client for [Stackdriver Error Reporting](https://cloud.google.com
1010
[![Dependency Status](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772/badge.svg?style=flat)](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772)
1111

1212
- [Homepage](https://googlecloudplatform.github.io/google-cloud-java/)
13-
- [API Documentation][error-reporting-api]
13+
- [Client Library Documentation][error-reporting-client-lib-docs]
1414

1515
> Note: This client is a work-in-progress, and may occasionally
1616
> make backwards-incompatible changes.
@@ -47,7 +47,7 @@ The Stackdriver Error Reporting API provides:
4747
- A simple endpoint to report errors from your running service.
4848
- Read access to error groups and their associated errors.
4949

50-
See the ``google-cloud`` API [error reporting documentation][error-reporting-api] to learn how to use this client library.
50+
See the [Error Reporting client library docs][error-reporting-client-lib-docs] to learn how to use this client library.
5151

5252
Getting Started
5353
---------------
@@ -57,7 +57,6 @@ You will need a [Google Developers Console](https://console.developers.google.co
5757
#### Installation and setup
5858
You'll need to obtain the `google-cloud-errorreporting` library. See the [Quickstart](#quickstart) section to add `google-cloud-errorreporting` as a dependency in your code.
5959

60-
6160
Troubleshooting
6261
---------------
6362

@@ -98,4 +97,4 @@ Apache 2.0 - See [LICENSE] for more information.
9897
[code-of-conduct]:https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/CODE_OF_CONDUCT.md#contributor-code-of-conduct
9998
[LICENSE]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/LICENSE
10099
[cloud-platform]: https://cloud.google.com/
101-
[error-reporting-api]: http://googlecloudplatform.github.io/google-cloud-java/0.20.1/apidocs/com/google/cloud/errorreporting/v1beta1/package-summary.html
100+
[error-reporting-client-lib-docs]: http://googlecloudplatform.github.io/google-cloud-java/latest/apidocs/index.html?com/google/cloud/errorreporting/v1beta1/package-summary.html

trunk/google-cloud-language/README.md

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Java idiomatic client for [Google Cloud Natural Language](https://cloud.google.c
1010
[![Dependency Status](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772/badge.svg?style=flat)](https://www.versioneye.com/user/projects/58fe4c8d6ac171426c414772)
1111

1212
- [Homepage](https://googlecloudplatform.github.io/google-cloud-java/)
13-
- [API Documentation][language-api]
13+
- [Client Library Documentation][language-client-lib-docs]
1414

1515
> Note: This client is a work-in-progress, and may occasionally
1616
> make backwards-incompatible changes.
@@ -44,7 +44,7 @@ About Google Cloud Natural Language
4444

4545
Google [Cloud Natural Language API][cloud-language-docs] provides natural language understanding technologies to developers, including sentiment analysis, entity analysis, and syntax analysis. This API is part of the larger Cloud Machine Learning API family.
4646

47-
See the ``google-cloud`` API [natural language documentation][language-api] to learn how to use this Cloud Natural Language API Client Library.
47+
See the [Natural Language client library docs][language-client-lib-docs] to learn how to use this Cloud Natural Language API Client Library.
4848

4949
Getting Started
5050
---------------
@@ -54,9 +54,38 @@ You will need a [Google Developers Console](https://console.developers.google.co
5454
#### Installation and setup
5555
You'll need to obtain the `google-cloud-language` library. See the [Quickstart](#quickstart) section to add `google-cloud-language` as a dependency in your code.
5656

57+
#### Analyzing sentiment
58+
With Cloud Natural Language, you can analyze the sentiment of text. Add the following imports at the top of your file:
59+
60+
``` java
61+
import com.google.cloud.language.v1.LanguageServiceClient;
62+
import com.google.cloud.language.v1.Document;
63+
import com.google.cloud.language.v1.Document.Type;
64+
import com.google.cloud.language.v1.Sentiment;
65+
```
66+
Then, to analyze the sentiment of some text, use the following code:
67+
68+
``` java
69+
// Instantiates a client
70+
LanguageServiceClient language = LanguageServiceClient.create();
71+
72+
// The text to analyze
73+
String[] texts = {"I love this!", "I hate this!"};
74+
for (String text : texts) {
75+
Document doc = Document.newBuilder().setContent(text).setType(Type.PLAIN_TEXT).build();
76+
// Detects the sentiment of the text
77+
Sentiment sentiment = language.analyzeSentiment(doc).getDocumentSentiment();
78+
79+
System.out.printf("Text: \"%s\"%n", text);
80+
System.out.printf(
81+
"Sentiment: score = %s, magnitude = %s%n",
82+
sentiment.getScore(), sentiment.getMagnitude());
83+
}
84+
```
85+
5786
#### Complete source code
5887

59-
In [AnalyzeSentiment.java](../google-cloud-examples/src/main/java/com/google/cloud/examples/language/snippets/AnalyzeSentiment.java) we put a quick start example, which shows how you can use Google Natural Language API to automatically analyze a sentiment of a text message.
88+
In [AnalyzeSentiment.java](../google-cloud-examples/src/main/java/com/google/cloud/examples/language/snippets/AnalyzeSentiment.java) we put the code shown above into a complete program.
6089

6190
Troubleshooting
6291
---------------
@@ -99,4 +128,4 @@ Apache 2.0 - See [LICENSE] for more information.
99128
[LICENSE]: https://github.com/GoogleCloudPlatform/google-cloud-java/blob/master/LICENSE
100129
[cloud-platform]: https://cloud.google.com/
101130
[cloud-language-docs]: https://cloud.google.com/natural-language/docs
102-
[language-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/language/spi/v1/package-summary.html
131+
[language-client-lib-docs]: https://googlecloudplatform.github.io/google-cloud-java/latest/apidocs/index.html?com/google/cloud/language/v1beta2/package-summary.html

0 commit comments

Comments
 (0)