Skip to content

Commit 1b054fa

Browse files
committed
Merge pull request #317 from garrettjonesgoogle/pubsub-alpha
Initial GAX submission - generated classes only
2 parents ec10ca6 + e0ee077 commit 1b054fa

96 files changed

Lines changed: 41356 additions & 27 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

gcloud-java-examples/src/main/java/com/google/gcloud/examples/StorageExample.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ CopyRequest parse(String... args) {
376376
if (args.length != 4) {
377377
throw new IllegalArgumentException();
378378
}
379-
return CopyRequest.of(args[0], args[1], BlobInfo.builder(args[2], args[3]).build());
379+
return CopyRequest.of(args[0], args[1], BlobId.of(args[2], args[3]));
380380
}
381381

382382
@Override
@@ -544,11 +544,14 @@ public static void main(String... args) throws Exception {
544544
StorageOptions.Builder optionsBuilder =
545545
StorageOptions.builder().retryParams(RetryParams.getDefaultInstance());
546546
StorageAction action;
547+
String actionName;
547548
if (args.length >= 2 && !ACTIONS.containsKey(args[0])) {
549+
actionName = args[1];
548550
optionsBuilder.projectId(args[0]);
549551
action = ACTIONS.get(args[1]);
550552
args = Arrays.copyOfRange(args, 2, args.length);
551553
} else {
554+
actionName = args[0];
552555
action = ACTIONS.get(args[0]);
553556
args = Arrays.copyOfRange(args, 1, args.length);
554557
}
@@ -562,7 +565,7 @@ public static void main(String... args) throws Exception {
562565
try {
563566
request = action.parse(args);
564567
} catch (IllegalArgumentException ex) {
565-
System.out.println("Invalid input for action '" + args[1] + "'");
568+
System.out.println("Invalid input for action '" + actionName + "'");
566569
System.out.println("Expected: " + action.params());
567570
return;
568571
} catch (Exception ex) {

gcloud-java-gax/README.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
Google Cloud Java Client -- GAX
2+
=========================================
3+
4+
This module provides common functionality required by service-specific modules of this library.
5+
6+
[![Build Status](https://travis-ci.org/GoogleCloudPlatform/gcloud-java.svg?branch=master)](https://travis-ci.org/GoogleCloudPlatform/gcloud-java)
7+
[![Coverage Status](https://coveralls.io/repos/GoogleCloudPlatform/gcloud-java/badge.svg?branch=master)](https://coveralls.io/r/GoogleCloudPlatform/gcloud-java?branch=master)
8+
[![Maven](https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-gax.svg)](https://img.shields.io/maven-central/v/com.google.gcloud/gcloud-java-gax.svg)
9+
10+
- [Homepage] (https://googlecloudplatform.github.io/gcloud-java/)
11+
- [API Documentation] (http://googlecloudplatform.github.io/gcloud-java/apidocs/index.html?com/google/gcloud/package-summary.html)
12+
13+
Quickstart
14+
----------
15+
Add this to your pom.xml file
16+
```xml
17+
<dependency>
18+
<groupId>com.google.gcloud</groupId>
19+
<artifactId>gcloud-java-gax</artifactId>
20+
<version>0.0.10</version>
21+
</dependency>
22+
```
23+
24+
Java Versions
25+
-------------
26+
27+
Java 7 or above is required for using this client.
28+
29+
Contributing
30+
------------
31+
32+
Contributions to this library are always welcome and highly encouraged.
33+
34+
See [CONTRIBUTING] for more information on how to get started.
35+
36+
Versioning
37+
----------
38+
39+
This library follows [Semantic Versioning] (http://semver.org/).
40+
41+
It is currently in major version zero (``0.y.z``), which means that anything
42+
may change at any time and the public API should not be considered
43+
stable.
44+
45+
License
46+
-------
47+
48+
Apache 2.0 - See [LICENSE] for more information.
49+
50+
51+
[CONTRIBUTING]:https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/CONTRIBUTING.md
52+
[LICENSE]: https://github.com/GoogleCloudPlatform/gcloud-java/blob/master/LICENSE
53+
[cloud-platform]: https://cloud.google.com/

gcloud-java-gax/generated/src/main/java/com/google/api/AnnotationsProto.java

Lines changed: 222 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)