![JAR search and dependency download from the Maven repository](/logo.png)
io.envoyproxy.envoy.service.accesslog.v3alpha.AccessLogServiceGrpc Maven / Gradle / Ivy
package io.envoyproxy.envoy.service.accesslog.v3alpha;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
/**
*
* Service for streaming access logs from Envoy to an access log server.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.22.1)",
comments = "Source: envoy/service/accesslog/v3alpha/als.proto")
public final class AccessLogServiceGrpc {
private AccessLogServiceGrpc() {}
public static final String SERVICE_NAME = "envoy.service.accesslog.v3alpha.AccessLogService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getStreamAccessLogsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "StreamAccessLogs",
requestType = io.envoyproxy.envoy.service.accesslog.v3alpha.StreamAccessLogsMessage.class,
responseType = io.envoyproxy.envoy.service.accesslog.v3alpha.StreamAccessLogsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
public static io.grpc.MethodDescriptor getStreamAccessLogsMethod() {
io.grpc.MethodDescriptor getStreamAccessLogsMethod;
if ((getStreamAccessLogsMethod = AccessLogServiceGrpc.getStreamAccessLogsMethod) == null) {
synchronized (AccessLogServiceGrpc.class) {
if ((getStreamAccessLogsMethod = AccessLogServiceGrpc.getStreamAccessLogsMethod) == null) {
AccessLogServiceGrpc.getStreamAccessLogsMethod = getStreamAccessLogsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
.setFullMethodName(generateFullMethodName(
"envoy.service.accesslog.v3alpha.AccessLogService", "StreamAccessLogs"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.accesslog.v3alpha.StreamAccessLogsMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.accesslog.v3alpha.StreamAccessLogsResponse.getDefaultInstance()))
.setSchemaDescriptor(new AccessLogServiceMethodDescriptorSupplier("StreamAccessLogs"))
.build();
}
}
}
return getStreamAccessLogsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AccessLogServiceStub newStub(io.grpc.Channel channel) {
return new AccessLogServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AccessLogServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new AccessLogServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AccessLogServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new AccessLogServiceFutureStub(channel);
}
/**
*
* Service for streaming access logs from Envoy to an access log server.
*
*/
public static abstract class AccessLogServiceImplBase implements io.grpc.BindableService {
/**
*
* Envoy will connect and send StreamAccessLogsMessage messages forever. It does not expect any
* response to be sent as nothing would be done in the case of failure. The server should
* disconnect if it expects Envoy to reconnect. In the future we may decide to add a different
* API for "critical" access logs in which Envoy will buffer access logs for some period of time
* until it gets an ACK so it could then retry. This API is designed for high throughput with the
* expectation that it might be lossy.
*
*/
public io.grpc.stub.StreamObserver streamAccessLogs(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getStreamAccessLogsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getStreamAccessLogsMethod(),
asyncClientStreamingCall(
new MethodHandlers<
io.envoyproxy.envoy.service.accesslog.v3alpha.StreamAccessLogsMessage,
io.envoyproxy.envoy.service.accesslog.v3alpha.StreamAccessLogsResponse>(
this, METHODID_STREAM_ACCESS_LOGS)))
.build();
}
}
/**
*
* Service for streaming access logs from Envoy to an access log server.
*
*/
public static final class AccessLogServiceStub extends io.grpc.stub.AbstractStub {
private AccessLogServiceStub(io.grpc.Channel channel) {
super(channel);
}
private AccessLogServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AccessLogServiceStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AccessLogServiceStub(channel, callOptions);
}
/**
*
* Envoy will connect and send StreamAccessLogsMessage messages forever. It does not expect any
* response to be sent as nothing would be done in the case of failure. The server should
* disconnect if it expects Envoy to reconnect. In the future we may decide to add a different
* API for "critical" access logs in which Envoy will buffer access logs for some period of time
* until it gets an ACK so it could then retry. This API is designed for high throughput with the
* expectation that it might be lossy.
*
*/
public io.grpc.stub.StreamObserver streamAccessLogs(
io.grpc.stub.StreamObserver responseObserver) {
return asyncClientStreamingCall(
getChannel().newCall(getStreamAccessLogsMethod(), getCallOptions()), responseObserver);
}
}
/**
*
* Service for streaming access logs from Envoy to an access log server.
*
*/
public static final class AccessLogServiceBlockingStub extends io.grpc.stub.AbstractStub {
private AccessLogServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private AccessLogServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AccessLogServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AccessLogServiceBlockingStub(channel, callOptions);
}
}
/**
*
* Service for streaming access logs from Envoy to an access log server.
*
*/
public static final class AccessLogServiceFutureStub extends io.grpc.stub.AbstractStub {
private AccessLogServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
private AccessLogServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AccessLogServiceFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AccessLogServiceFutureStub(channel, callOptions);
}
}
private static final int METHODID_STREAM_ACCESS_LOGS = 0;
private static final class MethodHandlers implements
io.grpc.stub.ServerCalls.UnaryMethod,
io.grpc.stub.ServerCalls.ServerStreamingMethod,
io.grpc.stub.ServerCalls.ClientStreamingMethod,
io.grpc.stub.ServerCalls.BidiStreamingMethod {
private final AccessLogServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(AccessLogServiceImplBase serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
case METHODID_STREAM_ACCESS_LOGS:
return (io.grpc.stub.StreamObserver) serviceImpl.streamAccessLogs(
(io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
private static abstract class AccessLogServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AccessLogServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.envoyproxy.envoy.service.accesslog.v3alpha.AlsProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("AccessLogService");
}
}
private static final class AccessLogServiceFileDescriptorSupplier
extends AccessLogServiceBaseDescriptorSupplier {
AccessLogServiceFileDescriptorSupplier() {}
}
private static final class AccessLogServiceMethodDescriptorSupplier
extends AccessLogServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
AccessLogServiceMethodDescriptorSupplier(String methodName) {
this.methodName = methodName;
}
@java.lang.Override
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
return getServiceDescriptor().findMethodByName(methodName);
}
}
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
io.grpc.ServiceDescriptor result = serviceDescriptor;
if (result == null) {
synchronized (AccessLogServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AccessLogServiceFileDescriptorSupplier())
.addMethod(getStreamAccessLogsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy