# Class UsageServiceGrpc (0.16.0)

0.16.0 (latest) 0.14.0 0.11.0 0.10.0 0.8.0 0.6.0 0.5.0 0.4.0 0.3.0 0.1.0

    public final class UsageServiceGrpc

Provides access to historical and forecasted usage data.

## Inheritance

[java.lang.Object](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html) \> UsageServiceGrpc

## Inherited Members

[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) [Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) [Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) [Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) [Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) [Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) [Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) [Object.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--) [Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) [Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) [Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-)

## Static Fields

### SERVICE_NAME

    public static final String SERVICE_NAME

| **Field Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` |   |

## Static Methods

### bindService(UsageServiceGrpc.AsyncService service)

    public static final ServerServiceDefinition bindService(UsageServiceGrpc.AsyncService service)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `service` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.UsageServiceGrpc.AsyncService` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.ServerServiceDefinition` |   |

### getExportForecastsMethod()

    public static MethodDescriptor<ExportForecastsRequest,Operation> getExportForecastsMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.ExportForecastsRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### getExportReservationsUsageMethod()

    public static MethodDescriptor<ExportReservationsUsageRequest,Operation> getExportReservationsUsageMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.ExportReservationsUsageRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### getExportUsageHistoriesMethod()

    public static MethodDescriptor<ExportUsageHistoriesRequest,Operation> getExportUsageHistoriesMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.ExportUsageHistoriesRequest,https://docs.cloud.google.com/java/docs/reference/gax/latest/com.google.longrunning.Operation.html>` |   |

### getQueryForecastsMethod()

    public static MethodDescriptor<QueryForecastsRequest,QueryForecastsResponse> getQueryForecastsMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.QueryForecastsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.QueryForecastsResponse>` |   |

### getQueryReservationsMethod()

    public static MethodDescriptor<QueryReservationsRequest,QueryReservationsResponse> getQueryReservationsMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.QueryReservationsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.QueryReservationsResponse>` |   |

### getQueryUsageHistoriesMethod()

    public static MethodDescriptor<QueryUsageHistoriesRequest,QueryUsageHistoriesResponse> getQueryUsageHistoriesMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.QueryUsageHistoriesRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.QueryUsageHistoriesResponse>` |   |

### getServiceDescriptor()

    public static ServiceDescriptor getServiceDescriptor()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.ServiceDescriptor` |   |

### newBlockingStub(Channel channel)

    public static UsageServiceGrpc.UsageServiceBlockingStub newBlockingStub(Channel channel)

Creates a new blocking-style stub that supports unary and streaming output calls on the service

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `io.grpc.Channel` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.UsageServiceGrpc.UsageServiceBlockingStub` |   |

### newBlockingV2Stub(Channel channel)

    public static UsageServiceGrpc.UsageServiceBlockingV2Stub newBlockingV2Stub(Channel channel)

Creates a new blocking-style stub that supports all types of calls on the service

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `io.grpc.Channel` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.UsageServiceGrpc.UsageServiceBlockingV2Stub` |   |

### newFutureStub(Channel channel)

    public static UsageServiceGrpc.UsageServiceFutureStub newFutureStub(Channel channel)

Creates a new ListenableFuture-style stub that supports unary calls on the service

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `io.grpc.Channel` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.UsageServiceGrpc.UsageServiceFutureStub` |   |

### newStub(Channel channel)

    public static UsageServiceGrpc.UsageServiceStub newStub(Channel channel)

Creates a new async stub that supports all call types for the service

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `channel` | `io.grpc.Channel` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/com.google.cloud.capacityplanner.v1beta.UsageServiceGrpc.UsageServiceStub` |   |