Skip to content

Commit 9148401

Browse files
Add getter docs for service objects
Fixes #2115.
1 parent 0c89651 commit 9148401

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

google-cloud-core/src/main/java/com/google/cloud/ServiceOptions.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,10 @@ protected static String getServiceAccountProjectId() {
420420
}
421421

422422

423+
/**
424+
* Returns a Service object for the current service. For instance, when using Google Cloud
425+
* Storage, it returns a {@link com.google.cloud.storage.Storage} object.
426+
*/
423427
@SuppressWarnings("unchecked")
424428
public ServiceT getService() {
425429
if (service == null) {
@@ -429,6 +433,10 @@ public ServiceT getService() {
429433
}
430434

431435

436+
/**
437+
* Returns a Service RPC object for the current service. For instance, when using Google Cloud
438+
* Storage, it returns a {@link com.google.cloud.storage.spi.StorageRpc} object.
439+
*/
432440
@SuppressWarnings("unchecked")
433441
public ServiceRpc getRpc() {
434442
if (rpc == null) {

0 commit comments

Comments
 (0)