# Class PublisherGrpc (1.151.0)

1.151.0 (latest) 1.150.1 1.149.0 1.148.0 1.147.0 1.145.0 1.143.1 1.142.0 1.141.5 1.140.2 1.139.4 1.138.0 1.137.1 1.136.1 1.135.0 1.134.2 1.133.1 1.132.2 1.131.0 1.130.0 1.129.6 1.127.3 1.126.6 1.125.13 1.123.18 1.122.2 1.121.1 1.120.24 1.119.1 1.118.0 1.117.0 1.116.4 1.115.5

    public final class PublisherGrpc

The service that an application uses to manipulate topics, and to send
messages to a topic.

## Inheritance

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

## 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(PublisherGrpc.AsyncService service)

    public static final ServerServiceDefinition bindService(PublisherGrpc.AsyncService service)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `service` | `https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.PublisherGrpc.AsyncService` |

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

### getCreateTopicMethod()

    public static MethodDescriptor<Topic,Topic> getCreateTopicMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.Topic,https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.Topic>` |   |

### getDeleteTopicMethod()

    public static MethodDescriptor<DeleteTopicRequest,Empty> getDeleteTopicMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.DeleteTopicRequest,https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Empty.html>` |   |

### getDetachSubscriptionMethod()

    public static MethodDescriptor<DetachSubscriptionRequest,DetachSubscriptionResponse> getDetachSubscriptionMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.DetachSubscriptionRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.DetachSubscriptionResponse>` |   |

### getGetTopicMethod()

    public static MethodDescriptor<GetTopicRequest,Topic> getGetTopicMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.GetTopicRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.Topic>` |   |

### getListTopicSnapshotsMethod()

    public static MethodDescriptor<ListTopicSnapshotsRequest,ListTopicSnapshotsResponse> getListTopicSnapshotsMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.ListTopicSnapshotsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.ListTopicSnapshotsResponse>` |   |

### getListTopicSubscriptionsMethod()

    public static MethodDescriptor<ListTopicSubscriptionsRequest,ListTopicSubscriptionsResponse> getListTopicSubscriptionsMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.ListTopicSubscriptionsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.ListTopicSubscriptionsResponse>` |   |

### getListTopicsMethod()

    public static MethodDescriptor<ListTopicsRequest,ListTopicsResponse> getListTopicsMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.ListTopicsRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.ListTopicsResponse>` |   |

### getPublishMethod()

    public static MethodDescriptor<PublishRequest,PublishResponse> getPublishMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.PublishRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.PublishResponse>` |   |

### getServiceDescriptor()

    public static ServiceDescriptor getServiceDescriptor()

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

### getUpdateTopicMethod()

    public static MethodDescriptor<UpdateTopicRequest,Topic> getUpdateTopicMethod()

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `io.grpc.MethodDescriptor<https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.UpdateTopicRequest,https://docs.cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/com.google.pubsub.v1.Topic>` |   |

### newBlockingStub(Channel channel)

    public static PublisherGrpc.PublisherBlockingStub 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-pubsub/latest/com.google.pubsub.v1.PublisherGrpc.PublisherBlockingStub` |   |

### newBlockingV2Stub(Channel channel)

    public static PublisherGrpc.PublisherBlockingV2Stub 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-pubsub/latest/com.google.pubsub.v1.PublisherGrpc.PublisherBlockingV2Stub` |   |

### newFutureStub(Channel channel)

    public static PublisherGrpc.PublisherFutureStub 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-pubsub/latest/com.google.pubsub.v1.PublisherGrpc.PublisherFutureStub` |   |

### newStub(Channel channel)

    public static PublisherGrpc.PublisherStub 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-pubsub/latest/com.google.pubsub.v1.PublisherGrpc.PublisherStub` |   |