public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (PublisherGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new PublisherFileDescriptorSupplier()) .addMethod(getCreateTopicMethodHelper()) .addMethod(getUpdateTopicMethodHelper()) .addMethod(getPublishMethodHelper()) .addMethod(getGetTopicMethodHelper()) .addMethod(getListTopicsMethodHelper()) .addMethod(getListTopicSubscriptionsMethodHelper()) .addMethod(getListTopicSnapshotsMethodHelper()) .addMethod(getDeleteTopicMethodHelper()) .build(); } } } return result; } }
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateTopicMethodHelper(),
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse> getListTopicsMethod() { return getListTopicsMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic> getGetTopicMethod() { return getGetTopicMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicSubscriptionsRequest, com.google.pubsub.v1.ListTopicSubscriptionsResponse> getListTopicSubscriptionsMethod() { return getListTopicSubscriptionsMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse> getPublishMethod() { return getPublishMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic> getCreateTopicMethod() { return getCreateTopicMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty> getDeleteTopicMethod() { return getDeleteTopicMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic> getUpdateTopicMethod() { return getUpdateTopicMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicSnapshotsRequest, com.google.pubsub.v1.ListTopicSnapshotsResponse> getListTopicSnapshotsMethod() { return getListTopicSnapshotsMethodHelper(); }
/** Return a stub for making a publish request with a timeout. */ private PublisherBlockingStub publisherStub() throws IOException { if (cachedPublisherStub == null) { cachedPublisherStub = PublisherGrpc.newBlockingStub(newChannel()); } return cachedPublisherStub.withDeadlineAfter(timeoutSec, TimeUnit.SECONDS); }
@java.lang.Override public io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( METHOD_CREATE_TOPIC,
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicsRequest, com.google.pubsub.v1.ListTopicsResponse> getListTopicsMethod() { return getListTopicsMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.GetTopicRequest, com.google.pubsub.v1.Topic> getGetTopicMethod() { return getGetTopicMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicSubscriptionsRequest, com.google.pubsub.v1.ListTopicSubscriptionsResponse> getListTopicSubscriptionsMethod() { return getListTopicSubscriptionsMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.PublishRequest, com.google.pubsub.v1.PublishResponse> getPublishMethod() { return getPublishMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor<com.google.pubsub.v1.Topic, com.google.pubsub.v1.Topic> getCreateTopicMethod() { return getCreateTopicMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.DeleteTopicRequest, com.google.protobuf.Empty> getDeleteTopicMethod() { return getDeleteTopicMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.UpdateTopicRequest, com.google.pubsub.v1.Topic> getUpdateTopicMethod() { return getUpdateTopicMethodHelper(); }
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901") public static io.grpc.MethodDescriptor< com.google.pubsub.v1.ListTopicSnapshotsRequest, com.google.pubsub.v1.ListTopicSnapshotsResponse> getListTopicSnapshotsMethod() { return getListTopicSnapshotsMethodHelper(); }