Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.location;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
*
*
* An abstract interface that provides location-related information for
* a service. Service-specific metadata is provided through the
* [Location.metadata][google.cloud.location.Location.metadata] field.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: google/cloud/location/locations.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class LocationsGrpc {
private LocationsGrpc() {}
public static final String SERVICE_NAME = "google.cloud.location.Locations";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.location.ListLocationsRequest,
com.google.cloud.location.ListLocationsResponse>
getListLocationsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListLocations",
requestType = com.google.cloud.location.ListLocationsRequest.class,
responseType = com.google.cloud.location.ListLocationsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.location.ListLocationsRequest,
com.google.cloud.location.ListLocationsResponse>
getListLocationsMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.location.ListLocationsRequest,
com.google.cloud.location.ListLocationsResponse>
getListLocationsMethod;
if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
synchronized (LocationsGrpc.class) {
if ((getListLocationsMethod = LocationsGrpc.getListLocationsMethod) == null) {
LocationsGrpc.getListLocationsMethod =
getListLocationsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListLocations"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.location.ListLocationsRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.location.ListLocationsResponse.getDefaultInstance()))
.setSchemaDescriptor(new LocationsMethodDescriptorSupplier("ListLocations"))
.build();
}
}
}
return getListLocationsMethod;
}
private static volatile io.grpc.MethodDescriptor<
com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
getGetLocationMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetLocation",
requestType = com.google.cloud.location.GetLocationRequest.class,
responseType = com.google.cloud.location.Location.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
getGetLocationMethod() {
io.grpc.MethodDescriptor<
com.google.cloud.location.GetLocationRequest, com.google.cloud.location.Location>
getGetLocationMethod;
if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
synchronized (LocationsGrpc.class) {
if ((getGetLocationMethod = LocationsGrpc.getGetLocationMethod) == null) {
LocationsGrpc.getGetLocationMethod =
getGetLocationMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLocation"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.location.GetLocationRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.cloud.location.Location.getDefaultInstance()))
.setSchemaDescriptor(new LocationsMethodDescriptorSupplier("GetLocation"))
.build();
}
}
}
return getGetLocationMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static LocationsStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public LocationsStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LocationsStub(channel, callOptions);
}
};
return LocationsStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static LocationsBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public LocationsBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LocationsBlockingStub(channel, callOptions);
}
};
return LocationsBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static LocationsFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public LocationsFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LocationsFutureStub(channel, callOptions);
}
};
return LocationsFutureStub.newStub(factory, channel);
}
/**
*
*
*
* An abstract interface that provides location-related information for
* a service. Service-specific metadata is provided through the
* [Location.metadata][google.cloud.location.Location.metadata] field.
*
*/
public abstract static class LocationsImplBase implements io.grpc.BindableService {
/**
*
*
*
* Lists information about the supported locations for this service.
*
*/
public void getLocation(
com.google.cloud.location.GetLocationRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetLocationMethod(), responseObserver);
}
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getListLocationsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.location.ListLocationsRequest,
com.google.cloud.location.ListLocationsResponse>(
this, METHODID_LIST_LOCATIONS)))
.addMethod(
getGetLocationMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.location.GetLocationRequest,
com.google.cloud.location.Location>(this, METHODID_GET_LOCATION)))
.build();
}
}
/**
*
*
*
* An abstract interface that provides location-related information for
* a service. Service-specific metadata is provided through the
* [Location.metadata][google.cloud.location.Location.metadata] field.
*
*/
public static final class LocationsStub extends io.grpc.stub.AbstractAsyncStub {
private LocationsStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LocationsStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LocationsStub(channel, callOptions);
}
/**
*
*
*
* Lists information about the supported locations for this service.
*
* An abstract interface that provides location-related information for
* a service. Service-specific metadata is provided through the
* [Location.metadata][google.cloud.location.Location.metadata] field.
*
*/
public static final class LocationsBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private LocationsBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LocationsBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LocationsBlockingStub(channel, callOptions);
}
/**
*
*
*
* Lists information about the supported locations for this service.
*
* An abstract interface that provides location-related information for
* a service. Service-specific metadata is provided through the
* [Location.metadata][google.cloud.location.Location.metadata] field.
*
*/
public static final class LocationsFutureStub
extends io.grpc.stub.AbstractFutureStub {
private LocationsFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LocationsFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LocationsFutureStub(channel, callOptions);
}
/**
*
*
*
* Lists information about the supported locations for this service.
*