Skip to content

Commit 374963a

Browse files
committed
Update [vald sha: 504dbe3f82684f0e4159be64ce828d3de1b56335]
1 parent f113ffd commit 374963a

73 files changed

Lines changed: 2492 additions & 74 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

VALD_SHA

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b74aba6e66aa5b22ed62ff0ddc141563851ec7e2
1+
504dbe3f82684f0e4159be64ce828d3de1b56335

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ apply plugin: 'build.buf'
2323

2424
group = "org.vdaas.vald"
2525
archivesBaseName = "vald-client-java"
26-
version = "1.7.10"
26+
version = "1.7.10.Rev1"
2727
description = "a client library for Vald (https://github.com/vdaas/vald)."
2828

2929
def isDevBuild

src/main/java/org/vdaas/vald/api/v1/agent/core/AgentGrpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* </pre>
99
*/
1010
@javax.annotation.Generated(
11-
value = "by gRPC proto compiler (version 1.60.0)",
11+
value = "by gRPC proto compiler (version 1.61.1)",
1212
comments = "Source: v1/agent/core/agent.proto")
1313
@io.grpc.stub.annotations.GrpcGenerated
1414
public final class AgentGrpc {

src/main/java/org/vdaas/vald/api/v1/agent/core/ValdAgent.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/org/vdaas/vald/api/v1/filter/egress/FilterGrpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* </pre>
99
*/
1010
@javax.annotation.Generated(
11-
value = "by gRPC proto compiler (version 1.60.0)",
11+
value = "by gRPC proto compiler (version 1.61.1)",
1212
comments = "Source: v1/filter/egress/egress_filter.proto")
1313
@io.grpc.stub.annotations.GrpcGenerated
1414
public final class FilterGrpc {

src/main/java/org/vdaas/vald/api/v1/filter/egress/ValdEgressFilter.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/java/org/vdaas/vald/api/v1/filter/ingress/FilterGrpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* </pre>
99
*/
1010
@javax.annotation.Generated(
11-
value = "by gRPC proto compiler (version 1.60.0)",
11+
value = "by gRPC proto compiler (version 1.61.1)",
1212
comments = "Source: v1/filter/ingress/ingress_filter.proto")
1313
@io.grpc.stub.annotations.GrpcGenerated
1414
public final class FilterGrpc {

src/main/java/org/vdaas/vald/api/v1/filter/ingress/ValdIngressFilter.java

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 323 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,323 @@
1+
package org.vdaas.vald.api.v1.mirror;
2+
3+
import static io.grpc.MethodDescriptor.generateFullMethodName;
4+
5+
/**
6+
* <pre>
7+
* Represent the mirror service.
8+
* </pre>
9+
*/
10+
@javax.annotation.Generated(
11+
value = "by gRPC proto compiler (version 1.61.1)",
12+
comments = "Source: v1/mirror/mirror.proto")
13+
@io.grpc.stub.annotations.GrpcGenerated
14+
public final class MirrorGrpc {
15+
16+
private MirrorGrpc() {}
17+
18+
public static final java.lang.String SERVICE_NAME = "mirror.v1.Mirror";
19+
20+
// Static method descriptors that strictly reflect the proto.
21+
private static volatile io.grpc.MethodDescriptor<org.vdaas.vald.api.v1.payload.Mirror.Targets,
22+
org.vdaas.vald.api.v1.payload.Mirror.Targets> getRegisterMethod;
23+
24+
@io.grpc.stub.annotations.RpcMethod(
25+
fullMethodName = SERVICE_NAME + '/' + "Register",
26+
requestType = org.vdaas.vald.api.v1.payload.Mirror.Targets.class,
27+
responseType = org.vdaas.vald.api.v1.payload.Mirror.Targets.class,
28+
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
29+
public static io.grpc.MethodDescriptor<org.vdaas.vald.api.v1.payload.Mirror.Targets,
30+
org.vdaas.vald.api.v1.payload.Mirror.Targets> getRegisterMethod() {
31+
io.grpc.MethodDescriptor<org.vdaas.vald.api.v1.payload.Mirror.Targets, org.vdaas.vald.api.v1.payload.Mirror.Targets> getRegisterMethod;
32+
if ((getRegisterMethod = MirrorGrpc.getRegisterMethod) == null) {
33+
synchronized (MirrorGrpc.class) {
34+
if ((getRegisterMethod = MirrorGrpc.getRegisterMethod) == null) {
35+
MirrorGrpc.getRegisterMethod = getRegisterMethod =
36+
io.grpc.MethodDescriptor.<org.vdaas.vald.api.v1.payload.Mirror.Targets, org.vdaas.vald.api.v1.payload.Mirror.Targets>newBuilder()
37+
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
38+
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Register"))
39+
.setSampledToLocalTracing(true)
40+
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
41+
org.vdaas.vald.api.v1.payload.Mirror.Targets.getDefaultInstance()))
42+
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
43+
org.vdaas.vald.api.v1.payload.Mirror.Targets.getDefaultInstance()))
44+
.setSchemaDescriptor(new MirrorMethodDescriptorSupplier("Register"))
45+
.build();
46+
}
47+
}
48+
}
49+
return getRegisterMethod;
50+
}
51+
52+
/**
53+
* Creates a new async stub that supports all call types for the service
54+
*/
55+
public static MirrorStub newStub(io.grpc.Channel channel) {
56+
io.grpc.stub.AbstractStub.StubFactory<MirrorStub> factory =
57+
new io.grpc.stub.AbstractStub.StubFactory<MirrorStub>() {
58+
@java.lang.Override
59+
public MirrorStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
60+
return new MirrorStub(channel, callOptions);
61+
}
62+
};
63+
return MirrorStub.newStub(factory, channel);
64+
}
65+
66+
/**
67+
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
68+
*/
69+
public static MirrorBlockingStub newBlockingStub(
70+
io.grpc.Channel channel) {
71+
io.grpc.stub.AbstractStub.StubFactory<MirrorBlockingStub> factory =
72+
new io.grpc.stub.AbstractStub.StubFactory<MirrorBlockingStub>() {
73+
@java.lang.Override
74+
public MirrorBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
75+
return new MirrorBlockingStub(channel, callOptions);
76+
}
77+
};
78+
return MirrorBlockingStub.newStub(factory, channel);
79+
}
80+
81+
/**
82+
* Creates a new ListenableFuture-style stub that supports unary calls on the service
83+
*/
84+
public static MirrorFutureStub newFutureStub(
85+
io.grpc.Channel channel) {
86+
io.grpc.stub.AbstractStub.StubFactory<MirrorFutureStub> factory =
87+
new io.grpc.stub.AbstractStub.StubFactory<MirrorFutureStub>() {
88+
@java.lang.Override
89+
public MirrorFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
90+
return new MirrorFutureStub(channel, callOptions);
91+
}
92+
};
93+
return MirrorFutureStub.newStub(factory, channel);
94+
}
95+
96+
/**
97+
* <pre>
98+
* Represent the mirror service.
99+
* </pre>
100+
*/
101+
public interface AsyncService {
102+
103+
/**
104+
* <pre>
105+
* Register is the RPC to register other mirror servers.
106+
* </pre>
107+
*/
108+
default void register(org.vdaas.vald.api.v1.payload.Mirror.Targets request,
109+
io.grpc.stub.StreamObserver<org.vdaas.vald.api.v1.payload.Mirror.Targets> responseObserver) {
110+
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRegisterMethod(), responseObserver);
111+
}
112+
}
113+
114+
/**
115+
* Base class for the server implementation of the service Mirror.
116+
* <pre>
117+
* Represent the mirror service.
118+
* </pre>
119+
*/
120+
public static abstract class MirrorImplBase
121+
implements io.grpc.BindableService, AsyncService {
122+
123+
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
124+
return MirrorGrpc.bindService(this);
125+
}
126+
}
127+
128+
/**
129+
* A stub to allow clients to do asynchronous rpc calls to service Mirror.
130+
* <pre>
131+
* Represent the mirror service.
132+
* </pre>
133+
*/
134+
public static final class MirrorStub
135+
extends io.grpc.stub.AbstractAsyncStub<MirrorStub> {
136+
private MirrorStub(
137+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
138+
super(channel, callOptions);
139+
}
140+
141+
@java.lang.Override
142+
protected MirrorStub build(
143+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
144+
return new MirrorStub(channel, callOptions);
145+
}
146+
147+
/**
148+
* <pre>
149+
* Register is the RPC to register other mirror servers.
150+
* </pre>
151+
*/
152+
public void register(org.vdaas.vald.api.v1.payload.Mirror.Targets request,
153+
io.grpc.stub.StreamObserver<org.vdaas.vald.api.v1.payload.Mirror.Targets> responseObserver) {
154+
io.grpc.stub.ClientCalls.asyncUnaryCall(
155+
getChannel().newCall(getRegisterMethod(), getCallOptions()), request, responseObserver);
156+
}
157+
}
158+
159+
/**
160+
* A stub to allow clients to do synchronous rpc calls to service Mirror.
161+
* <pre>
162+
* Represent the mirror service.
163+
* </pre>
164+
*/
165+
public static final class MirrorBlockingStub
166+
extends io.grpc.stub.AbstractBlockingStub<MirrorBlockingStub> {
167+
private MirrorBlockingStub(
168+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
169+
super(channel, callOptions);
170+
}
171+
172+
@java.lang.Override
173+
protected MirrorBlockingStub build(
174+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
175+
return new MirrorBlockingStub(channel, callOptions);
176+
}
177+
178+
/**
179+
* <pre>
180+
* Register is the RPC to register other mirror servers.
181+
* </pre>
182+
*/
183+
public org.vdaas.vald.api.v1.payload.Mirror.Targets register(org.vdaas.vald.api.v1.payload.Mirror.Targets request) {
184+
return io.grpc.stub.ClientCalls.blockingUnaryCall(
185+
getChannel(), getRegisterMethod(), getCallOptions(), request);
186+
}
187+
}
188+
189+
/**
190+
* A stub to allow clients to do ListenableFuture-style rpc calls to service Mirror.
191+
* <pre>
192+
* Represent the mirror service.
193+
* </pre>
194+
*/
195+
public static final class MirrorFutureStub
196+
extends io.grpc.stub.AbstractFutureStub<MirrorFutureStub> {
197+
private MirrorFutureStub(
198+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
199+
super(channel, callOptions);
200+
}
201+
202+
@java.lang.Override
203+
protected MirrorFutureStub build(
204+
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
205+
return new MirrorFutureStub(channel, callOptions);
206+
}
207+
208+
/**
209+
* <pre>
210+
* Register is the RPC to register other mirror servers.
211+
* </pre>
212+
*/
213+
public com.google.common.util.concurrent.ListenableFuture<org.vdaas.vald.api.v1.payload.Mirror.Targets> register(
214+
org.vdaas.vald.api.v1.payload.Mirror.Targets request) {
215+
return io.grpc.stub.ClientCalls.futureUnaryCall(
216+
getChannel().newCall(getRegisterMethod(), getCallOptions()), request);
217+
}
218+
}
219+
220+
private static final int METHODID_REGISTER = 0;
221+
222+
private static final class MethodHandlers<Req, Resp> implements
223+
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
224+
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
225+
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
226+
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
227+
private final AsyncService serviceImpl;
228+
private final int methodId;
229+
230+
MethodHandlers(AsyncService serviceImpl, int methodId) {
231+
this.serviceImpl = serviceImpl;
232+
this.methodId = methodId;
233+
}
234+
235+
@java.lang.Override
236+
@java.lang.SuppressWarnings("unchecked")
237+
public void invoke(Req request, io.grpc.stub.StreamObserver<Resp> responseObserver) {
238+
switch (methodId) {
239+
case METHODID_REGISTER:
240+
serviceImpl.register((org.vdaas.vald.api.v1.payload.Mirror.Targets) request,
241+
(io.grpc.stub.StreamObserver<org.vdaas.vald.api.v1.payload.Mirror.Targets>) responseObserver);
242+
break;
243+
default:
244+
throw new AssertionError();
245+
}
246+
}
247+
248+
@java.lang.Override
249+
@java.lang.SuppressWarnings("unchecked")
250+
public io.grpc.stub.StreamObserver<Req> invoke(
251+
io.grpc.stub.StreamObserver<Resp> responseObserver) {
252+
switch (methodId) {
253+
default:
254+
throw new AssertionError();
255+
}
256+
}
257+
}
258+
259+
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
260+
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
261+
.addMethod(
262+
getRegisterMethod(),
263+
io.grpc.stub.ServerCalls.asyncUnaryCall(
264+
new MethodHandlers<
265+
org.vdaas.vald.api.v1.payload.Mirror.Targets,
266+
org.vdaas.vald.api.v1.payload.Mirror.Targets>(
267+
service, METHODID_REGISTER)))
268+
.build();
269+
}
270+
271+
private static abstract class MirrorBaseDescriptorSupplier
272+
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
273+
MirrorBaseDescriptorSupplier() {}
274+
275+
@java.lang.Override
276+
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
277+
return org.vdaas.vald.api.v1.mirror.ValdMirror.getDescriptor();
278+
}
279+
280+
@java.lang.Override
281+
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
282+
return getFileDescriptor().findServiceByName("Mirror");
283+
}
284+
}
285+
286+
private static final class MirrorFileDescriptorSupplier
287+
extends MirrorBaseDescriptorSupplier {
288+
MirrorFileDescriptorSupplier() {}
289+
}
290+
291+
private static final class MirrorMethodDescriptorSupplier
292+
extends MirrorBaseDescriptorSupplier
293+
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
294+
private final java.lang.String methodName;
295+
296+
MirrorMethodDescriptorSupplier(java.lang.String methodName) {
297+
this.methodName = methodName;
298+
}
299+
300+
@java.lang.Override
301+
public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() {
302+
return getServiceDescriptor().findMethodByName(methodName);
303+
}
304+
}
305+
306+
private static volatile io.grpc.ServiceDescriptor serviceDescriptor;
307+
308+
public static io.grpc.ServiceDescriptor getServiceDescriptor() {
309+
io.grpc.ServiceDescriptor result = serviceDescriptor;
310+
if (result == null) {
311+
synchronized (MirrorGrpc.class) {
312+
result = serviceDescriptor;
313+
if (result == null) {
314+
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
315+
.setSchemaDescriptor(new MirrorFileDescriptorSupplier())
316+
.addMethod(getRegisterMethod())
317+
.build();
318+
}
319+
}
320+
}
321+
return result;
322+
}
323+
}

0 commit comments

Comments
 (0)