Skip to content

Commit 1d4c3f7

Browse files
authored
---
yaml --- r: 8041 b: refs/heads/tswast-patch-1 c: 49a8346 h: refs/heads/master i: 8039: e24b724
1 parent 3b5bc62 commit 1d4c3f7

2 files changed

Lines changed: 149 additions & 12 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ refs/tags/v0.18.0: 9d193c4c4b9d1c6f21515dd8e50836b9194ec9bb
5757
refs/tags/v0.19.0: e67b56e4d8dad5f9a7b38c9b2107c23c828f2ed5
5858
refs/tags/v0.20.0: 839f7fb7156535146aa1cb2c5aadd8d375d854e8
5959
refs/tags/v0.20.1: 370471f437f1f4f68a11e068df5cd6bf39edb1fa
60-
refs/heads/tswast-patch-1: 003a91b21ce22f4d14447814f115d5fef591d298
60+
refs/heads/tswast-patch-1: 49a83464b32d8264709ffbeffe868124c1715b7e
6161
refs/heads/pubsub-streaming-pull: 19262b752ee874eb2ca3b950eb2aef44d5a5267b

branches/tswast-patch-1/README.md

Lines changed: 148 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,25 @@ Java idiomatic client for [Google Cloud Platform][cloud-platform] services.
1414

1515
This client supports the following Google Cloud Platform services at a [Beta](#versioning) quality level:
1616

17-
- [Google Cloud BigQuery](#google-cloud-bigquery-beta) (Beta)
17+
- [BigQuery](#google-cloud-bigquery-beta) (Beta)
1818
- [Stackdriver Logging](#stackdriver-logging-beta) (Beta - Not working on App Engine Standard)
19-
- [Google Cloud Datastore](#google-cloud-datastore-beta) (Beta)
20-
- [Google Cloud Storage](#google-cloud-storage-beta) (Beta)
19+
- [Cloud Datastore](#google-cloud-datastore-beta) (Beta)
20+
- [Cloud Storage](#google-cloud-storage-beta) (Beta)
2121
- [Cloud Spanner](#cloud-spanner-beta) (Beta)
22-
- [Google Cloud Translation](#google-translation-beta) (Beta)
23-
- Cloud Vision (Beta)
24-
- Cloud Natural Language (Beta)
22+
- [Cloud Translation](#google-translation-beta) (Beta)
2523

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

28-
- [Google Cloud Compute](#google-cloud-compute-alpha) (Alpha)
29-
- [Google Cloud DNS](#google-cloud-dns-alpha) (Alpha)
30-
- [Google Cloud Pub/Sub](#google-cloud-pubsub-alpha) (Alpha - Not working on App Engine Standard)
31-
- [Google Cloud Resource Manager](#google-cloud-resource-manager-alpha) (Alpha)
26+
- [Cloud Compute](#google-cloud-compute-alpha) (Alpha)
27+
- [Cloud DNS](#google-cloud-dns-alpha) (Alpha)
28+
- [Stackdriver Error Reporting](#stackdriver-error-reporting-alpha) (Alpha)
29+
- [Stackdriver Monitoring](#stackdriver-monitoring-alpha) (Alpha)
30+
- [Cloud Natural Language](#google-cloud-language-alpha) (Alpha)
31+
- [Cloud Pub/Sub](#google-cloud-pubsub-alpha) (Alpha - Not working on App Engine Standard)
32+
- [Cloud Resource Manager](#google-cloud-resource-manager-alpha) (Alpha)
33+
- [Cloud Speech](#google-cloud-speech-alpha) (Alpha)
34+
- [Cloud Trace](#google-cloud-trace-alpha) (Alpha)
35+
- [Cloud Vision](#google-cloud-vision-alpha) (Alpha)
3236

3337
> Note: This client is a work-in-progress, and may occasionally
3438
> make backwards-incompatible changes.
@@ -573,9 +577,57 @@ ChangeRequestInfo changeRequest = changeBuilder.build();
573577
zone.applyChangeRequest(changeRequest);
574578
```
575579
576-
Google Cloud Pub/Sub (Alpha)
580+
Stackdriver Error Reporting (Alpha)
581+
----------------------
582+
- [API Documentation][errorreporting-api]
583+
- [Official Documentation][cloud-errorreporting-docs]
584+
585+
### Preview
586+
587+
Here is a code snippet showing a simple usage example of ErrorGroupServiceClient.
588+
Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
589+
```java
590+
try (ErrorGroupServiceClient errorGroupServiceClient = ErrorGroupServiceClient.create()) {
591+
GroupName groupName = GroupName.create("[PROJECT]", "[GROUP]");
592+
ErrorGroup response = errorGroupServiceClient.getGroup(groupName);
593+
}
594+
```
595+
596+
Google Cloud Language (Alpha)
597+
----------------------
598+
- [API Documentation][language-api]
599+
- [Official Documentation][cloud-language-docs]
600+
601+
### Preview
602+
603+
Here is a code snippet showing a simple usage example of LanguageServiceClient. The example assumes that either default application
604+
credentials or a valid api key are available. (See [Authentication section](#authentication) for more information)
605+
```java
606+
try (LanguageServiceClient languageServiceClient = LanguageServiceClient.create()) {
607+
Document document = Document.newBuilder().build();
608+
AnalyzeSentimentResponse response = languageServiceClient.analyzeSentiment(document);
609+
}
610+
```
611+
612+
Stackdriver Monitoring (Alpha)
577613
----------------------
614+
- [API Documentation][monitoring-api]
615+
- [Official Documentation][cloud-monitoring-docs]
616+
617+
### Preview
618+
619+
Here is a code snippet showing a simple usage example of MetricServiceClient.
620+
Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
621+
```java
622+
try (MetricServiceClient metricServiceClient = MetricServiceClient.create()) {
623+
MonitoredResourceDescriptorName name =
624+
MonitoredResourceDescriptorName.create("[PROJECT]", "[MONITORED_RESOURCE_DESCRIPTOR]");
625+
MonitoredResourceDescriptor response = metricServiceClient.getMonitoredResourceDescriptor(name);
626+
}
627+
```
578628
629+
Google Cloud Pub/Sub (Alpha)
630+
----------------------
579631
- [API Documentation][pubsub-api]
580632
- [Official Documentation][cloud-pubsub-docs]
581633
@@ -683,6 +735,73 @@ Translation translation = translate.translate(
683735
System.out.printf("Hola %s%n", translation.getTranslatedText());
684736
```
685737
738+
Google Cloud Speech (Alpha)
739+
----------------
740+
741+
- [API Documentation][speech-api]
742+
- [Official Documentation][cloud-speech-docs]
743+
744+
### Preview
745+
746+
Here is a code snippet showing a simple usage example of SpeechClient. The example assumes that either default application
747+
credentials or a valid api key are available. (See [Authentication section](#authentication) for more information)
748+
Note that you must provide a uri to a FLAC audio file to run this.
749+
750+
```java
751+
try (SpeechClient speechClient = SpeechClient.create()) {
752+
RecognitionConfig.AudioEncoding encoding = RecognitionConfig.AudioEncoding.FLAC;
753+
int sampleRateHertz = 44100;
754+
String languageCode = "en-US";
755+
RecognitionConfig config = RecognitionConfig.newBuilder()
756+
.setEncoding(encoding)
757+
.setSampleRateHertz(sampleRateHertz)
758+
.setLanguageCode(languageCode)
759+
.build();
760+
String uri = "gs://bucket_name/file_name.flac";
761+
RecognitionAudio audio = RecognitionAudio.newBuilder()
762+
.setUri(uri)
763+
.build();
764+
RecognizeResponse response = speechClient.recognize(config, audio);
765+
}
766+
```
767+
768+
Google Cloud Trace (Alpha)
769+
----------------
770+
771+
- [API Documentation][trace-api]
772+
- [Official Documentation][cloud-trace-docs]
773+
774+
### Preview
775+
776+
Here is a code snippet showing a simple usage example of TraceServiceClient. The example assumes that either default application
777+
credentials or a valid api key are available.
778+
Note that you must [supply credentials](#authentication) and a project ID if running this snippet elsewhere.
779+
```java
780+
try (TraceServiceClient traceServiceClient = TraceServiceClient.create()) {
781+
String projectId = "";
782+
Traces traces = Traces.newBuilder().build();
783+
traceServiceClient.patchTraces(projectId, traces);
784+
}
785+
```
786+
787+
Google Cloud Vision (Alpha)
788+
----------------
789+
790+
- [API Documentation][vision-api]
791+
- [Official Documentation][cloud-vision-docs]
792+
793+
### Preview
794+
795+
Here is a code snippet showing a simple usage example of ImageAnnotatorClient.
796+
The example assumes that either default application credentials or a valid api key
797+
are available. (See [Authentication section](#authentication) for more information)
798+
```java
799+
try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
800+
List<AnnotateImageRequest> requests = new ArrayList<>();
801+
BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
802+
}
803+
```
804+
686805
Troubleshooting
687806
---------------
688807
@@ -751,6 +870,24 @@ Apache 2.0 - See [LICENSE] for more information.
751870
[cloud-dns-docs]: https://cloud.google.com/dns/docs
752871
[cloud-dns-activation]: https://console.cloud.google.com/start/api?id=dns
753872
873+
[errorreporting-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/errorreporting/spi/v1beta1/package-summary.html
874+
[cloud-errorreporting-docs]: https://cloud.google.com/error-reporting/docs
875+
876+
[language-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/language/spi/v1/package-summary.html
877+
[cloud-language-docs]: https://cloud.google.com/language/docs
878+
879+
[monitoring-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/monitoring/spi/v3/package-summary.html
880+
[cloud-monitoring-docs]: https://cloud.google.com/monitoring/docs
881+
882+
[speech-api]: http://googlecloudplatform.github.io/google-cloud-java/0.15.0/apidocs/?com/google/cloud/speech/spi/v1/package-summary.html
883+
[cloud-speech-docs]: https://cloud.google.com/speech/docs
884+
885+
[trace-api]: http://googlecloudplatform.github.io/google-cloud-java/0.15.0/apidocs/?com/google/cloud/trace/spi/v1/package-summary.html
886+
[cloud-trace-docs]: https://cloud.google.com/trace/docs
887+
888+
[vision-api]: http://googlecloudplatform.github.io/google-cloud-java/0.15.0/apidocs/?com/google/cloud/vision/spi/v1/package-summary.html
889+
[cloud-vision-docs]: https://cloud.google.com/vision/docs
890+
754891
[logging-api]: https://googlecloudplatform.github.io/google-cloud-java/apidocs/index.html?com/google/cloud/logging/package-summary.html
755892
[stackdriver-logging-docs]: https://cloud.google.com/logging/docs
756893
[stackdriver-logging-activation]: https://console.cloud.google.com/start/api?id=logging

0 commit comments

Comments
 (0)