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.
* Service for streaming access logs from Envoy to an access log server.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.48.1)",
comments = "Source: envoy/service/accesslog/v3/als.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AccessLogServiceGrpc {
private AccessLogServiceGrpc() {}
public static final String SERVICE_NAME = "envoy.service.accesslog.v3.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.v3.StreamAccessLogsMessage.class,
responseType = io.envoyproxy.envoy.service.accesslog.v3.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(SERVICE_NAME, "StreamAccessLogs"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.accesslog.v3.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) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AccessLogServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccessLogServiceStub(channel, callOptions);
}
};
return AccessLogServiceStub.newStub(factory, 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) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AccessLogServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccessLogServiceBlockingStub(channel, callOptions);
}
};
return AccessLogServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AccessLogServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AccessLogServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AccessLogServiceFutureStub(channel, callOptions);
}
};
return AccessLogServiceFutureStub.newStub(factory, 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 io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamAccessLogsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getStreamAccessLogsMethod(),
io.grpc.stub.ServerCalls.asyncClientStreamingCall(
new MethodHandlers<
io.envoyproxy.envoy.service.accesslog.v3.StreamAccessLogsMessage,
io.envoyproxy.envoy.service.accesslog.v3.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.AbstractAsyncStub {
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.
*