public static final class HomepageServiceGrpc.HomepageServiceFutureStub extends AbstractFutureStub<HomepageServiceGrpc.HomepageServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service HomepageService.
Service to support an API for a store's homepage.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractFutureStub >
HomepageServiceGrpc.HomepageServiceFutureStub
Inherited Members
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractFutureStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
build(Channel channel, CallOptions callOptions)
protected HomepageServiceGrpc.HomepageServiceFutureStub build(Channel channel, CallOptions callOptions)
Parameters |
Name |
Description |
channel |
io.grpc.Channel
|
callOptions |
io.grpc.CallOptions
|
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
public ListenableFuture<Homepage> claimHomepage(ClaimHomepageRequest request)
Claims a store's homepage. Executing this method requires admin access.
If the homepage is already claimed, this will recheck the
verification (unless the merchant is exempted from claiming, which also
exempts from verification) and return a successful response. If ownership
can no longer be verified, it will return an error, but it won't clear the
claim. In case of failure, a canonical error message will be returned:
- PERMISSION_DENIED: user doesn't have the necessary permissions on this
MC account;
- FAILED_PRECONDITION:
- The account is not a Merchant Center account;
- MC account doesn't have a homepage;
- claiming failed (in this case the error message will contain more
details).
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Homepage> |
|
public ListenableFuture<Homepage> getHomepage(GetHomepageRequest request)
Retrieves a store's homepage.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Homepage> |
|
public ListenableFuture<Homepage> unclaimHomepage(UnclaimHomepageRequest request)
Unclaims a store's homepage. Executing this method requires admin access.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Homepage> |
|
public ListenableFuture<Homepage> updateHomepage(UpdateHomepageRequest request)
Updates a store's homepage. Executing this method requires admin access.
Returns |
Type |
Description |
com.google.common.util.concurrent.ListenableFuture<Homepage> |
|