Initial commit

This commit is contained in:
fg-admin 2022-12-30 14:23:24 +03:00
commit 3d0050e58a
57 changed files with 51533 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@ -0,0 +1,5 @@
/bin/
/target/
.classpath
.project
.settings/

202
LICENSE Normal file
View File

@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
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
http://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.

3
README.md Normal file
View File

@ -0,0 +1,3 @@
# Proto
## Exec `go generate` to re-generate proto

31
generate.sh Executable file
View File

@ -0,0 +1,31 @@
#!/bin/bash
# Copyright 2022 Listware
INCLUDES="-I."
protoFiles="$(find ./ -iname \*.proto)"
rm -rf ./sdk/*
echo "Generating .pb.go files..."
protoc --proto_path=proto $INCLUDES \
--go_opt=paths=source_relative \
--go-grpc_opt=paths=source_relative \
--go_out=./sdk \
--go-grpc_out=./sdk \
$protoFiles
rm -rf ./java/*
echo "Generating .java files..."
# /usr/local/bin/protoc-gen-grpc-java: https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.9.1/protoc-gen-grpc-java-1.9.1-linux-x86_64.exe
protoc --proto_path=proto $INCLUDES \
--java_out=./java \
--grpc-java_out=./java \
--plugin=protoc-gen-grpc-java=/usr/local/bin/protoc-gen-grpc-java \
$protoFiles
echo "Done!"

5
go.mod Normal file
View File

@ -0,0 +1,5 @@
module git.fg-tech.ru/listware/proto
go 1.19
require google.golang.org/protobuf v1.28.1

8
go.sum Normal file
View File

@ -0,0 +1,8 @@
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175w=
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,506 @@
package org.listware.sdk.pbcmdb;
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;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.9.1)",
comments = "Source: pbcmdb/service.proto")
public final class EdgeServiceGrpc {
private EdgeServiceGrpc() {}
public static final String SERVICE_NAME = "org.listware.sdk.pbcmdb.EdgeService";
// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getCreateMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_CREATE = getCreateMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getCreateMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getCreateMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getCreateMethod;
if ((getCreateMethod = EdgeServiceGrpc.getCreateMethod) == null) {
synchronized (EdgeServiceGrpc.class) {
if ((getCreateMethod = EdgeServiceGrpc.getCreateMethod) == null) {
EdgeServiceGrpc.getCreateMethod = getCreateMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.EdgeService", "Create"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new EdgeServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getReadMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_READ = getReadMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getReadMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getReadMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getReadMethod;
if ((getReadMethod = EdgeServiceGrpc.getReadMethod) == null) {
synchronized (EdgeServiceGrpc.class) {
if ((getReadMethod = EdgeServiceGrpc.getReadMethod) == null) {
EdgeServiceGrpc.getReadMethod = getReadMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.EdgeService", "Read"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new EdgeServiceMethodDescriptorSupplier("Read"))
.build();
}
}
}
return getReadMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUpdateMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_UPDATE = getUpdateMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod;
if ((getUpdateMethod = EdgeServiceGrpc.getUpdateMethod) == null) {
synchronized (EdgeServiceGrpc.class) {
if ((getUpdateMethod = EdgeServiceGrpc.getUpdateMethod) == null) {
EdgeServiceGrpc.getUpdateMethod = getUpdateMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.EdgeService", "Update"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new EdgeServiceMethodDescriptorSupplier("Update"))
.build();
}
}
}
return getUpdateMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getRemoveMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_REMOVE = getRemoveMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod;
if ((getRemoveMethod = EdgeServiceGrpc.getRemoveMethod) == null) {
synchronized (EdgeServiceGrpc.class) {
if ((getRemoveMethod = EdgeServiceGrpc.getRemoveMethod) == null) {
EdgeServiceGrpc.getRemoveMethod = getRemoveMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.EdgeService", "Remove"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new EdgeServiceMethodDescriptorSupplier("Remove"))
.build();
}
}
}
return getRemoveMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static EdgeServiceStub newStub(io.grpc.Channel channel) {
return new EdgeServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static EdgeServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new EdgeServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static EdgeServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new EdgeServiceFutureStub(channel);
}
/**
*/
public static abstract class EdgeServiceImplBase implements io.grpc.BindableService {
/**
*/
public void create(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*/
public void read(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getReadMethod(), responseObserver);
}
/**
*/
public void update(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*/
public void remove(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getRemoveMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_CREATE)))
.addMethod(
getReadMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_READ)))
.addMethod(
getUpdateMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_UPDATE)))
.addMethod(
getRemoveMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_REMOVE)))
.build();
}
}
/**
*/
public static final class EdgeServiceStub extends io.grpc.stub.AbstractStub<EdgeServiceStub> {
private EdgeServiceStub(io.grpc.Channel channel) {
super(channel);
}
private EdgeServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected EdgeServiceStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new EdgeServiceStub(channel, callOptions);
}
/**
*/
public void create(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void read(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getReadMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void update(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void remove(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getRemoveMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class EdgeServiceBlockingStub extends io.grpc.stub.AbstractStub<EdgeServiceBlockingStub> {
private EdgeServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private EdgeServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected EdgeServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new EdgeServiceBlockingStub(channel, callOptions);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response create(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response read(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getReadMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response update(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response remove(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getRemoveMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class EdgeServiceFutureStub extends io.grpc.stub.AbstractStub<EdgeServiceFutureStub> {
private EdgeServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
private EdgeServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected EdgeServiceFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new EdgeServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> create(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> read(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getReadMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> update(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> remove(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getRemoveMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE = 0;
private static final int METHODID_READ = 1;
private static final int METHODID_UPDATE = 2;
private static final int METHODID_REMOVE = 3;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final EdgeServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(EdgeServiceImplBase 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<Resp> responseObserver) {
switch (methodId) {
case METHODID_CREATE:
serviceImpl.create((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_READ:
serviceImpl.read((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_REMOVE:
serviceImpl.remove((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static abstract class EdgeServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
EdgeServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.listware.sdk.pbcmdb.Service.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("EdgeService");
}
}
private static final class EdgeServiceFileDescriptorSupplier
extends EdgeServiceBaseDescriptorSupplier {
EdgeServiceFileDescriptorSupplier() {}
}
private static final class EdgeServiceMethodDescriptorSupplier
extends EdgeServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
EdgeServiceMethodDescriptorSupplier(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 (EdgeServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new EdgeServiceFileDescriptorSupplier())
.addMethod(getCreateMethod())
.addMethod(getReadMethod())
.addMethod(getUpdateMethod())
.addMethod(getRemoveMethod())
.build();
}
}
}
return result;
}
}

View File

@ -0,0 +1,506 @@
package org.listware.sdk.pbcmdb;
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;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.9.1)",
comments = "Source: pbcmdb/service.proto")
public final class LinkServiceGrpc {
private LinkServiceGrpc() {}
public static final String SERVICE_NAME = "org.listware.sdk.pbcmdb.LinkService";
// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getCreateMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_CREATE = getCreateMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getCreateMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getCreateMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getCreateMethod;
if ((getCreateMethod = LinkServiceGrpc.getCreateMethod) == null) {
synchronized (LinkServiceGrpc.class) {
if ((getCreateMethod = LinkServiceGrpc.getCreateMethod) == null) {
LinkServiceGrpc.getCreateMethod = getCreateMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.LinkService", "Create"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new LinkServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getReadMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_READ = getReadMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getReadMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getReadMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getReadMethod;
if ((getReadMethod = LinkServiceGrpc.getReadMethod) == null) {
synchronized (LinkServiceGrpc.class) {
if ((getReadMethod = LinkServiceGrpc.getReadMethod) == null) {
LinkServiceGrpc.getReadMethod = getReadMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.LinkService", "Read"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new LinkServiceMethodDescriptorSupplier("Read"))
.build();
}
}
}
return getReadMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUpdateMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_UPDATE = getUpdateMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod;
if ((getUpdateMethod = LinkServiceGrpc.getUpdateMethod) == null) {
synchronized (LinkServiceGrpc.class) {
if ((getUpdateMethod = LinkServiceGrpc.getUpdateMethod) == null) {
LinkServiceGrpc.getUpdateMethod = getUpdateMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.LinkService", "Update"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new LinkServiceMethodDescriptorSupplier("Update"))
.build();
}
}
}
return getUpdateMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getRemoveMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_REMOVE = getRemoveMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod;
if ((getRemoveMethod = LinkServiceGrpc.getRemoveMethod) == null) {
synchronized (LinkServiceGrpc.class) {
if ((getRemoveMethod = LinkServiceGrpc.getRemoveMethod) == null) {
LinkServiceGrpc.getRemoveMethod = getRemoveMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.LinkService", "Remove"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new LinkServiceMethodDescriptorSupplier("Remove"))
.build();
}
}
}
return getRemoveMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static LinkServiceStub newStub(io.grpc.Channel channel) {
return new LinkServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static LinkServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new LinkServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static LinkServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new LinkServiceFutureStub(channel);
}
/**
*/
public static abstract class LinkServiceImplBase implements io.grpc.BindableService {
/**
*/
public void create(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*/
public void read(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getReadMethod(), responseObserver);
}
/**
*/
public void update(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*/
public void remove(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getRemoveMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_CREATE)))
.addMethod(
getReadMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_READ)))
.addMethod(
getUpdateMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_UPDATE)))
.addMethod(
getRemoveMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_REMOVE)))
.build();
}
}
/**
*/
public static final class LinkServiceStub extends io.grpc.stub.AbstractStub<LinkServiceStub> {
private LinkServiceStub(io.grpc.Channel channel) {
super(channel);
}
private LinkServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LinkServiceStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new LinkServiceStub(channel, callOptions);
}
/**
*/
public void create(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void read(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getReadMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void update(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void remove(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getRemoveMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class LinkServiceBlockingStub extends io.grpc.stub.AbstractStub<LinkServiceBlockingStub> {
private LinkServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private LinkServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LinkServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new LinkServiceBlockingStub(channel, callOptions);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response create(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response read(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getReadMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response update(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response remove(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getRemoveMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class LinkServiceFutureStub extends io.grpc.stub.AbstractStub<LinkServiceFutureStub> {
private LinkServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
private LinkServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LinkServiceFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new LinkServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> create(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> read(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getReadMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> update(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> remove(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getRemoveMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE = 0;
private static final int METHODID_READ = 1;
private static final int METHODID_UPDATE = 2;
private static final int METHODID_REMOVE = 3;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final LinkServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(LinkServiceImplBase 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<Resp> responseObserver) {
switch (methodId) {
case METHODID_CREATE:
serviceImpl.create((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_READ:
serviceImpl.read((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_REMOVE:
serviceImpl.remove((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static abstract class LinkServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
LinkServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.listware.sdk.pbcmdb.Service.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("LinkService");
}
}
private static final class LinkServiceFileDescriptorSupplier
extends LinkServiceBaseDescriptorSupplier {
LinkServiceFileDescriptorSupplier() {}
}
private static final class LinkServiceMethodDescriptorSupplier
extends LinkServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
LinkServiceMethodDescriptorSupplier(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 (LinkServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new LinkServiceFileDescriptorSupplier())
.addMethod(getCreateMethod())
.addMethod(getReadMethod())
.addMethod(getUpdateMethod())
.addMethod(getRemoveMethod())
.build();
}
}
}
return result;
}
}

View File

@ -0,0 +1,506 @@
package org.listware.sdk.pbcmdb;
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;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.9.1)",
comments = "Source: pbcmdb/service.proto")
public final class ObjectServiceGrpc {
private ObjectServiceGrpc() {}
public static final String SERVICE_NAME = "org.listware.sdk.pbcmdb.ObjectService";
// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getCreateMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_CREATE = getCreateMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getCreateMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getCreateMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getCreateMethod;
if ((getCreateMethod = ObjectServiceGrpc.getCreateMethod) == null) {
synchronized (ObjectServiceGrpc.class) {
if ((getCreateMethod = ObjectServiceGrpc.getCreateMethod) == null) {
ObjectServiceGrpc.getCreateMethod = getCreateMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.ObjectService", "Create"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new ObjectServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getReadMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_READ = getReadMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getReadMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getReadMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getReadMethod;
if ((getReadMethod = ObjectServiceGrpc.getReadMethod) == null) {
synchronized (ObjectServiceGrpc.class) {
if ((getReadMethod = ObjectServiceGrpc.getReadMethod) == null) {
ObjectServiceGrpc.getReadMethod = getReadMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.ObjectService", "Read"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new ObjectServiceMethodDescriptorSupplier("Read"))
.build();
}
}
}
return getReadMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUpdateMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_UPDATE = getUpdateMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod;
if ((getUpdateMethod = ObjectServiceGrpc.getUpdateMethod) == null) {
synchronized (ObjectServiceGrpc.class) {
if ((getUpdateMethod = ObjectServiceGrpc.getUpdateMethod) == null) {
ObjectServiceGrpc.getUpdateMethod = getUpdateMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.ObjectService", "Update"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new ObjectServiceMethodDescriptorSupplier("Update"))
.build();
}
}
}
return getUpdateMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getRemoveMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_REMOVE = getRemoveMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod;
if ((getRemoveMethod = ObjectServiceGrpc.getRemoveMethod) == null) {
synchronized (ObjectServiceGrpc.class) {
if ((getRemoveMethod = ObjectServiceGrpc.getRemoveMethod) == null) {
ObjectServiceGrpc.getRemoveMethod = getRemoveMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.ObjectService", "Remove"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new ObjectServiceMethodDescriptorSupplier("Remove"))
.build();
}
}
}
return getRemoveMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static ObjectServiceStub newStub(io.grpc.Channel channel) {
return new ObjectServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ObjectServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new ObjectServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ObjectServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new ObjectServiceFutureStub(channel);
}
/**
*/
public static abstract class ObjectServiceImplBase implements io.grpc.BindableService {
/**
*/
public void create(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*/
public void read(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getReadMethod(), responseObserver);
}
/**
*/
public void update(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*/
public void remove(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getRemoveMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_CREATE)))
.addMethod(
getReadMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_READ)))
.addMethod(
getUpdateMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_UPDATE)))
.addMethod(
getRemoveMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_REMOVE)))
.build();
}
}
/**
*/
public static final class ObjectServiceStub extends io.grpc.stub.AbstractStub<ObjectServiceStub> {
private ObjectServiceStub(io.grpc.Channel channel) {
super(channel);
}
private ObjectServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ObjectServiceStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new ObjectServiceStub(channel, callOptions);
}
/**
*/
public void create(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void read(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getReadMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void update(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void remove(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getRemoveMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class ObjectServiceBlockingStub extends io.grpc.stub.AbstractStub<ObjectServiceBlockingStub> {
private ObjectServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private ObjectServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ObjectServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new ObjectServiceBlockingStub(channel, callOptions);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response create(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response read(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getReadMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response update(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response remove(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getRemoveMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class ObjectServiceFutureStub extends io.grpc.stub.AbstractStub<ObjectServiceFutureStub> {
private ObjectServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
private ObjectServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ObjectServiceFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new ObjectServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> create(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> read(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getReadMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> update(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> remove(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getRemoveMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE = 0;
private static final int METHODID_READ = 1;
private static final int METHODID_UPDATE = 2;
private static final int METHODID_REMOVE = 3;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final ObjectServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(ObjectServiceImplBase 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<Resp> responseObserver) {
switch (methodId) {
case METHODID_CREATE:
serviceImpl.create((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_READ:
serviceImpl.read((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_REMOVE:
serviceImpl.remove((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static abstract class ObjectServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ObjectServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.listware.sdk.pbcmdb.Service.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ObjectService");
}
}
private static final class ObjectServiceFileDescriptorSupplier
extends ObjectServiceBaseDescriptorSupplier {
ObjectServiceFileDescriptorSupplier() {}
}
private static final class ObjectServiceMethodDescriptorSupplier
extends ObjectServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
ObjectServiceMethodDescriptorSupplier(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 (ObjectServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ObjectServiceFileDescriptorSupplier())
.addMethod(getCreateMethod())
.addMethod(getReadMethod())
.addMethod(getUpdateMethod())
.addMethod(getRemoveMethod())
.build();
}
}
}
return result;
}
}

View File

@ -0,0 +1,91 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbcmdb/service.proto
package org.listware.sdk.pbcmdb;
public final class Service {
private Service() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\024pbcmdb/service.proto\022\027org.listware.sdk" +
".pbcmdb\032\023pbcmdb/pbcmdb.proto2\321\002\n\rVertexS" +
"ervice\022O\n\006Create\022 .org.listware.sdk.pbcm" +
"db.Request\032!.org.listware.sdk.pbcmdb.Res" +
"ponse\"\000\022M\n\004Read\022 .org.listware.sdk.pbcmd" +
"b.Request\032!.org.listware.sdk.pbcmdb.Resp" +
"onse\"\000\022O\n\006Update\022 .org.listware.sdk.pbcm" +
"db.Request\032!.org.listware.sdk.pbcmdb.Res" +
"ponse\"\000\022O\n\006Remove\022 .org.listware.sdk.pbc" +
"mdb.Request\032!.org.listware.sdk.pbcmdb.Re" +
"sponse\"\0002\317\002\n\013EdgeService\022O\n\006Create\022 .org" +
".listware.sdk.pbcmdb.Request\032!.org.listw" +
"are.sdk.pbcmdb.Response\"\000\022M\n\004Read\022 .org." +
"listware.sdk.pbcmdb.Request\032!.org.listwa" +
"re.sdk.pbcmdb.Response\"\000\022O\n\006Update\022 .org" +
".listware.sdk.pbcmdb.Request\032!.org.listw" +
"are.sdk.pbcmdb.Response\"\000\022O\n\006Remove\022 .or" +
"g.listware.sdk.pbcmdb.Request\032!.org.list" +
"ware.sdk.pbcmdb.Response\"\0002\321\002\n\rObjectSer" +
"vice\022O\n\006Create\022 .org.listware.sdk.pbcmdb" +
".Request\032!.org.listware.sdk.pbcmdb.Respo" +
"nse\"\000\022M\n\004Read\022 .org.listware.sdk.pbcmdb." +
"Request\032!.org.listware.sdk.pbcmdb.Respon" +
"se\"\000\022O\n\006Update\022 .org.listware.sdk.pbcmdb" +
".Request\032!.org.listware.sdk.pbcmdb.Respo" +
"nse\"\000\022O\n\006Remove\022 .org.listware.sdk.pbcmd" +
"b.Request\032!.org.listware.sdk.pbcmdb.Resp" +
"onse\"\0002\317\002\n\013TypeService\022O\n\006Create\022 .org.l" +
"istware.sdk.pbcmdb.Request\032!.org.listwar" +
"e.sdk.pbcmdb.Response\"\000\022M\n\004Read\022 .org.li" +
"stware.sdk.pbcmdb.Request\032!.org.listware" +
".sdk.pbcmdb.Response\"\000\022O\n\006Update\022 .org.l" +
"istware.sdk.pbcmdb.Request\032!.org.listwar" +
"e.sdk.pbcmdb.Response\"\000\022O\n\006Remove\022 .org." +
"listware.sdk.pbcmdb.Request\032!.org.listwa" +
"re.sdk.pbcmdb.Response\"\0002\317\002\n\013LinkService" +
"\022O\n\006Create\022 .org.listware.sdk.pbcmdb.Req" +
"uest\032!.org.listware.sdk.pbcmdb.Response\"" +
"\000\022M\n\004Read\022 .org.listware.sdk.pbcmdb.Requ" +
"est\032!.org.listware.sdk.pbcmdb.Response\"\000" +
"\022O\n\006Update\022 .org.listware.sdk.pbcmdb.Req" +
"uest\032!.org.listware.sdk.pbcmdb.Response\"" +
"\000\022O\n\006Remove\022 .org.listware.sdk.pbcmdb.Re" +
"quest\032!.org.listware.sdk.pbcmdb.Response" +
"\"\000BL\n\027org.listware.sdk.pbcmdbB\007ServiceZ(" +
"git.fg-tech.ru/listware/proto/sdk/pbcmdb" +
"b\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.listware.sdk.pbcmdb.Core.getDescriptor(),
}, assigner);
org.listware.sdk.pbcmdb.Core.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -0,0 +1,506 @@
package org.listware.sdk.pbcmdb;
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;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.9.1)",
comments = "Source: pbcmdb/service.proto")
public final class TypeServiceGrpc {
private TypeServiceGrpc() {}
public static final String SERVICE_NAME = "org.listware.sdk.pbcmdb.TypeService";
// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getCreateMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_CREATE = getCreateMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getCreateMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getCreateMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getCreateMethod;
if ((getCreateMethod = TypeServiceGrpc.getCreateMethod) == null) {
synchronized (TypeServiceGrpc.class) {
if ((getCreateMethod = TypeServiceGrpc.getCreateMethod) == null) {
TypeServiceGrpc.getCreateMethod = getCreateMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.TypeService", "Create"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new TypeServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getReadMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_READ = getReadMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getReadMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getReadMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getReadMethod;
if ((getReadMethod = TypeServiceGrpc.getReadMethod) == null) {
synchronized (TypeServiceGrpc.class) {
if ((getReadMethod = TypeServiceGrpc.getReadMethod) == null) {
TypeServiceGrpc.getReadMethod = getReadMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.TypeService", "Read"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new TypeServiceMethodDescriptorSupplier("Read"))
.build();
}
}
}
return getReadMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUpdateMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_UPDATE = getUpdateMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod;
if ((getUpdateMethod = TypeServiceGrpc.getUpdateMethod) == null) {
synchronized (TypeServiceGrpc.class) {
if ((getUpdateMethod = TypeServiceGrpc.getUpdateMethod) == null) {
TypeServiceGrpc.getUpdateMethod = getUpdateMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.TypeService", "Update"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new TypeServiceMethodDescriptorSupplier("Update"))
.build();
}
}
}
return getUpdateMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getRemoveMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_REMOVE = getRemoveMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod;
if ((getRemoveMethod = TypeServiceGrpc.getRemoveMethod) == null) {
synchronized (TypeServiceGrpc.class) {
if ((getRemoveMethod = TypeServiceGrpc.getRemoveMethod) == null) {
TypeServiceGrpc.getRemoveMethod = getRemoveMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.TypeService", "Remove"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new TypeServiceMethodDescriptorSupplier("Remove"))
.build();
}
}
}
return getRemoveMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static TypeServiceStub newStub(io.grpc.Channel channel) {
return new TypeServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static TypeServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new TypeServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TypeServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new TypeServiceFutureStub(channel);
}
/**
*/
public static abstract class TypeServiceImplBase implements io.grpc.BindableService {
/**
*/
public void create(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*/
public void read(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getReadMethod(), responseObserver);
}
/**
*/
public void update(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*/
public void remove(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getRemoveMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_CREATE)))
.addMethod(
getReadMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_READ)))
.addMethod(
getUpdateMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_UPDATE)))
.addMethod(
getRemoveMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_REMOVE)))
.build();
}
}
/**
*/
public static final class TypeServiceStub extends io.grpc.stub.AbstractStub<TypeServiceStub> {
private TypeServiceStub(io.grpc.Channel channel) {
super(channel);
}
private TypeServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TypeServiceStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new TypeServiceStub(channel, callOptions);
}
/**
*/
public void create(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void read(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getReadMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void update(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void remove(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getRemoveMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class TypeServiceBlockingStub extends io.grpc.stub.AbstractStub<TypeServiceBlockingStub> {
private TypeServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private TypeServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TypeServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new TypeServiceBlockingStub(channel, callOptions);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response create(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response read(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getReadMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response update(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response remove(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getRemoveMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class TypeServiceFutureStub extends io.grpc.stub.AbstractStub<TypeServiceFutureStub> {
private TypeServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
private TypeServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TypeServiceFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new TypeServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> create(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> read(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getReadMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> update(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> remove(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getRemoveMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE = 0;
private static final int METHODID_READ = 1;
private static final int METHODID_UPDATE = 2;
private static final int METHODID_REMOVE = 3;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final TypeServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(TypeServiceImplBase 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<Resp> responseObserver) {
switch (methodId) {
case METHODID_CREATE:
serviceImpl.create((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_READ:
serviceImpl.read((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_REMOVE:
serviceImpl.remove((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static abstract class TypeServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
TypeServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.listware.sdk.pbcmdb.Service.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("TypeService");
}
}
private static final class TypeServiceFileDescriptorSupplier
extends TypeServiceBaseDescriptorSupplier {
TypeServiceFileDescriptorSupplier() {}
}
private static final class TypeServiceMethodDescriptorSupplier
extends TypeServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
TypeServiceMethodDescriptorSupplier(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 (TypeServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new TypeServiceFileDescriptorSupplier())
.addMethod(getCreateMethod())
.addMethod(getReadMethod())
.addMethod(getUpdateMethod())
.addMethod(getRemoveMethod())
.build();
}
}
}
return result;
}
}

View File

@ -0,0 +1,506 @@
package org.listware.sdk.pbcmdb;
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;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.9.1)",
comments = "Source: pbcmdb/service.proto")
public final class VertexServiceGrpc {
private VertexServiceGrpc() {}
public static final String SERVICE_NAME = "org.listware.sdk.pbcmdb.VertexService";
// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getCreateMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_CREATE = getCreateMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getCreateMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getCreateMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getCreateMethod;
if ((getCreateMethod = VertexServiceGrpc.getCreateMethod) == null) {
synchronized (VertexServiceGrpc.class) {
if ((getCreateMethod = VertexServiceGrpc.getCreateMethod) == null) {
VertexServiceGrpc.getCreateMethod = getCreateMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.VertexService", "Create"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new VertexServiceMethodDescriptorSupplier("Create"))
.build();
}
}
}
return getCreateMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getReadMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_READ = getReadMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getReadMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getReadMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getReadMethod;
if ((getReadMethod = VertexServiceGrpc.getReadMethod) == null) {
synchronized (VertexServiceGrpc.class) {
if ((getReadMethod = VertexServiceGrpc.getReadMethod) == null) {
VertexServiceGrpc.getReadMethod = getReadMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.VertexService", "Read"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new VertexServiceMethodDescriptorSupplier("Read"))
.build();
}
}
}
return getReadMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getUpdateMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_UPDATE = getUpdateMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getUpdateMethod;
if ((getUpdateMethod = VertexServiceGrpc.getUpdateMethod) == null) {
synchronized (VertexServiceGrpc.class) {
if ((getUpdateMethod = VertexServiceGrpc.getUpdateMethod) == null) {
VertexServiceGrpc.getUpdateMethod = getUpdateMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.VertexService", "Update"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new VertexServiceMethodDescriptorSupplier("Update"))
.build();
}
}
}
return getUpdateMethod;
}
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getRemoveMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> METHOD_REMOVE = getRemoveMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response> getRemoveMethod;
if ((getRemoveMethod = VertexServiceGrpc.getRemoveMethod) == null) {
synchronized (VertexServiceGrpc.class) {
if ((getRemoveMethod = VertexServiceGrpc.getRemoveMethod) == null) {
VertexServiceGrpc.getRemoveMethod = getRemoveMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.Core.Request, org.listware.sdk.pbcmdb.Core.Response>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.VertexService", "Remove"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Request.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.Core.Response.getDefaultInstance()))
.setSchemaDescriptor(new VertexServiceMethodDescriptorSupplier("Remove"))
.build();
}
}
}
return getRemoveMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static VertexServiceStub newStub(io.grpc.Channel channel) {
return new VertexServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static VertexServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new VertexServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static VertexServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new VertexServiceFutureStub(channel);
}
/**
*/
public static abstract class VertexServiceImplBase implements io.grpc.BindableService {
/**
*/
public void create(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getCreateMethod(), responseObserver);
}
/**
*/
public void read(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getReadMethod(), responseObserver);
}
/**
*/
public void update(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
}
/**
*/
public void remove(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnimplementedUnaryCall(getRemoveMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_CREATE)))
.addMethod(
getReadMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_READ)))
.addMethod(
getUpdateMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_UPDATE)))
.addMethod(
getRemoveMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.Core.Request,
org.listware.sdk.pbcmdb.Core.Response>(
this, METHODID_REMOVE)))
.build();
}
}
/**
*/
public static final class VertexServiceStub extends io.grpc.stub.AbstractStub<VertexServiceStub> {
private VertexServiceStub(io.grpc.Channel channel) {
super(channel);
}
private VertexServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected VertexServiceStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new VertexServiceStub(channel, callOptions);
}
/**
*/
public void create(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void read(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getReadMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void update(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void remove(org.listware.sdk.pbcmdb.Core.Request request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getRemoveMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class VertexServiceBlockingStub extends io.grpc.stub.AbstractStub<VertexServiceBlockingStub> {
private VertexServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private VertexServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected VertexServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new VertexServiceBlockingStub(channel, callOptions);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response create(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getCreateMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response read(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getReadMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response update(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getUpdateMethod(), getCallOptions(), request);
}
/**
*/
public org.listware.sdk.pbcmdb.Core.Response remove(org.listware.sdk.pbcmdb.Core.Request request) {
return blockingUnaryCall(
getChannel(), getRemoveMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class VertexServiceFutureStub extends io.grpc.stub.AbstractStub<VertexServiceFutureStub> {
private VertexServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
private VertexServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected VertexServiceFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new VertexServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> create(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getCreateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> read(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getReadMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> update(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.Core.Response> remove(
org.listware.sdk.pbcmdb.Core.Request request) {
return futureUnaryCall(
getChannel().newCall(getRemoveMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE = 0;
private static final int METHODID_READ = 1;
private static final int METHODID_UPDATE = 2;
private static final int METHODID_REMOVE = 3;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final VertexServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(VertexServiceImplBase 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<Resp> responseObserver) {
switch (methodId) {
case METHODID_CREATE:
serviceImpl.create((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_READ:
serviceImpl.read((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_UPDATE:
serviceImpl.update((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
case METHODID_REMOVE:
serviceImpl.remove((org.listware.sdk.pbcmdb.Core.Request) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.Core.Response>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static abstract class VertexServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
VertexServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.listware.sdk.pbcmdb.Service.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("VertexService");
}
}
private static final class VertexServiceFileDescriptorSupplier
extends VertexServiceBaseDescriptorSupplier {
VertexServiceFileDescriptorSupplier() {}
}
private static final class VertexServiceMethodDescriptorSupplier
extends VertexServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
VertexServiceMethodDescriptorSupplier(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 (VertexServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new VertexServiceFileDescriptorSupplier())
.addMethod(getCreateMethod())
.addMethod(getReadMethod())
.addMethod(getUpdateMethod())
.addMethod(getRemoveMethod())
.build();
}
}
}
return result;
}
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,281 @@
package org.listware.sdk.pbcmdb.pbqdsl;
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;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.9.1)",
comments = "Source: pbcmdb/pbqdsl/service.proto")
public final class QdslServiceGrpc {
private QdslServiceGrpc() {}
public static final String SERVICE_NAME = "org.listware.sdk.pbcmdb.pbqdsl.QdslService";
// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
@java.lang.Deprecated // Use {@link #getQdslMethod()} instead.
public static final io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query,
org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements> METHOD_QDSL = getQdslMethod();
private static volatile io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query,
org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements> getQdslMethod;
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query,
org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements> getQdslMethod() {
io.grpc.MethodDescriptor<org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query, org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements> getQdslMethod;
if ((getQdslMethod = QdslServiceGrpc.getQdslMethod) == null) {
synchronized (QdslServiceGrpc.class) {
if ((getQdslMethod = QdslServiceGrpc.getQdslMethod) == null) {
QdslServiceGrpc.getQdslMethod = getQdslMethod =
io.grpc.MethodDescriptor.<org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query, org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements>newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"org.listware.sdk.pbcmdb.pbqdsl.QdslService", "Qdsl"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements.getDefaultInstance()))
.setSchemaDescriptor(new QdslServiceMethodDescriptorSupplier("Qdsl"))
.build();
}
}
}
return getQdslMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static QdslServiceStub newStub(io.grpc.Channel channel) {
return new QdslServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static QdslServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new QdslServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static QdslServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new QdslServiceFutureStub(channel);
}
/**
*/
public static abstract class QdslServiceImplBase implements io.grpc.BindableService {
/**
*/
public void qdsl(org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements> responseObserver) {
asyncUnimplementedUnaryCall(getQdslMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getQdslMethod(),
asyncUnaryCall(
new MethodHandlers<
org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query,
org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements>(
this, METHODID_QDSL)))
.build();
}
}
/**
*/
public static final class QdslServiceStub extends io.grpc.stub.AbstractStub<QdslServiceStub> {
private QdslServiceStub(io.grpc.Channel channel) {
super(channel);
}
private QdslServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QdslServiceStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new QdslServiceStub(channel, callOptions);
}
/**
*/
public void qdsl(org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query request,
io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements> responseObserver) {
asyncUnaryCall(
getChannel().newCall(getQdslMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class QdslServiceBlockingStub extends io.grpc.stub.AbstractStub<QdslServiceBlockingStub> {
private QdslServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private QdslServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QdslServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new QdslServiceBlockingStub(channel, callOptions);
}
/**
*/
public org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements qdsl(org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query request) {
return blockingUnaryCall(
getChannel(), getQdslMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class QdslServiceFutureStub extends io.grpc.stub.AbstractStub<QdslServiceFutureStub> {
private QdslServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
private QdslServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QdslServiceFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new QdslServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture<org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements> qdsl(
org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query request) {
return futureUnaryCall(
getChannel().newCall(getQdslMethod(), getCallOptions()), request);
}
}
private static final int METHODID_QDSL = 0;
private static final class MethodHandlers<Req, Resp> implements
io.grpc.stub.ServerCalls.UnaryMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final QdslServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(QdslServiceImplBase 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<Resp> responseObserver) {
switch (methodId) {
case METHODID_QDSL:
serviceImpl.qdsl((org.listware.sdk.pbcmdb.pbqdsl.QDSL.Query) request,
(io.grpc.stub.StreamObserver<org.listware.sdk.pbcmdb.pbqdsl.QDSL.Elements>) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver<Req> invoke(
io.grpc.stub.StreamObserver<Resp> responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
private static abstract class QdslServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
QdslServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return org.listware.sdk.pbcmdb.pbqdsl.Service.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("QdslService");
}
}
private static final class QdslServiceFileDescriptorSupplier
extends QdslServiceBaseDescriptorSupplier {
QdslServiceFileDescriptorSupplier() {}
}
private static final class QdslServiceMethodDescriptorSupplier
extends QdslServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
QdslServiceMethodDescriptorSupplier(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 (QdslServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new QdslServiceFileDescriptorSupplier())
.addMethod(getQdslMethod())
.build();
}
}
}
return result;
}
}

View File

@ -0,0 +1,52 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbcmdb/pbqdsl/service.proto
package org.listware.sdk.pbcmdb.pbqdsl;
public final class Service {
private Service() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\033pbcmdb/pbqdsl/service.proto\022\036org.listw" +
"are.sdk.pbcmdb.pbqdsl\032\032pbcmdb/pbqdsl/pbq" +
"dsl.proto2h\n\013QdslService\022Y\n\004Qdsl\022%.org.l" +
"istware.sdk.pbcmdb.pbqdsl.Query\032(.org.li" +
"stware.sdk.pbcmdb.pbqdsl.Elements\"\000BZ\n\036o" +
"rg.listware.sdk.pbcmdb.pbqdslB\007ServiceZ/" +
"git.fg-tech.ru/listware/proto/sdk/pbcmdb" +
"/pbqdslb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.listware.sdk.pbcmdb.pbqdsl.QDSL.getDescriptor(),
}, assigner);
org.listware.sdk.pbcmdb.pbqdsl.QDSL.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}

View File

@ -0,0 +1,808 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/request-reply.proto
package org.listware.sdk.reqreply.generated;
/**
* <pre>
* An Address is the unique identity of an individual StatefulFunction, containing
* a function's type and an unique identifier within the type. The function's
* type denotes the "class" of function to invoke, while the unique identifier addresses the
* invocation to a specific function instance.
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.Address}
*/
public final class Address extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.listware.sdk.reqreply.generated.Address)
AddressOrBuilder {
private static final long serialVersionUID = 0L;
// Use Address.newBuilder() to construct.
private Address(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private Address() {
namespace_ = "";
type_ = "";
id_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Address(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
namespace_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
type_ = s;
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
id_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.reqreply.generated.RequestReply.internal_static_org_listware_sdk_reqreply_generated_Address_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.reqreply.generated.RequestReply.internal_static_org_listware_sdk_reqreply_generated_Address_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.reqreply.generated.Address.class, org.listware.sdk.reqreply.generated.Address.Builder.class);
}
public static final int NAMESPACE_FIELD_NUMBER = 1;
private volatile java.lang.Object namespace_;
/**
* <code>string namespace = 1;</code>
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
}
}
/**
* <code>string namespace = 1;</code>
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TYPE_FIELD_NUMBER = 2;
private volatile java.lang.Object type_;
/**
* <code>string type = 2;</code>
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
}
}
/**
* <code>string type = 2;</code>
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 3;
private volatile java.lang.Object id_;
/**
* <code>string id = 3;</code>
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
}
}
/**
* <code>string id = 3;</code>
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getNamespaceBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, namespace_);
}
if (!getTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, type_);
}
if (!getIdBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, id_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getNamespaceBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, namespace_);
}
if (!getTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, type_);
}
if (!getIdBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, id_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.listware.sdk.reqreply.generated.Address)) {
return super.equals(obj);
}
org.listware.sdk.reqreply.generated.Address other = (org.listware.sdk.reqreply.generated.Address) obj;
if (!getNamespace()
.equals(other.getNamespace())) return false;
if (!getType()
.equals(other.getType())) return false;
if (!getId()
.equals(other.getId())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType().hashCode();
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.listware.sdk.reqreply.generated.Address parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.reqreply.generated.Address parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.reqreply.generated.Address parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.reqreply.generated.Address parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.reqreply.generated.Address parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.reqreply.generated.Address parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.reqreply.generated.Address parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.reqreply.generated.Address parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.reqreply.generated.Address parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.listware.sdk.reqreply.generated.Address parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.reqreply.generated.Address parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.reqreply.generated.Address parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.listware.sdk.reqreply.generated.Address prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* An Address is the unique identity of an individual StatefulFunction, containing
* a function's type and an unique identifier within the type. The function's
* type denotes the "class" of function to invoke, while the unique identifier addresses the
* invocation to a specific function instance.
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.Address}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:org.listware.sdk.reqreply.generated.Address)
org.listware.sdk.reqreply.generated.AddressOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.reqreply.generated.RequestReply.internal_static_org_listware_sdk_reqreply_generated_Address_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.reqreply.generated.RequestReply.internal_static_org_listware_sdk_reqreply_generated_Address_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.reqreply.generated.Address.class, org.listware.sdk.reqreply.generated.Address.Builder.class);
}
// Construct using org.listware.sdk.reqreply.generated.Address.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
namespace_ = "";
type_ = "";
id_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.listware.sdk.reqreply.generated.RequestReply.internal_static_org_listware_sdk_reqreply_generated_Address_descriptor;
}
@java.lang.Override
public org.listware.sdk.reqreply.generated.Address getDefaultInstanceForType() {
return org.listware.sdk.reqreply.generated.Address.getDefaultInstance();
}
@java.lang.Override
public org.listware.sdk.reqreply.generated.Address build() {
org.listware.sdk.reqreply.generated.Address result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.listware.sdk.reqreply.generated.Address buildPartial() {
org.listware.sdk.reqreply.generated.Address result = new org.listware.sdk.reqreply.generated.Address(this);
result.namespace_ = namespace_;
result.type_ = type_;
result.id_ = id_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.listware.sdk.reqreply.generated.Address) {
return mergeFrom((org.listware.sdk.reqreply.generated.Address)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.listware.sdk.reqreply.generated.Address other) {
if (other == org.listware.sdk.reqreply.generated.Address.getDefaultInstance()) return this;
if (!other.getNamespace().isEmpty()) {
namespace_ = other.namespace_;
onChanged();
}
if (!other.getType().isEmpty()) {
type_ = other.type_;
onChanged();
}
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.listware.sdk.reqreply.generated.Address parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.listware.sdk.reqreply.generated.Address) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object namespace_ = "";
/**
* <code>string namespace = 1;</code>
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
namespace_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string namespace = 1;</code>
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string namespace = 1;</code>
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
namespace_ = value;
onChanged();
return this;
}
/**
* <code>string namespace = 1;</code>
*/
public Builder clearNamespace() {
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
* <code>string namespace = 1;</code>
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
namespace_ = value;
onChanged();
return this;
}
private java.lang.Object type_ = "";
/**
* <code>string type = 2;</code>
*/
public java.lang.String getType() {
java.lang.Object ref = type_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
type_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string type = 2;</code>
*/
public com.google.protobuf.ByteString
getTypeBytes() {
java.lang.Object ref = type_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
type_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string type = 2;</code>
*/
public Builder setType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
type_ = value;
onChanged();
return this;
}
/**
* <code>string type = 2;</code>
*/
public Builder clearType() {
type_ = getDefaultInstance().getType();
onChanged();
return this;
}
/**
* <code>string type = 2;</code>
*/
public Builder setTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
type_ = value;
onChanged();
return this;
}
private java.lang.Object id_ = "";
/**
* <code>string id = 3;</code>
*/
public java.lang.String getId() {
java.lang.Object ref = id_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
id_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string id = 3;</code>
*/
public com.google.protobuf.ByteString
getIdBytes() {
java.lang.Object ref = id_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
id_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string id = 3;</code>
*/
public Builder setId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
return this;
}
/**
* <code>string id = 3;</code>
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
* <code>string id = 3;</code>
*/
public Builder setIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
id_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:org.listware.sdk.reqreply.generated.Address)
}
// @@protoc_insertion_point(class_scope:org.listware.sdk.reqreply.generated.Address)
private static final org.listware.sdk.reqreply.generated.Address DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.listware.sdk.reqreply.generated.Address();
}
public static org.listware.sdk.reqreply.generated.Address getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<Address>
PARSER = new com.google.protobuf.AbstractParser<Address>() {
@java.lang.Override
public Address parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Address(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<Address> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<Address> getParserForType() {
return PARSER;
}
@java.lang.Override
public org.listware.sdk.reqreply.generated.Address getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,39 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/request-reply.proto
package org.listware.sdk.reqreply.generated;
public interface AddressOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.listware.sdk.reqreply.generated.Address)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string namespace = 1;</code>
*/
java.lang.String getNamespace();
/**
* <code>string namespace = 1;</code>
*/
com.google.protobuf.ByteString
getNamespaceBytes();
/**
* <code>string type = 2;</code>
*/
java.lang.String getType();
/**
* <code>string type = 2;</code>
*/
com.google.protobuf.ByteString
getTypeBytes();
/**
* <code>string id = 3;</code>
*/
java.lang.String getId();
/**
* <code>string id = 3;</code>
*/
com.google.protobuf.ByteString
getIdBytes();
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,37 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/request-reply.proto
package org.listware.sdk.reqreply.generated;
public interface FromFunctionOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.listware.sdk.reqreply.generated.FromFunction)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.org.listware.sdk.reqreply.generated.FromFunction.InvocationResponse invocation_result = 100;</code>
*/
boolean hasInvocationResult();
/**
* <code>.org.listware.sdk.reqreply.generated.FromFunction.InvocationResponse invocation_result = 100;</code>
*/
org.listware.sdk.reqreply.generated.FromFunction.InvocationResponse getInvocationResult();
/**
* <code>.org.listware.sdk.reqreply.generated.FromFunction.InvocationResponse invocation_result = 100;</code>
*/
org.listware.sdk.reqreply.generated.FromFunction.InvocationResponseOrBuilder getInvocationResultOrBuilder();
/**
* <code>.org.listware.sdk.reqreply.generated.FromFunction.IncompleteInvocationContext incomplete_invocation_context = 101;</code>
*/
boolean hasIncompleteInvocationContext();
/**
* <code>.org.listware.sdk.reqreply.generated.FromFunction.IncompleteInvocationContext incomplete_invocation_context = 101;</code>
*/
org.listware.sdk.reqreply.generated.FromFunction.IncompleteInvocationContext getIncompleteInvocationContext();
/**
* <code>.org.listware.sdk.reqreply.generated.FromFunction.IncompleteInvocationContext incomplete_invocation_context = 101;</code>
*/
org.listware.sdk.reqreply.generated.FromFunction.IncompleteInvocationContextOrBuilder getIncompleteInvocationContextOrBuilder();
public org.listware.sdk.reqreply.generated.FromFunction.ResponseCase getResponseCase();
}

View File

@ -0,0 +1,278 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/request-reply.proto
package org.listware.sdk.reqreply.generated;
public final class RequestReply {
private RequestReply() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_Address_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_Address_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_TypedValue_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_TypedValue_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_ToFunction_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_ToFunction_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_ToFunction_PersistedValue_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_ToFunction_PersistedValue_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_ToFunction_Invocation_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_ToFunction_Invocation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_ToFunction_InvocationBatchRequest_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_ToFunction_InvocationBatchRequest_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_FromFunction_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_FromFunction_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_FromFunction_PersistedValueMutation_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_FromFunction_PersistedValueMutation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_FromFunction_Invocation_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_FromFunction_Invocation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_FromFunction_DelayedInvocation_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_FromFunction_DelayedInvocation_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_FromFunction_EgressMessage_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_FromFunction_EgressMessage_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_FromFunction_InvocationResponse_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_FromFunction_InvocationResponse_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_FromFunction_ExpirationSpec_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_FromFunction_ExpirationSpec_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_FromFunction_PersistedValueSpec_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_FromFunction_PersistedValueSpec_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_FromFunction_IncompleteInvocationContext_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_FromFunction_IncompleteInvocationContext_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\033pbflink/request-reply.proto\022#org.listw" +
"are.sdk.reqreply.generated\"6\n\007Address\022\021\n" +
"\tnamespace\030\001 \001(\t\022\014\n\004type\030\002 \001(\t\022\n\n\002id\030\003 \001" +
"(\t\"@\n\nTypedValue\022\020\n\010typename\030\001 \001(\t\022\021\n\tha" +
"s_value\030\002 \001(\010\022\r\n\005value\030\003 \001(\014\"\352\004\n\nToFunct" +
"ion\022\\\n\ninvocation\030d \001(\0132F.org.listware.s" +
"dk.reqreply.generated.ToFunction.Invocat" +
"ionBatchRequestH\000\032j\n\016PersistedValue\022\022\n\ns" +
"tate_name\030\001 \001(\t\022D\n\013state_value\030\002 \001(\0132/.o" +
"rg.listware.sdk.reqreply.generated.Typed" +
"Value\032\215\001\n\nInvocation\022<\n\006caller\030\001 \001(\0132,.o" +
"rg.listware.sdk.reqreply.generated.Addre" +
"ss\022A\n\010argument\030\002 \001(\0132/.org.listware.sdk." +
"reqreply.generated.TypedValue\032\366\001\n\026Invoca" +
"tionBatchRequest\022<\n\006target\030\001 \001(\0132,.org.l" +
"istware.sdk.reqreply.generated.Address\022M" +
"\n\005state\030\002 \003(\0132>.org.listware.sdk.reqrepl" +
"y.generated.ToFunction.PersistedValue\022O\n" +
"\013invocations\030\003 \003(\0132:.org.listware.sdk.re" +
"qreply.generated.ToFunction.InvocationB\t" +
"\n\007request\"\356\016\n\014FromFunction\022a\n\021invocation" +
"_result\030d \001(\0132D.org.listware.sdk.reqrepl" +
"y.generated.FromFunction.InvocationRespo" +
"nseH\000\022v\n\035incomplete_invocation_context\030e" +
" \001(\0132M.org.listware.sdk.reqreply.generat" +
"ed.FromFunction.IncompleteInvocationCont" +
"extH\000\032\210\002\n\026PersistedValueMutation\022l\n\rmuta" +
"tion_type\030\001 \001(\0162U.org.listware.sdk.reqre" +
"ply.generated.FromFunction.PersistedValu" +
"eMutation.MutationType\022\022\n\nstate_name\030\002 \001" +
"(\t\022D\n\013state_value\030\003 \001(\0132/.org.listware.s" +
"dk.reqreply.generated.TypedValue\"&\n\014Muta" +
"tionType\022\n\n\006DELETE\020\000\022\n\n\006MODIFY\020\001\032\215\001\n\nInv" +
"ocation\022<\n\006target\030\001 \001(\0132,.org.listware.s" +
"dk.reqreply.generated.Address\022A\n\010argumen" +
"t\030\002 \001(\0132/.org.listware.sdk.reqreply.gene" +
"rated.TypedValue\032\346\001\n\021DelayedInvocation\022\037" +
"\n\027is_cancellation_request\030\n \001(\010\022\032\n\022cance" +
"llation_token\030\013 \001(\t\022\023\n\013delay_in_ms\030\001 \001(\003" +
"\022<\n\006target\030\002 \001(\0132,.org.listware.sdk.reqr" +
"eply.generated.Address\022A\n\010argument\030\003 \001(\013" +
"2/.org.listware.sdk.reqreply.generated.T" +
"ypedValue\032\201\001\n\rEgressMessage\022\030\n\020egress_na" +
"mespace\030\001 \001(\t\022\023\n\013egress_type\030\002 \001(\t\022A\n\010ar" +
"gument\030\003 \001(\0132/.org.listware.sdk.reqreply" +
".generated.TypedValue\032\216\003\n\022InvocationResp" +
"onse\022a\n\017state_mutations\030\001 \003(\0132H.org.list" +
"ware.sdk.reqreply.generated.FromFunction" +
".PersistedValueMutation\022W\n\021outgoing_mess" +
"ages\030\002 \003(\0132<.org.listware.sdk.reqreply.g" +
"enerated.FromFunction.Invocation\022`\n\023dela" +
"yed_invocations\030\003 \003(\0132C.org.listware.sdk" +
".reqreply.generated.FromFunction.Delayed" +
"Invocation\022Z\n\021outgoing_egresses\030\004 \003(\0132?." +
"org.listware.sdk.reqreply.generated.From" +
"Function.EgressMessage\032\303\001\n\016ExpirationSpe" +
"c\022Y\n\004mode\030\001 \001(\0162K.org.listware.sdk.reqre" +
"ply.generated.FromFunction.ExpirationSpe" +
"c.ExpireMode\022\033\n\023expire_after_millis\030\002 \001(" +
"\003\"9\n\nExpireMode\022\010\n\004NONE\020\000\022\017\n\013AFTER_WRITE" +
"\020\001\022\020\n\014AFTER_INVOKE\020\002\032\232\001\n\022PersistedValueS" +
"pec\022\022\n\nstate_name\030\001 \001(\t\022Y\n\017expiration_sp" +
"ec\030\002 \001(\0132@.org.listware.sdk.reqreply.gen" +
"erated.FromFunction.ExpirationSpec\022\025\n\rty" +
"pe_typename\030\003 \001(\t\032{\n\033IncompleteInvocatio" +
"nContext\022\\\n\016missing_values\030\001 \003(\0132D.org.l" +
"istware.sdk.reqreply.generated.FromFunct" +
"ion.PersistedValueSpecB\n\n\010responseBR\n#or" +
"g.listware.sdk.reqreply.generatedP\001Z)git" +
".fg-tech.ru/listware/proto/sdk/pbflinkb\006" +
"proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_org_listware_sdk_reqreply_generated_Address_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_org_listware_sdk_reqreply_generated_Address_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_Address_descriptor,
new java.lang.String[] { "Namespace", "Type", "Id", });
internal_static_org_listware_sdk_reqreply_generated_TypedValue_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_org_listware_sdk_reqreply_generated_TypedValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_TypedValue_descriptor,
new java.lang.String[] { "Typename", "HasValue", "Value", });
internal_static_org_listware_sdk_reqreply_generated_ToFunction_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_org_listware_sdk_reqreply_generated_ToFunction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_ToFunction_descriptor,
new java.lang.String[] { "Invocation", "Request", });
internal_static_org_listware_sdk_reqreply_generated_ToFunction_PersistedValue_descriptor =
internal_static_org_listware_sdk_reqreply_generated_ToFunction_descriptor.getNestedTypes().get(0);
internal_static_org_listware_sdk_reqreply_generated_ToFunction_PersistedValue_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_ToFunction_PersistedValue_descriptor,
new java.lang.String[] { "StateName", "StateValue", });
internal_static_org_listware_sdk_reqreply_generated_ToFunction_Invocation_descriptor =
internal_static_org_listware_sdk_reqreply_generated_ToFunction_descriptor.getNestedTypes().get(1);
internal_static_org_listware_sdk_reqreply_generated_ToFunction_Invocation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_ToFunction_Invocation_descriptor,
new java.lang.String[] { "Caller", "Argument", });
internal_static_org_listware_sdk_reqreply_generated_ToFunction_InvocationBatchRequest_descriptor =
internal_static_org_listware_sdk_reqreply_generated_ToFunction_descriptor.getNestedTypes().get(2);
internal_static_org_listware_sdk_reqreply_generated_ToFunction_InvocationBatchRequest_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_ToFunction_InvocationBatchRequest_descriptor,
new java.lang.String[] { "Target", "State", "Invocations", });
internal_static_org_listware_sdk_reqreply_generated_FromFunction_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_org_listware_sdk_reqreply_generated_FromFunction_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_FromFunction_descriptor,
new java.lang.String[] { "InvocationResult", "IncompleteInvocationContext", "Response", });
internal_static_org_listware_sdk_reqreply_generated_FromFunction_PersistedValueMutation_descriptor =
internal_static_org_listware_sdk_reqreply_generated_FromFunction_descriptor.getNestedTypes().get(0);
internal_static_org_listware_sdk_reqreply_generated_FromFunction_PersistedValueMutation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_FromFunction_PersistedValueMutation_descriptor,
new java.lang.String[] { "MutationType", "StateName", "StateValue", });
internal_static_org_listware_sdk_reqreply_generated_FromFunction_Invocation_descriptor =
internal_static_org_listware_sdk_reqreply_generated_FromFunction_descriptor.getNestedTypes().get(1);
internal_static_org_listware_sdk_reqreply_generated_FromFunction_Invocation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_FromFunction_Invocation_descriptor,
new java.lang.String[] { "Target", "Argument", });
internal_static_org_listware_sdk_reqreply_generated_FromFunction_DelayedInvocation_descriptor =
internal_static_org_listware_sdk_reqreply_generated_FromFunction_descriptor.getNestedTypes().get(2);
internal_static_org_listware_sdk_reqreply_generated_FromFunction_DelayedInvocation_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_FromFunction_DelayedInvocation_descriptor,
new java.lang.String[] { "IsCancellationRequest", "CancellationToken", "DelayInMs", "Target", "Argument", });
internal_static_org_listware_sdk_reqreply_generated_FromFunction_EgressMessage_descriptor =
internal_static_org_listware_sdk_reqreply_generated_FromFunction_descriptor.getNestedTypes().get(3);
internal_static_org_listware_sdk_reqreply_generated_FromFunction_EgressMessage_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_FromFunction_EgressMessage_descriptor,
new java.lang.String[] { "EgressNamespace", "EgressType", "Argument", });
internal_static_org_listware_sdk_reqreply_generated_FromFunction_InvocationResponse_descriptor =
internal_static_org_listware_sdk_reqreply_generated_FromFunction_descriptor.getNestedTypes().get(4);
internal_static_org_listware_sdk_reqreply_generated_FromFunction_InvocationResponse_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_FromFunction_InvocationResponse_descriptor,
new java.lang.String[] { "StateMutations", "OutgoingMessages", "DelayedInvocations", "OutgoingEgresses", });
internal_static_org_listware_sdk_reqreply_generated_FromFunction_ExpirationSpec_descriptor =
internal_static_org_listware_sdk_reqreply_generated_FromFunction_descriptor.getNestedTypes().get(5);
internal_static_org_listware_sdk_reqreply_generated_FromFunction_ExpirationSpec_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_FromFunction_ExpirationSpec_descriptor,
new java.lang.String[] { "Mode", "ExpireAfterMillis", });
internal_static_org_listware_sdk_reqreply_generated_FromFunction_PersistedValueSpec_descriptor =
internal_static_org_listware_sdk_reqreply_generated_FromFunction_descriptor.getNestedTypes().get(6);
internal_static_org_listware_sdk_reqreply_generated_FromFunction_PersistedValueSpec_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_FromFunction_PersistedValueSpec_descriptor,
new java.lang.String[] { "StateName", "ExpirationSpec", "TypeTypename", });
internal_static_org_listware_sdk_reqreply_generated_FromFunction_IncompleteInvocationContext_descriptor =
internal_static_org_listware_sdk_reqreply_generated_FromFunction_descriptor.getNestedTypes().get(7);
internal_static_org_listware_sdk_reqreply_generated_FromFunction_IncompleteInvocationContext_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_FromFunction_IncompleteInvocationContext_descriptor,
new java.lang.String[] { "MissingValues", });
}
// @@protoc_insertion_point(outer_class_scope)
}

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,24 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/request-reply.proto
package org.listware.sdk.reqreply.generated;
public interface ToFunctionOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.listware.sdk.reqreply.generated.ToFunction)
com.google.protobuf.MessageOrBuilder {
/**
* <code>.org.listware.sdk.reqreply.generated.ToFunction.InvocationBatchRequest invocation = 100;</code>
*/
boolean hasInvocation();
/**
* <code>.org.listware.sdk.reqreply.generated.ToFunction.InvocationBatchRequest invocation = 100;</code>
*/
org.listware.sdk.reqreply.generated.ToFunction.InvocationBatchRequest getInvocation();
/**
* <code>.org.listware.sdk.reqreply.generated.ToFunction.InvocationBatchRequest invocation = 100;</code>
*/
org.listware.sdk.reqreply.generated.ToFunction.InvocationBatchRequestOrBuilder getInvocationOrBuilder();
public org.listware.sdk.reqreply.generated.ToFunction.RequestCase getRequestCase();
}

View File

@ -0,0 +1,679 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/request-reply.proto
package org.listware.sdk.reqreply.generated;
/**
* Protobuf type {@code org.listware.sdk.reqreply.generated.TypedValue}
*/
public final class TypedValue extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.listware.sdk.reqreply.generated.TypedValue)
TypedValueOrBuilder {
private static final long serialVersionUID = 0L;
// Use TypedValue.newBuilder() to construct.
private TypedValue(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private TypedValue() {
typename_ = "";
value_ = com.google.protobuf.ByteString.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TypedValue(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
typename_ = s;
break;
}
case 16: {
hasValue_ = input.readBool();
break;
}
case 26: {
value_ = input.readBytes();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.reqreply.generated.RequestReply.internal_static_org_listware_sdk_reqreply_generated_TypedValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.reqreply.generated.RequestReply.internal_static_org_listware_sdk_reqreply_generated_TypedValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.reqreply.generated.TypedValue.class, org.listware.sdk.reqreply.generated.TypedValue.Builder.class);
}
public static final int TYPENAME_FIELD_NUMBER = 1;
private volatile java.lang.Object typename_;
/**
* <code>string typename = 1;</code>
*/
public java.lang.String getTypename() {
java.lang.Object ref = typename_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typename_ = s;
return s;
}
}
/**
* <code>string typename = 1;</code>
*/
public com.google.protobuf.ByteString
getTypenameBytes() {
java.lang.Object ref = typename_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typename_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int HAS_VALUE_FIELD_NUMBER = 2;
private boolean hasValue_;
/**
* <pre>
* has_value is set to differentiate a zero length value bytes explicitly set,
* or a non existing value.
* </pre>
*
* <code>bool has_value = 2;</code>
*/
public boolean getHasValue() {
return hasValue_;
}
public static final int VALUE_FIELD_NUMBER = 3;
private com.google.protobuf.ByteString value_;
/**
* <code>bytes value = 3;</code>
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getTypenameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, typename_);
}
if (hasValue_ != false) {
output.writeBool(2, hasValue_);
}
if (!value_.isEmpty()) {
output.writeBytes(3, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getTypenameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, typename_);
}
if (hasValue_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, hasValue_);
}
if (!value_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.listware.sdk.reqreply.generated.TypedValue)) {
return super.equals(obj);
}
org.listware.sdk.reqreply.generated.TypedValue other = (org.listware.sdk.reqreply.generated.TypedValue) obj;
if (!getTypename()
.equals(other.getTypename())) return false;
if (getHasValue()
!= other.getHasValue()) return false;
if (!getValue()
.equals(other.getValue())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + TYPENAME_FIELD_NUMBER;
hash = (53 * hash) + getTypename().hashCode();
hash = (37 * hash) + HAS_VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getHasValue());
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.listware.sdk.reqreply.generated.TypedValue parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.reqreply.generated.TypedValue parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.reqreply.generated.TypedValue parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.reqreply.generated.TypedValue parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.reqreply.generated.TypedValue parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.reqreply.generated.TypedValue parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.reqreply.generated.TypedValue parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.reqreply.generated.TypedValue parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.reqreply.generated.TypedValue parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.listware.sdk.reqreply.generated.TypedValue parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.reqreply.generated.TypedValue parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.reqreply.generated.TypedValue parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.listware.sdk.reqreply.generated.TypedValue prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code org.listware.sdk.reqreply.generated.TypedValue}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:org.listware.sdk.reqreply.generated.TypedValue)
org.listware.sdk.reqreply.generated.TypedValueOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.reqreply.generated.RequestReply.internal_static_org_listware_sdk_reqreply_generated_TypedValue_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.reqreply.generated.RequestReply.internal_static_org_listware_sdk_reqreply_generated_TypedValue_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.reqreply.generated.TypedValue.class, org.listware.sdk.reqreply.generated.TypedValue.Builder.class);
}
// Construct using org.listware.sdk.reqreply.generated.TypedValue.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
typename_ = "";
hasValue_ = false;
value_ = com.google.protobuf.ByteString.EMPTY;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.listware.sdk.reqreply.generated.RequestReply.internal_static_org_listware_sdk_reqreply_generated_TypedValue_descriptor;
}
@java.lang.Override
public org.listware.sdk.reqreply.generated.TypedValue getDefaultInstanceForType() {
return org.listware.sdk.reqreply.generated.TypedValue.getDefaultInstance();
}
@java.lang.Override
public org.listware.sdk.reqreply.generated.TypedValue build() {
org.listware.sdk.reqreply.generated.TypedValue result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.listware.sdk.reqreply.generated.TypedValue buildPartial() {
org.listware.sdk.reqreply.generated.TypedValue result = new org.listware.sdk.reqreply.generated.TypedValue(this);
result.typename_ = typename_;
result.hasValue_ = hasValue_;
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.listware.sdk.reqreply.generated.TypedValue) {
return mergeFrom((org.listware.sdk.reqreply.generated.TypedValue)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.listware.sdk.reqreply.generated.TypedValue other) {
if (other == org.listware.sdk.reqreply.generated.TypedValue.getDefaultInstance()) return this;
if (!other.getTypename().isEmpty()) {
typename_ = other.typename_;
onChanged();
}
if (other.getHasValue() != false) {
setHasValue(other.getHasValue());
}
if (other.getValue() != com.google.protobuf.ByteString.EMPTY) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.listware.sdk.reqreply.generated.TypedValue parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.listware.sdk.reqreply.generated.TypedValue) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object typename_ = "";
/**
* <code>string typename = 1;</code>
*/
public java.lang.String getTypename() {
java.lang.Object ref = typename_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
typename_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string typename = 1;</code>
*/
public com.google.protobuf.ByteString
getTypenameBytes() {
java.lang.Object ref = typename_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
typename_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string typename = 1;</code>
*/
public Builder setTypename(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
typename_ = value;
onChanged();
return this;
}
/**
* <code>string typename = 1;</code>
*/
public Builder clearTypename() {
typename_ = getDefaultInstance().getTypename();
onChanged();
return this;
}
/**
* <code>string typename = 1;</code>
*/
public Builder setTypenameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
typename_ = value;
onChanged();
return this;
}
private boolean hasValue_ ;
/**
* <pre>
* has_value is set to differentiate a zero length value bytes explicitly set,
* or a non existing value.
* </pre>
*
* <code>bool has_value = 2;</code>
*/
public boolean getHasValue() {
return hasValue_;
}
/**
* <pre>
* has_value is set to differentiate a zero length value bytes explicitly set,
* or a non existing value.
* </pre>
*
* <code>bool has_value = 2;</code>
*/
public Builder setHasValue(boolean value) {
hasValue_ = value;
onChanged();
return this;
}
/**
* <pre>
* has_value is set to differentiate a zero length value bytes explicitly set,
* or a non existing value.
* </pre>
*
* <code>bool has_value = 2;</code>
*/
public Builder clearHasValue() {
hasValue_ = false;
onChanged();
return this;
}
private com.google.protobuf.ByteString value_ = com.google.protobuf.ByteString.EMPTY;
/**
* <code>bytes value = 3;</code>
*/
public com.google.protobuf.ByteString getValue() {
return value_;
}
/**
* <code>bytes value = 3;</code>
*/
public Builder setValue(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* <code>bytes value = 3;</code>
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:org.listware.sdk.reqreply.generated.TypedValue)
}
// @@protoc_insertion_point(class_scope:org.listware.sdk.reqreply.generated.TypedValue)
private static final org.listware.sdk.reqreply.generated.TypedValue DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.listware.sdk.reqreply.generated.TypedValue();
}
public static org.listware.sdk.reqreply.generated.TypedValue getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<TypedValue>
PARSER = new com.google.protobuf.AbstractParser<TypedValue>() {
@java.lang.Override
public TypedValue parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TypedValue(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<TypedValue> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<TypedValue> getParserForType() {
return PARSER;
}
@java.lang.Override
public org.listware.sdk.reqreply.generated.TypedValue getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,34 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/request-reply.proto
package org.listware.sdk.reqreply.generated;
public interface TypedValueOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.listware.sdk.reqreply.generated.TypedValue)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string typename = 1;</code>
*/
java.lang.String getTypename();
/**
* <code>string typename = 1;</code>
*/
com.google.protobuf.ByteString
getTypenameBytes();
/**
* <pre>
* has_value is set to differentiate a zero length value bytes explicitly set,
* or a non existing value.
* </pre>
*
* <code>bool has_value = 2;</code>
*/
boolean getHasValue();
/**
* <code>bytes value = 3;</code>
*/
com.google.protobuf.ByteString getValue();
}

View File

@ -0,0 +1,481 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
/**
* <pre>
* BooleanWrapper represents a StateFun primitive type of a boolean value. This is recognized as:
* io.statefun.types/bool
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.BooleanWrapper}
*/
public final class BooleanWrapper extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.listware.sdk.reqreply.generated.BooleanWrapper)
BooleanWrapperOrBuilder {
private static final long serialVersionUID = 0L;
// Use BooleanWrapper.newBuilder() to construct.
private BooleanWrapper(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private BooleanWrapper() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BooleanWrapper(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
value_ = input.readBool();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_BooleanWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_BooleanWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.BooleanWrapper.class, org.listware.sdk.types.generated.BooleanWrapper.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private boolean value_;
/**
* <code>bool value = 1;</code>
*/
public boolean getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (value_ != false) {
output.writeBool(1, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (value_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.listware.sdk.types.generated.BooleanWrapper)) {
return super.equals(obj);
}
org.listware.sdk.types.generated.BooleanWrapper other = (org.listware.sdk.types.generated.BooleanWrapper) obj;
if (getValue()
!= other.getValue()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getValue());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.listware.sdk.types.generated.BooleanWrapper parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.BooleanWrapper parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.BooleanWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.BooleanWrapper parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.BooleanWrapper parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.BooleanWrapper parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.BooleanWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.BooleanWrapper parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.BooleanWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.BooleanWrapper parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.BooleanWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.BooleanWrapper parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.listware.sdk.types.generated.BooleanWrapper prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* BooleanWrapper represents a StateFun primitive type of a boolean value. This is recognized as:
* io.statefun.types/bool
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.BooleanWrapper}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:org.listware.sdk.reqreply.generated.BooleanWrapper)
org.listware.sdk.types.generated.BooleanWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_BooleanWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_BooleanWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.BooleanWrapper.class, org.listware.sdk.types.generated.BooleanWrapper.Builder.class);
}
// Construct using org.listware.sdk.types.generated.BooleanWrapper.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
value_ = false;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_BooleanWrapper_descriptor;
}
@java.lang.Override
public org.listware.sdk.types.generated.BooleanWrapper getDefaultInstanceForType() {
return org.listware.sdk.types.generated.BooleanWrapper.getDefaultInstance();
}
@java.lang.Override
public org.listware.sdk.types.generated.BooleanWrapper build() {
org.listware.sdk.types.generated.BooleanWrapper result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.listware.sdk.types.generated.BooleanWrapper buildPartial() {
org.listware.sdk.types.generated.BooleanWrapper result = new org.listware.sdk.types.generated.BooleanWrapper(this);
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.listware.sdk.types.generated.BooleanWrapper) {
return mergeFrom((org.listware.sdk.types.generated.BooleanWrapper)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.listware.sdk.types.generated.BooleanWrapper other) {
if (other == org.listware.sdk.types.generated.BooleanWrapper.getDefaultInstance()) return this;
if (other.getValue() != false) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.listware.sdk.types.generated.BooleanWrapper parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.listware.sdk.types.generated.BooleanWrapper) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private boolean value_ ;
/**
* <code>bool value = 1;</code>
*/
public boolean getValue() {
return value_;
}
/**
* <code>bool value = 1;</code>
*/
public Builder setValue(boolean value) {
value_ = value;
onChanged();
return this;
}
/**
* <code>bool value = 1;</code>
*/
public Builder clearValue() {
value_ = false;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:org.listware.sdk.reqreply.generated.BooleanWrapper)
}
// @@protoc_insertion_point(class_scope:org.listware.sdk.reqreply.generated.BooleanWrapper)
private static final org.listware.sdk.types.generated.BooleanWrapper DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.listware.sdk.types.generated.BooleanWrapper();
}
public static org.listware.sdk.types.generated.BooleanWrapper getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<BooleanWrapper>
PARSER = new com.google.protobuf.AbstractParser<BooleanWrapper>() {
@java.lang.Override
public BooleanWrapper parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BooleanWrapper(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<BooleanWrapper> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<BooleanWrapper> getParserForType() {
return PARSER;
}
@java.lang.Override
public org.listware.sdk.types.generated.BooleanWrapper getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
public interface BooleanWrapperOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.listware.sdk.reqreply.generated.BooleanWrapper)
com.google.protobuf.MessageOrBuilder {
/**
* <code>bool value = 1;</code>
*/
boolean getValue();
}

View File

@ -0,0 +1,482 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
/**
* <pre>
* DoubleWrapper represents a StateFun primitive type of a double value. This is recognized as:
* io.statefun.types/double
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.DoubleWrapper}
*/
public final class DoubleWrapper extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.listware.sdk.reqreply.generated.DoubleWrapper)
DoubleWrapperOrBuilder {
private static final long serialVersionUID = 0L;
// Use DoubleWrapper.newBuilder() to construct.
private DoubleWrapper(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private DoubleWrapper() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DoubleWrapper(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
value_ = input.readDouble();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_DoubleWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_DoubleWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.DoubleWrapper.class, org.listware.sdk.types.generated.DoubleWrapper.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private double value_;
/**
* <code>double value = 1;</code>
*/
public double getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (value_ != 0D) {
output.writeDouble(1, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (value_ != 0D) {
size += com.google.protobuf.CodedOutputStream
.computeDoubleSize(1, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.listware.sdk.types.generated.DoubleWrapper)) {
return super.equals(obj);
}
org.listware.sdk.types.generated.DoubleWrapper other = (org.listware.sdk.types.generated.DoubleWrapper) obj;
if (java.lang.Double.doubleToLongBits(getValue())
!= java.lang.Double.doubleToLongBits(
other.getValue())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
java.lang.Double.doubleToLongBits(getValue()));
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.listware.sdk.types.generated.DoubleWrapper parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.DoubleWrapper parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.DoubleWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.DoubleWrapper parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.DoubleWrapper parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.DoubleWrapper parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.DoubleWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.DoubleWrapper parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.DoubleWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.DoubleWrapper parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.DoubleWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.DoubleWrapper parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.listware.sdk.types.generated.DoubleWrapper prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* DoubleWrapper represents a StateFun primitive type of a double value. This is recognized as:
* io.statefun.types/double
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.DoubleWrapper}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:org.listware.sdk.reqreply.generated.DoubleWrapper)
org.listware.sdk.types.generated.DoubleWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_DoubleWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_DoubleWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.DoubleWrapper.class, org.listware.sdk.types.generated.DoubleWrapper.Builder.class);
}
// Construct using org.listware.sdk.types.generated.DoubleWrapper.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
value_ = 0D;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_DoubleWrapper_descriptor;
}
@java.lang.Override
public org.listware.sdk.types.generated.DoubleWrapper getDefaultInstanceForType() {
return org.listware.sdk.types.generated.DoubleWrapper.getDefaultInstance();
}
@java.lang.Override
public org.listware.sdk.types.generated.DoubleWrapper build() {
org.listware.sdk.types.generated.DoubleWrapper result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.listware.sdk.types.generated.DoubleWrapper buildPartial() {
org.listware.sdk.types.generated.DoubleWrapper result = new org.listware.sdk.types.generated.DoubleWrapper(this);
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.listware.sdk.types.generated.DoubleWrapper) {
return mergeFrom((org.listware.sdk.types.generated.DoubleWrapper)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.listware.sdk.types.generated.DoubleWrapper other) {
if (other == org.listware.sdk.types.generated.DoubleWrapper.getDefaultInstance()) return this;
if (other.getValue() != 0D) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.listware.sdk.types.generated.DoubleWrapper parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.listware.sdk.types.generated.DoubleWrapper) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private double value_ ;
/**
* <code>double value = 1;</code>
*/
public double getValue() {
return value_;
}
/**
* <code>double value = 1;</code>
*/
public Builder setValue(double value) {
value_ = value;
onChanged();
return this;
}
/**
* <code>double value = 1;</code>
*/
public Builder clearValue() {
value_ = 0D;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:org.listware.sdk.reqreply.generated.DoubleWrapper)
}
// @@protoc_insertion_point(class_scope:org.listware.sdk.reqreply.generated.DoubleWrapper)
private static final org.listware.sdk.types.generated.DoubleWrapper DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.listware.sdk.types.generated.DoubleWrapper();
}
public static org.listware.sdk.types.generated.DoubleWrapper getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<DoubleWrapper>
PARSER = new com.google.protobuf.AbstractParser<DoubleWrapper>() {
@java.lang.Override
public DoubleWrapper parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DoubleWrapper(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<DoubleWrapper> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<DoubleWrapper> getParserForType() {
return PARSER;
}
@java.lang.Override
public org.listware.sdk.types.generated.DoubleWrapper getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
public interface DoubleWrapperOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.listware.sdk.reqreply.generated.DoubleWrapper)
com.google.protobuf.MessageOrBuilder {
/**
* <code>double value = 1;</code>
*/
double getValue();
}

View File

@ -0,0 +1,482 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
/**
* <pre>
* FloatWrapper represents a StateFun primitive type of a signed float value. This is recognized as:
* io.statefun.types/float
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.FloatWrapper}
*/
public final class FloatWrapper extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.listware.sdk.reqreply.generated.FloatWrapper)
FloatWrapperOrBuilder {
private static final long serialVersionUID = 0L;
// Use FloatWrapper.newBuilder() to construct.
private FloatWrapper(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private FloatWrapper() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private FloatWrapper(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 13: {
value_ = input.readFloat();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_FloatWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_FloatWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.FloatWrapper.class, org.listware.sdk.types.generated.FloatWrapper.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private float value_;
/**
* <code>float value = 1;</code>
*/
public float getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (value_ != 0F) {
output.writeFloat(1, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (value_ != 0F) {
size += com.google.protobuf.CodedOutputStream
.computeFloatSize(1, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.listware.sdk.types.generated.FloatWrapper)) {
return super.equals(obj);
}
org.listware.sdk.types.generated.FloatWrapper other = (org.listware.sdk.types.generated.FloatWrapper) obj;
if (java.lang.Float.floatToIntBits(getValue())
!= java.lang.Float.floatToIntBits(
other.getValue())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + java.lang.Float.floatToIntBits(
getValue());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.listware.sdk.types.generated.FloatWrapper parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.FloatWrapper parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.FloatWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.FloatWrapper parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.FloatWrapper parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.FloatWrapper parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.FloatWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.FloatWrapper parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.FloatWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.FloatWrapper parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.FloatWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.FloatWrapper parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.listware.sdk.types.generated.FloatWrapper prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* FloatWrapper represents a StateFun primitive type of a signed float value. This is recognized as:
* io.statefun.types/float
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.FloatWrapper}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:org.listware.sdk.reqreply.generated.FloatWrapper)
org.listware.sdk.types.generated.FloatWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_FloatWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_FloatWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.FloatWrapper.class, org.listware.sdk.types.generated.FloatWrapper.Builder.class);
}
// Construct using org.listware.sdk.types.generated.FloatWrapper.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
value_ = 0F;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_FloatWrapper_descriptor;
}
@java.lang.Override
public org.listware.sdk.types.generated.FloatWrapper getDefaultInstanceForType() {
return org.listware.sdk.types.generated.FloatWrapper.getDefaultInstance();
}
@java.lang.Override
public org.listware.sdk.types.generated.FloatWrapper build() {
org.listware.sdk.types.generated.FloatWrapper result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.listware.sdk.types.generated.FloatWrapper buildPartial() {
org.listware.sdk.types.generated.FloatWrapper result = new org.listware.sdk.types.generated.FloatWrapper(this);
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.listware.sdk.types.generated.FloatWrapper) {
return mergeFrom((org.listware.sdk.types.generated.FloatWrapper)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.listware.sdk.types.generated.FloatWrapper other) {
if (other == org.listware.sdk.types.generated.FloatWrapper.getDefaultInstance()) return this;
if (other.getValue() != 0F) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.listware.sdk.types.generated.FloatWrapper parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.listware.sdk.types.generated.FloatWrapper) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private float value_ ;
/**
* <code>float value = 1;</code>
*/
public float getValue() {
return value_;
}
/**
* <code>float value = 1;</code>
*/
public Builder setValue(float value) {
value_ = value;
onChanged();
return this;
}
/**
* <code>float value = 1;</code>
*/
public Builder clearValue() {
value_ = 0F;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:org.listware.sdk.reqreply.generated.FloatWrapper)
}
// @@protoc_insertion_point(class_scope:org.listware.sdk.reqreply.generated.FloatWrapper)
private static final org.listware.sdk.types.generated.FloatWrapper DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.listware.sdk.types.generated.FloatWrapper();
}
public static org.listware.sdk.types.generated.FloatWrapper getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<FloatWrapper>
PARSER = new com.google.protobuf.AbstractParser<FloatWrapper>() {
@java.lang.Override
public FloatWrapper parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new FloatWrapper(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<FloatWrapper> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<FloatWrapper> getParserForType() {
return PARSER;
}
@java.lang.Override
public org.listware.sdk.types.generated.FloatWrapper getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
public interface FloatWrapperOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.listware.sdk.reqreply.generated.FloatWrapper)
com.google.protobuf.MessageOrBuilder {
/**
* <code>float value = 1;</code>
*/
float getValue();
}

View File

@ -0,0 +1,480 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
/**
* <pre>
* IntWrapper represents a StateFun primitive type of an signed 32 bit integer value. This is recognized as:
* io.statefun.types/int
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.IntWrapper}
*/
public final class IntWrapper extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.listware.sdk.reqreply.generated.IntWrapper)
IntWrapperOrBuilder {
private static final long serialVersionUID = 0L;
// Use IntWrapper.newBuilder() to construct.
private IntWrapper(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private IntWrapper() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IntWrapper(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 13: {
value_ = input.readSFixed32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_IntWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_IntWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.IntWrapper.class, org.listware.sdk.types.generated.IntWrapper.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private int value_;
/**
* <code>sfixed32 value = 1;</code>
*/
public int getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (value_ != 0) {
output.writeSFixed32(1, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (value_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed32Size(1, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.listware.sdk.types.generated.IntWrapper)) {
return super.equals(obj);
}
org.listware.sdk.types.generated.IntWrapper other = (org.listware.sdk.types.generated.IntWrapper) obj;
if (getValue()
!= other.getValue()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.listware.sdk.types.generated.IntWrapper parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.IntWrapper parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.IntWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.IntWrapper parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.IntWrapper parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.IntWrapper parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.IntWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.IntWrapper parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.IntWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.IntWrapper parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.IntWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.IntWrapper parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.listware.sdk.types.generated.IntWrapper prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* IntWrapper represents a StateFun primitive type of an signed 32 bit integer value. This is recognized as:
* io.statefun.types/int
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.IntWrapper}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:org.listware.sdk.reqreply.generated.IntWrapper)
org.listware.sdk.types.generated.IntWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_IntWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_IntWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.IntWrapper.class, org.listware.sdk.types.generated.IntWrapper.Builder.class);
}
// Construct using org.listware.sdk.types.generated.IntWrapper.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
value_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_IntWrapper_descriptor;
}
@java.lang.Override
public org.listware.sdk.types.generated.IntWrapper getDefaultInstanceForType() {
return org.listware.sdk.types.generated.IntWrapper.getDefaultInstance();
}
@java.lang.Override
public org.listware.sdk.types.generated.IntWrapper build() {
org.listware.sdk.types.generated.IntWrapper result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.listware.sdk.types.generated.IntWrapper buildPartial() {
org.listware.sdk.types.generated.IntWrapper result = new org.listware.sdk.types.generated.IntWrapper(this);
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.listware.sdk.types.generated.IntWrapper) {
return mergeFrom((org.listware.sdk.types.generated.IntWrapper)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.listware.sdk.types.generated.IntWrapper other) {
if (other == org.listware.sdk.types.generated.IntWrapper.getDefaultInstance()) return this;
if (other.getValue() != 0) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.listware.sdk.types.generated.IntWrapper parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.listware.sdk.types.generated.IntWrapper) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int value_ ;
/**
* <code>sfixed32 value = 1;</code>
*/
public int getValue() {
return value_;
}
/**
* <code>sfixed32 value = 1;</code>
*/
public Builder setValue(int value) {
value_ = value;
onChanged();
return this;
}
/**
* <code>sfixed32 value = 1;</code>
*/
public Builder clearValue() {
value_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:org.listware.sdk.reqreply.generated.IntWrapper)
}
// @@protoc_insertion_point(class_scope:org.listware.sdk.reqreply.generated.IntWrapper)
private static final org.listware.sdk.types.generated.IntWrapper DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.listware.sdk.types.generated.IntWrapper();
}
public static org.listware.sdk.types.generated.IntWrapper getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<IntWrapper>
PARSER = new com.google.protobuf.AbstractParser<IntWrapper>() {
@java.lang.Override
public IntWrapper parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IntWrapper(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<IntWrapper> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<IntWrapper> getParserForType() {
return PARSER;
}
@java.lang.Override
public org.listware.sdk.types.generated.IntWrapper getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
public interface IntWrapperOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.listware.sdk.reqreply.generated.IntWrapper)
com.google.protobuf.MessageOrBuilder {
/**
* <code>sfixed32 value = 1;</code>
*/
int getValue();
}

View File

@ -0,0 +1,481 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
/**
* <pre>
* LongWrapper represents a StateFun primitive type of a signed 64 bit long value. This is recognized as:
* io.statefun.types/long
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.LongWrapper}
*/
public final class LongWrapper extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.listware.sdk.reqreply.generated.LongWrapper)
LongWrapperOrBuilder {
private static final long serialVersionUID = 0L;
// Use LongWrapper.newBuilder() to construct.
private LongWrapper(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private LongWrapper() {
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private LongWrapper(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 9: {
value_ = input.readSFixed64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_LongWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_LongWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.LongWrapper.class, org.listware.sdk.types.generated.LongWrapper.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private long value_;
/**
* <code>sfixed64 value = 1;</code>
*/
public long getValue() {
return value_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (value_ != 0L) {
output.writeSFixed64(1, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (value_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeSFixed64Size(1, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.listware.sdk.types.generated.LongWrapper)) {
return super.equals(obj);
}
org.listware.sdk.types.generated.LongWrapper other = (org.listware.sdk.types.generated.LongWrapper) obj;
if (getValue()
!= other.getValue()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getValue());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.listware.sdk.types.generated.LongWrapper parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.LongWrapper parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.LongWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.LongWrapper parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.LongWrapper parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.LongWrapper parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.LongWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.LongWrapper parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.LongWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.LongWrapper parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.LongWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.LongWrapper parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.listware.sdk.types.generated.LongWrapper prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* LongWrapper represents a StateFun primitive type of a signed 64 bit long value. This is recognized as:
* io.statefun.types/long
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.LongWrapper}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:org.listware.sdk.reqreply.generated.LongWrapper)
org.listware.sdk.types.generated.LongWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_LongWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_LongWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.LongWrapper.class, org.listware.sdk.types.generated.LongWrapper.Builder.class);
}
// Construct using org.listware.sdk.types.generated.LongWrapper.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
value_ = 0L;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_LongWrapper_descriptor;
}
@java.lang.Override
public org.listware.sdk.types.generated.LongWrapper getDefaultInstanceForType() {
return org.listware.sdk.types.generated.LongWrapper.getDefaultInstance();
}
@java.lang.Override
public org.listware.sdk.types.generated.LongWrapper build() {
org.listware.sdk.types.generated.LongWrapper result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.listware.sdk.types.generated.LongWrapper buildPartial() {
org.listware.sdk.types.generated.LongWrapper result = new org.listware.sdk.types.generated.LongWrapper(this);
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.listware.sdk.types.generated.LongWrapper) {
return mergeFrom((org.listware.sdk.types.generated.LongWrapper)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.listware.sdk.types.generated.LongWrapper other) {
if (other == org.listware.sdk.types.generated.LongWrapper.getDefaultInstance()) return this;
if (other.getValue() != 0L) {
setValue(other.getValue());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.listware.sdk.types.generated.LongWrapper parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.listware.sdk.types.generated.LongWrapper) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private long value_ ;
/**
* <code>sfixed64 value = 1;</code>
*/
public long getValue() {
return value_;
}
/**
* <code>sfixed64 value = 1;</code>
*/
public Builder setValue(long value) {
value_ = value;
onChanged();
return this;
}
/**
* <code>sfixed64 value = 1;</code>
*/
public Builder clearValue() {
value_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:org.listware.sdk.reqreply.generated.LongWrapper)
}
// @@protoc_insertion_point(class_scope:org.listware.sdk.reqreply.generated.LongWrapper)
private static final org.listware.sdk.types.generated.LongWrapper DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.listware.sdk.types.generated.LongWrapper();
}
public static org.listware.sdk.types.generated.LongWrapper getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<LongWrapper>
PARSER = new com.google.protobuf.AbstractParser<LongWrapper>() {
@java.lang.Override
public LongWrapper parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new LongWrapper(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<LongWrapper> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<LongWrapper> getParserForType() {
return PARSER;
}
@java.lang.Override
public org.listware.sdk.types.generated.LongWrapper getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,14 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
public interface LongWrapperOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.listware.sdk.reqreply.generated.LongWrapper)
com.google.protobuf.MessageOrBuilder {
/**
* <code>sfixed64 value = 1;</code>
*/
long getValue();
}

View File

@ -0,0 +1,550 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
/**
* <pre>
* StringWrapper represents a StateFun string. This is recognized as:
* io.statefun.types/string
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.StringWrapper}
*/
public final class StringWrapper extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:org.listware.sdk.reqreply.generated.StringWrapper)
StringWrapperOrBuilder {
private static final long serialVersionUID = 0L;
// Use StringWrapper.newBuilder() to construct.
private StringWrapper(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private StringWrapper() {
value_ = "";
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private StringWrapper(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
java.lang.String s = input.readStringRequireUtf8();
value_ = s;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_StringWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_StringWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.StringWrapper.class, org.listware.sdk.types.generated.StringWrapper.Builder.class);
}
public static final int VALUE_FIELD_NUMBER = 1;
private volatile java.lang.Object value_;
/**
* <code>string value = 1;</code>
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
}
}
/**
* <code>string value = 1;</code>
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (!getValueBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getValueBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.listware.sdk.types.generated.StringWrapper)) {
return super.equals(obj);
}
org.listware.sdk.types.generated.StringWrapper other = (org.listware.sdk.types.generated.StringWrapper) obj;
if (!getValue()
.equals(other.getValue())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.listware.sdk.types.generated.StringWrapper parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.StringWrapper parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.StringWrapper parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.StringWrapper parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.StringWrapper parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.listware.sdk.types.generated.StringWrapper parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.listware.sdk.types.generated.StringWrapper parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.StringWrapper parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.StringWrapper parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.StringWrapper parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.listware.sdk.types.generated.StringWrapper parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.listware.sdk.types.generated.StringWrapper parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.listware.sdk.types.generated.StringWrapper prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* <pre>
* StringWrapper represents a StateFun string. This is recognized as:
* io.statefun.types/string
* </pre>
*
* Protobuf type {@code org.listware.sdk.reqreply.generated.StringWrapper}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:org.listware.sdk.reqreply.generated.StringWrapper)
org.listware.sdk.types.generated.StringWrapperOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_StringWrapper_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_StringWrapper_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.listware.sdk.types.generated.StringWrapper.class, org.listware.sdk.types.generated.StringWrapper.Builder.class);
}
// Construct using org.listware.sdk.types.generated.StringWrapper.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
value_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.listware.sdk.types.generated.Types.internal_static_org_listware_sdk_reqreply_generated_StringWrapper_descriptor;
}
@java.lang.Override
public org.listware.sdk.types.generated.StringWrapper getDefaultInstanceForType() {
return org.listware.sdk.types.generated.StringWrapper.getDefaultInstance();
}
@java.lang.Override
public org.listware.sdk.types.generated.StringWrapper build() {
org.listware.sdk.types.generated.StringWrapper result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.listware.sdk.types.generated.StringWrapper buildPartial() {
org.listware.sdk.types.generated.StringWrapper result = new org.listware.sdk.types.generated.StringWrapper(this);
result.value_ = value_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.listware.sdk.types.generated.StringWrapper) {
return mergeFrom((org.listware.sdk.types.generated.StringWrapper)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.listware.sdk.types.generated.StringWrapper other) {
if (other == org.listware.sdk.types.generated.StringWrapper.getDefaultInstance()) return this;
if (!other.getValue().isEmpty()) {
value_ = other.value_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.listware.sdk.types.generated.StringWrapper parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.listware.sdk.types.generated.StringWrapper) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object value_ = "";
/**
* <code>string value = 1;</code>
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
value_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>string value = 1;</code>
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>string value = 1;</code>
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
return this;
}
/**
* <code>string value = 1;</code>
*/
public Builder clearValue() {
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* <code>string value = 1;</code>
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
value_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:org.listware.sdk.reqreply.generated.StringWrapper)
}
// @@protoc_insertion_point(class_scope:org.listware.sdk.reqreply.generated.StringWrapper)
private static final org.listware.sdk.types.generated.StringWrapper DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.listware.sdk.types.generated.StringWrapper();
}
public static org.listware.sdk.types.generated.StringWrapper getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<StringWrapper>
PARSER = new com.google.protobuf.AbstractParser<StringWrapper>() {
@java.lang.Override
public StringWrapper parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new StringWrapper(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<StringWrapper> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<StringWrapper> getParserForType() {
return PARSER;
}
@java.lang.Override
public org.listware.sdk.types.generated.StringWrapper getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}

View File

@ -0,0 +1,19 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
public interface StringWrapperOrBuilder extends
// @@protoc_insertion_point(interface_extends:org.listware.sdk.reqreply.generated.StringWrapper)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string value = 1;</code>
*/
java.lang.String getValue();
/**
* <code>string value = 1;</code>
*/
com.google.protobuf.ByteString
getValueBytes();
}

View File

@ -0,0 +1,117 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbflink/types.proto
package org.listware.sdk.types.generated;
public final class Types {
private Types() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_BooleanWrapper_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_BooleanWrapper_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_IntWrapper_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_IntWrapper_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_FloatWrapper_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_FloatWrapper_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_LongWrapper_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_LongWrapper_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_DoubleWrapper_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_DoubleWrapper_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_org_listware_sdk_reqreply_generated_StringWrapper_descriptor;
static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_org_listware_sdk_reqreply_generated_StringWrapper_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\023pbflink/types.proto\022#org.listware.sdk." +
"reqreply.generated\"\037\n\016BooleanWrapper\022\r\n\005" +
"value\030\001 \001(\010\"\033\n\nIntWrapper\022\r\n\005value\030\001 \001(\017" +
"\"\035\n\014FloatWrapper\022\r\n\005value\030\001 \001(\002\"\034\n\013LongW" +
"rapper\022\r\n\005value\030\001 \001(\020\"\036\n\rDoubleWrapper\022\r" +
"\n\005value\030\001 \001(\001\"\036\n\rStringWrapper\022\r\n\005value\030" +
"\001 \001(\tBO\n org.listware.sdk.types.generate" +
"dP\001Z)git.fg-tech.ru/listware/proto/sdk/p" +
"bflinkb\006proto3"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
}, assigner);
internal_static_org_listware_sdk_reqreply_generated_BooleanWrapper_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_org_listware_sdk_reqreply_generated_BooleanWrapper_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_BooleanWrapper_descriptor,
new java.lang.String[] { "Value", });
internal_static_org_listware_sdk_reqreply_generated_IntWrapper_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_org_listware_sdk_reqreply_generated_IntWrapper_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_IntWrapper_descriptor,
new java.lang.String[] { "Value", });
internal_static_org_listware_sdk_reqreply_generated_FloatWrapper_descriptor =
getDescriptor().getMessageTypes().get(2);
internal_static_org_listware_sdk_reqreply_generated_FloatWrapper_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_FloatWrapper_descriptor,
new java.lang.String[] { "Value", });
internal_static_org_listware_sdk_reqreply_generated_LongWrapper_descriptor =
getDescriptor().getMessageTypes().get(3);
internal_static_org_listware_sdk_reqreply_generated_LongWrapper_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_LongWrapper_descriptor,
new java.lang.String[] { "Value", });
internal_static_org_listware_sdk_reqreply_generated_DoubleWrapper_descriptor =
getDescriptor().getMessageTypes().get(4);
internal_static_org_listware_sdk_reqreply_generated_DoubleWrapper_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_DoubleWrapper_descriptor,
new java.lang.String[] { "Value", });
internal_static_org_listware_sdk_reqreply_generated_StringWrapper_descriptor =
getDescriptor().getMessageTypes().get(5);
internal_static_org_listware_sdk_reqreply_generated_StringWrapper_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_org_listware_sdk_reqreply_generated_StringWrapper_descriptor,
new java.lang.String[] { "Value", });
}
// @@protoc_insertion_point(outer_class_scope)
}

57
pom.xml Normal file
View File

@ -0,0 +1,57 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.listware</groupId>
<artifactId>proto</artifactId>
<version>1.0</version>
<dependencies>
<dependency>
<groupId>com.google.protobuf</groupId>
<artifactId>protobuf-java</artifactId>
<version>3.7.1</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-stub</artifactId>
<version>1.51.0</version>
</dependency>
<dependency>
<groupId>io.grpc</groupId>
<artifactId>grpc-protobuf</artifactId>
<version>1.51.0</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
</dependencies>
<build>
<finalName>proto</finalName>
<sourceDirectory>java</sourceDirectory>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>11</release>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>gitea</id>
<url>http://git.fg-tech.ru/api/packages/listware/maven</url>
</repository>
</repositories>
<distributionManagement>
<repository>
<id>gitea</id>
<url>http://git.fg-tech.ru/api/packages/listware/maven</url>
</repository>
<snapshotRepository>
<id>gitea</id>
<url>http://git.fg-tech.ru/api/packages/listware/maven</url>
</snapshotRepository>
</distributionManagement>
</project>

96
proto/pbcmdb/pbcmdb.proto Normal file
View File

@ -0,0 +1,96 @@
/* Copyright 2022 Listware */
syntax = "proto3";
package org.listware.sdk.pbcmdb;
option java_outer_classname = "Core";
option java_package = "org.listware.sdk.pbcmdb";
option go_package = "git.fg-tech.ru/listware/proto/sdk/pbcmdb";
import "pbtypes/pbfunction.proto";
enum Method {
CREATE = 0;
CREATE_CHILD = 1;
UPDATE = 2;
DELETE = 3;
CREATE_TRIGGER = 4;
DELETE_TRIGGER = 5;
}
message Trigger {
string type = 1;
pbtypes.FunctionType function_type = 2 [json_name = "function_type"];
}
message ObjectMessage {
Method method = 1;
string type = 2;
string name = 3;
bytes payload = 4;
// add links from func to object uuid
repeated pbtypes.FunctionMessage functions = 5;
}
message TypeMessage {
Method method = 1;
string name = 2;
bytes payload = 3;
// add links from func to object uuid
repeated pbtypes.FunctionMessage functions = 4;
}
message LinkMessage {
Method method = 1;
string name = 2;
string type = 3;
string to = 4;
bytes payload = 5;
}
message RegisterTypeMessage {
string id = 1;
TypeMessage type_message = 2;
}
message RegisterObjectMessage {
string id = 1;
ObjectMessage object_message = 2;
}
message RegisterLinkMessage {
string id = 1;
LinkMessage link_message = 2;
}
message RegisterFunctionMessage {
string id = 1;
pbtypes.FunctionMessage function_message = 2;
}
message RegisterMessage {
repeated RegisterTypeMessage type_messages = 1;
repeated RegisterObjectMessage object_messages = 2;
repeated RegisterLinkMessage link_messages = 3;
repeated RegisterFunctionMessage function_messages = 4;
}
message Meta {
string key = 1;
string id = 2;
string rev = 3;
}
message Request {
string key = 1;
string collection = 2;
bytes payload = 3;
}
message Response {
Meta meta = 1;
bytes payload = 2;
}

View File

@ -0,0 +1,41 @@
/* Copyright 2022 Listware */
syntax = "proto3";
package org.listware.sdk.pbcmdb.pbqdsl;
option java_outer_classname = "QDSL";
option java_package = "org.listware.sdk.pbcmdb.pbqdsl";
option go_package = "git.fg-tech.ru/flistware/proto/sdk/pbcmdb/pbqdsl";
message Options {
bool id = 1;
bool key = 2;
bool name = 3;
bool type = 4;
bool object = 5;
bool link = 6;
bool linkId = 7;
bool path = 8;
bool remove = 9;
}
message Query {
string query = 1;
Options options = 2;
}
message Element {
string id = 1;
string key = 2;
string name = 3;
string type = 4;
bytes object = 5;
string linkId = 6;
bytes link = 7;
bytes path = 8;
}
message Elements {
repeated Element Elements = 1;
}

View File

@ -0,0 +1,15 @@
/* Copyright 2022 Listware */
syntax = "proto3";
package org.listware.sdk.pbcmdb.pbqdsl;
option java_outer_classname = "Service";
option java_package = "org.listware.sdk.pbcmdb.pbqdsl";
option go_package = "git.fg-tech.ru/listware/proto/sdk/pbcmdb/pbqdsl";
import "pbcmdb/pbqdsl/pbqdsl.proto";
service QdslService {
rpc Qdsl(Query) returns (Elements) {}
}

View File

@ -0,0 +1,46 @@
/* Copyright 2022 Listware */
syntax = "proto3";
package org.listware.sdk.pbcmdb;
option java_outer_classname = "Service";
option java_package = "org.listware.sdk.pbcmdb";
option go_package = "git.fg-tech.ru/listware/proto/sdk/pbcmdb";
import "pbcmdb/pbcmdb.proto";
service VertexService {
rpc Create(Request) returns (Response) {}
rpc Read(Request) returns (Response) {}
rpc Update(Request) returns (Response) {}
rpc Remove(Request) returns (Response) {}
}
service EdgeService {
rpc Create(Request) returns (Response) {}
rpc Read(Request) returns (Response) {}
rpc Update(Request) returns (Response) {}
rpc Remove(Request) returns (Response) {}
}
service ObjectService {
rpc Create(Request) returns (Response) {}
rpc Read(Request) returns (Response) {}
rpc Update(Request) returns (Response) {}
rpc Remove(Request) returns (Response) {}
}
service TypeService {
rpc Create(Request) returns (Response) {}
rpc Read(Request) returns (Response) {}
rpc Update(Request) returns (Response) {}
rpc Remove(Request) returns (Response) {}
}
service LinkService {
rpc Create(Request) returns (Response) {}
rpc Read(Request) returns (Response) {}
rpc Update(Request) returns (Response) {}
rpc Remove(Request) returns (Response) {}
}

View File

@ -0,0 +1,176 @@
/* Copyright 2022 Listware */
syntax = "proto3";
package org.listware.sdk.reqreply.generated;
option java_package = "org.listware.sdk.reqreply.generated";
option java_multiple_files = true;
option go_package = "git.fg-tech.ru/listware/proto/sdk/pbflink";
// -------------------------------------------------------------------------------------------------------------------
// Common message definitions
// -------------------------------------------------------------------------------------------------------------------
// An Address is the unique identity of an individual StatefulFunction, containing
// a function's type and an unique identifier within the type. The function's
// type denotes the "class" of function to invoke, while the unique identifier addresses the
// invocation to a specific function instance.
message Address {
string namespace = 1;
string type = 2;
string id = 3;
}
message TypedValue {
string typename = 1;
// has_value is set to differentiate a zero length value bytes explicitly set,
// or a non existing value.
bool has_value = 2;
bytes value = 3;
}
// -------------------------------------------------------------------------------------------------------------------
// Messages sent to a Remote Function
// -------------------------------------------------------------------------------------------------------------------
// The following section contains all the message types that are sent
// from Flink to a remote function.
message ToFunction {
// PersistedValue represents a PersistedValue's value that is managed by Flink on behalf of a remote function.
message PersistedValue {
// The unique name of the persisted state.
string state_name = 1;
// The serialized state value
TypedValue state_value = 2;
}
// Invocation represents a remote function call, it associated with an (optional) return address,
// and an argument.
message Invocation {
// The address of the function that requested the invocation (possibly absent)
Address caller = 1;
// The invocation argument (aka the message sent to the target function)
TypedValue argument = 2;
}
// InvocationBatchRequest represents a request to invoke a remote function. It is always associated with a target
// address (the function to invoke), and a list of values for registered state.
message InvocationBatchRequest {
// The address of the function to invoke
Address target = 1;
// A list of PersistedValues that were registered as a persisted state.
repeated PersistedValue state = 2;
// A non empty (at least one) list of invocations
repeated Invocation invocations = 3;
}
oneof request {
InvocationBatchRequest invocation = 100;
}
}
// -------------------------------------------------------------------------------------------------------------------
// Messages sent from a Remote Function
// -------------------------------------------------------------------------------------------------------------------
// The following section contains messages sent from a remote function back to Flink.
message FromFunction {
// MutatePersistedValueCommand represents a command sent from a remote function to Flink,
// requesting a change to a persisted value.
message PersistedValueMutation {
enum MutationType {
DELETE = 0;
MODIFY = 1;
}
MutationType mutation_type = 1;
string state_name = 2;
TypedValue state_value = 3;
}
// Invocation represents a remote function call, it associated with a (mandatory) target address,
// and an argument.
message Invocation {
// The target function to invoke
Address target = 1;
// The invocation argument (aka the message sent to the target function)
TypedValue argument = 2;
}
// DelayedInvocation represents a delayed remote function call with a target address, an argument
// and a delay in milliseconds, after which this message to be sent.
message DelayedInvocation {
// a boolean value (default false) that indicates rather this is a regular delayed message, or (true) a message
// cancellation request.
// in case of a regular delayed message all other fields are expected to be preset, otherwise only the
// cancellation_token is expected
bool is_cancellation_request = 10;
// an optional cancellation token that can be used to request the "unsending" of a delayed message.
string cancellation_token = 11;
// the amount of milliseconds to wait before sending this message
int64 delay_in_ms = 1;
// the target address to send this message to
Address target = 2;
// the invocation argument
TypedValue argument = 3;
}
// EgressMessage an argument to forward to an egress.
// An egress is identified by a namespace and type (see EgressIdentifier SDK class).
// The argument is an io.statefun.sdk.reqreply.TypedValue.
message EgressMessage {
// The target egress namespace
string egress_namespace = 1;
// The target egress type
string egress_type = 2;
// egress argument
TypedValue argument = 3;
}
// InvocationResponse represents a result of an io.statefun.sdk.reqreply.ToFunction.InvocationBatchRequest
// it contains a list of state mutation to preform as a result of computing this batch, and a list of outgoing messages.
message InvocationResponse {
repeated PersistedValueMutation state_mutations = 1;
repeated Invocation outgoing_messages = 2;
repeated DelayedInvocation delayed_invocations = 3;
repeated EgressMessage outgoing_egresses = 4;
}
// ExpirationSpec represents TTL (Time-To-Live) configuration for persisted states.
message ExpirationSpec {
enum ExpireMode {
NONE = 0;
AFTER_WRITE = 1;
AFTER_INVOKE = 2;
}
ExpireMode mode = 1;
int64 expire_after_millis = 2;
}
// PersistedValueSpec represents specifications of a function's persisted value state.
message PersistedValueSpec {
string state_name = 1;
ExpirationSpec expiration_spec = 2;
string type_typename = 3;
}
// IncompleteInvocationContext represents a result of an io.statefun.sdk.reqreply.ToFunction.InvocationBatchRequest,
// which should be used as the response if the InvocationBatchRequest provided incomplete information about the
// invocation, e.g. insufficient state values were provided.
message IncompleteInvocationContext {
repeated PersistedValueSpec missing_values = 1;
}
// Response sent from the function, as a result of an io.statefun.sdk.reqreply.ToFunction.InvocationBatchRequest.
// It can be one of the following types:
// - io.statefun.sdk.reqreply.FromFunction.InvocationResponse
// - io.statefun.sdk.reqreply.FromFunction.IncompleteInvocationContext
oneof response {
InvocationResponse invocation_result = 100;
IncompleteInvocationContext incomplete_invocation_context = 101;
}
}

45
proto/pbflink/types.proto Normal file
View File

@ -0,0 +1,45 @@
/* Copyright 2022 Listware */
syntax = "proto3";
package org.listware.sdk.reqreply.generated;
option java_package = "org.listware.sdk.types.generated";
option java_multiple_files = true;
option go_package = "git.fg-tech.ru/listware/proto/sdk/pbflink";
// BooleanWrapper represents a StateFun primitive type of a boolean value. This is recognized as:
// io.statefun.types/bool
message BooleanWrapper {
bool value = 1;
}
// IntWrapper represents a StateFun primitive type of an signed 32 bit integer value. This is recognized as:
// io.statefun.types/int
message IntWrapper {
sfixed32 value = 1;
}
// FloatWrapper represents a StateFun primitive type of a signed float value. This is recognized as:
// io.statefun.types/float
message FloatWrapper {
float value = 1;
}
// LongWrapper represents a StateFun primitive type of a signed 64 bit long value. This is recognized as:
// io.statefun.types/long
message LongWrapper {
sfixed64 value = 1;
}
// DoubleWrapper represents a StateFun primitive type of a double value. This is recognized as:
// io.statefun.types/double
message DoubleWrapper {
double value = 1;
}
// StringWrapper represents a StateFun string. This is recognized as:
// io.statefun.types/string
message StringWrapper {
string value = 1;
}

View File

@ -0,0 +1,66 @@
/* Copyright 2022 Listware */
syntax = "proto3";
package org.listware.sdk.pbtypes;
option java_outer_classname = "Functions";
option java_package = "org.listware.sdk";
option go_package = "git.fg-tech.ru/listware/proto/sdk/pbtypes";
import "google/protobuf/any.proto";
// Function - is a CMDB object which represent Flink's stateful function
message Function {
FunctionType type = 1 [json_name="function_type"];
string description = 2;
repeated FunctionParameter params = 3;
}
message FunctionParameter {
string type = 1;
string name = 2;
google.protobuf.Any default = 3;
}
message FunctionType {
string namespace = 1;
string type = 2;
}
message ReplyEgress {
string namespace = 1;
string topic = 2;
string id = 3;
}
message FunctionResult {
ReplyEgress reply_egress = 1;
bool complete = 2;
string error = 3;
}
message FunctionContext {
FunctionType function_type = 1 [json_name="function_type"];
string id = 2;
bytes value = 3;
FunctionContext callback = 4;
string url = 5;
bytes context = 6;
ReplyEgress reply_egress = 7 [json_name="reply_egress"];
}
// FunctionTypeRoute - is a LinkMessage from cmdb.Type to Function
message FunctionTypeRoute {
bool grounded = 1;
}
// FunctionRoute - is a LinkMessage from cmdb.Object to Function
message FunctionRoute {
string url = 1;
}
message FunctionMessage {
string type = 1;
FunctionRoute route = 2;
}

5
protocol.go Normal file
View File

@ -0,0 +1,5 @@
// Copyright 2022 Listware
package proto
//go:generate ./generate.sh

1197
sdk/pbcmdb/pbcmdb.pb.go Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,493 @@
// Copyright 2022 Listware
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.7.1
// source: pbcmdb/pbqdsl/pbqdsl.proto
package pbqdsl
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type Options struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id bool `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Key bool `protobuf:"varint,2,opt,name=key,proto3" json:"key,omitempty"`
Name bool `protobuf:"varint,3,opt,name=name,proto3" json:"name,omitempty"`
Type bool `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
Object bool `protobuf:"varint,5,opt,name=object,proto3" json:"object,omitempty"`
Link bool `protobuf:"varint,6,opt,name=link,proto3" json:"link,omitempty"`
LinkId bool `protobuf:"varint,7,opt,name=linkId,proto3" json:"linkId,omitempty"`
Path bool `protobuf:"varint,8,opt,name=path,proto3" json:"path,omitempty"`
Remove bool `protobuf:"varint,9,opt,name=remove,proto3" json:"remove,omitempty"`
}
func (x *Options) Reset() {
*x = Options{}
if protoimpl.UnsafeEnabled {
mi := &file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Options) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Options) ProtoMessage() {}
func (x *Options) ProtoReflect() protoreflect.Message {
mi := &file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Options.ProtoReflect.Descriptor instead.
func (*Options) Descriptor() ([]byte, []int) {
return file_pbcmdb_pbqdsl_pbqdsl_proto_rawDescGZIP(), []int{0}
}
func (x *Options) GetId() bool {
if x != nil {
return x.Id
}
return false
}
func (x *Options) GetKey() bool {
if x != nil {
return x.Key
}
return false
}
func (x *Options) GetName() bool {
if x != nil {
return x.Name
}
return false
}
func (x *Options) GetType() bool {
if x != nil {
return x.Type
}
return false
}
func (x *Options) GetObject() bool {
if x != nil {
return x.Object
}
return false
}
func (x *Options) GetLink() bool {
if x != nil {
return x.Link
}
return false
}
func (x *Options) GetLinkId() bool {
if x != nil {
return x.LinkId
}
return false
}
func (x *Options) GetPath() bool {
if x != nil {
return x.Path
}
return false
}
func (x *Options) GetRemove() bool {
if x != nil {
return x.Remove
}
return false
}
type Query struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
}
func (x *Query) Reset() {
*x = Query{}
if protoimpl.UnsafeEnabled {
mi := &file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Query) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Query) ProtoMessage() {}
func (x *Query) ProtoReflect() protoreflect.Message {
mi := &file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Query.ProtoReflect.Descriptor instead.
func (*Query) Descriptor() ([]byte, []int) {
return file_pbcmdb_pbqdsl_pbqdsl_proto_rawDescGZIP(), []int{1}
}
func (x *Query) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
func (x *Query) GetOptions() *Options {
if x != nil {
return x.Options
}
return nil
}
type Element struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Type string `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
Object []byte `protobuf:"bytes,5,opt,name=object,proto3" json:"object,omitempty"`
LinkId string `protobuf:"bytes,6,opt,name=linkId,proto3" json:"linkId,omitempty"`
Link []byte `protobuf:"bytes,7,opt,name=link,proto3" json:"link,omitempty"`
Path []byte `protobuf:"bytes,8,opt,name=path,proto3" json:"path,omitempty"`
}
func (x *Element) Reset() {
*x = Element{}
if protoimpl.UnsafeEnabled {
mi := &file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Element) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Element) ProtoMessage() {}
func (x *Element) ProtoReflect() protoreflect.Message {
mi := &file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Element.ProtoReflect.Descriptor instead.
func (*Element) Descriptor() ([]byte, []int) {
return file_pbcmdb_pbqdsl_pbqdsl_proto_rawDescGZIP(), []int{2}
}
func (x *Element) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Element) GetKey() string {
if x != nil {
return x.Key
}
return ""
}
func (x *Element) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Element) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *Element) GetObject() []byte {
if x != nil {
return x.Object
}
return nil
}
func (x *Element) GetLinkId() string {
if x != nil {
return x.LinkId
}
return ""
}
func (x *Element) GetLink() []byte {
if x != nil {
return x.Link
}
return nil
}
func (x *Element) GetPath() []byte {
if x != nil {
return x.Path
}
return nil
}
type Elements struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Elements []*Element `protobuf:"bytes,1,rep,name=Elements,proto3" json:"Elements,omitempty"`
}
func (x *Elements) Reset() {
*x = Elements{}
if protoimpl.UnsafeEnabled {
mi := &file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Elements) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Elements) ProtoMessage() {}
func (x *Elements) ProtoReflect() protoreflect.Message {
mi := &file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Elements.ProtoReflect.Descriptor instead.
func (*Elements) Descriptor() ([]byte, []int) {
return file_pbcmdb_pbqdsl_pbqdsl_proto_rawDescGZIP(), []int{3}
}
func (x *Elements) GetElements() []*Element {
if x != nil {
return x.Elements
}
return nil
}
var File_pbcmdb_pbqdsl_pbqdsl_proto protoreflect.FileDescriptor
var file_pbcmdb_pbqdsl_pbqdsl_proto_rawDesc = []byte{
0x0a, 0x1a, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2f, 0x70, 0x62, 0x71, 0x64, 0x73, 0x6c, 0x2f,
0x70, 0x62, 0x71, 0x64, 0x73, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x6f, 0x72,
0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70,
0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x70, 0x62, 0x71, 0x64, 0x73, 0x6c, 0x22, 0xc3, 0x01, 0x0a,
0x07, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01,
0x20, 0x01, 0x28, 0x08, 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18,
0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12,
0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x74, 0x79,
0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01,
0x28, 0x08, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69,
0x6e, 0x6b, 0x18, 0x06, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x16,
0x0a, 0x06, 0x6c, 0x69, 0x6e, 0x6b, 0x49, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06,
0x6c, 0x69, 0x6e, 0x6b, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x08,
0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65,
0x6d, 0x6f, 0x76, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x72, 0x65, 0x6d, 0x6f,
0x76, 0x65, 0x22, 0x60, 0x0a, 0x05, 0x51, 0x75, 0x65, 0x72, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x71,
0x75, 0x65, 0x72, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72,
0x79, 0x12, 0x41, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01,
0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72,
0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x70, 0x62, 0x71,
0x64, 0x73, 0x6c, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74,
0x69, 0x6f, 0x6e, 0x73, 0x22, 0xab, 0x01, 0x0a, 0x07, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74,
0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
0x65, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x62,
0x6a, 0x65, 0x63, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6f, 0x62, 0x6a, 0x65,
0x63, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x69, 0x6e, 0x6b, 0x49, 0x64, 0x18, 0x06, 0x20, 0x01,
0x28, 0x09, 0x52, 0x06, 0x6c, 0x69, 0x6e, 0x6b, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6c, 0x69,
0x6e, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x6c, 0x69, 0x6e, 0x6b, 0x12, 0x12,
0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x70, 0x61,
0x74, 0x68, 0x22, 0x4f, 0x0a, 0x08, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x43,
0x0a, 0x08, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b,
0x32, 0x27, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e,
0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x70, 0x62, 0x71, 0x64, 0x73,
0x6c, 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x08, 0x45, 0x6c, 0x65, 0x6d, 0x65,
0x6e, 0x74, 0x73, 0x42, 0x58, 0x0a, 0x1e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77,
0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x70,
0x62, 0x71, 0x64, 0x73, 0x6c, 0x42, 0x04, 0x51, 0x44, 0x53, 0x4c, 0x5a, 0x30, 0x67, 0x69, 0x74,
0x2e, 0x66, 0x67, 0x2d, 0x74, 0x65, 0x63, 0x68, 0x2e, 0x72, 0x75, 0x2f, 0x66, 0x6c, 0x69, 0x73,
0x74, 0x77, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x64, 0x6b, 0x2f,
0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2f, 0x70, 0x62, 0x71, 0x64, 0x73, 0x6c, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_pbcmdb_pbqdsl_pbqdsl_proto_rawDescOnce sync.Once
file_pbcmdb_pbqdsl_pbqdsl_proto_rawDescData = file_pbcmdb_pbqdsl_pbqdsl_proto_rawDesc
)
func file_pbcmdb_pbqdsl_pbqdsl_proto_rawDescGZIP() []byte {
file_pbcmdb_pbqdsl_pbqdsl_proto_rawDescOnce.Do(func() {
file_pbcmdb_pbqdsl_pbqdsl_proto_rawDescData = protoimpl.X.CompressGZIP(file_pbcmdb_pbqdsl_pbqdsl_proto_rawDescData)
})
return file_pbcmdb_pbqdsl_pbqdsl_proto_rawDescData
}
var file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
var file_pbcmdb_pbqdsl_pbqdsl_proto_goTypes = []interface{}{
(*Options)(nil), // 0: org.listware.sdk.pbcmdb.pbqdsl.Options
(*Query)(nil), // 1: org.listware.sdk.pbcmdb.pbqdsl.Query
(*Element)(nil), // 2: org.listware.sdk.pbcmdb.pbqdsl.Element
(*Elements)(nil), // 3: org.listware.sdk.pbcmdb.pbqdsl.Elements
}
var file_pbcmdb_pbqdsl_pbqdsl_proto_depIdxs = []int32{
0, // 0: org.listware.sdk.pbcmdb.pbqdsl.Query.options:type_name -> org.listware.sdk.pbcmdb.pbqdsl.Options
2, // 1: org.listware.sdk.pbcmdb.pbqdsl.Elements.Elements:type_name -> org.listware.sdk.pbcmdb.pbqdsl.Element
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_pbcmdb_pbqdsl_pbqdsl_proto_init() }
func file_pbcmdb_pbqdsl_pbqdsl_proto_init() {
if File_pbcmdb_pbqdsl_pbqdsl_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Options); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Query); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Element); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Elements); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_pbcmdb_pbqdsl_pbqdsl_proto_rawDesc,
NumEnums: 0,
NumMessages: 4,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_pbcmdb_pbqdsl_pbqdsl_proto_goTypes,
DependencyIndexes: file_pbcmdb_pbqdsl_pbqdsl_proto_depIdxs,
MessageInfos: file_pbcmdb_pbqdsl_pbqdsl_proto_msgTypes,
}.Build()
File_pbcmdb_pbqdsl_pbqdsl_proto = out.File
file_pbcmdb_pbqdsl_pbqdsl_proto_rawDesc = nil
file_pbcmdb_pbqdsl_pbqdsl_proto_goTypes = nil
file_pbcmdb_pbqdsl_pbqdsl_proto_depIdxs = nil
}

View File

@ -0,0 +1,85 @@
// Copyright 2022 Listware
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.7.1
// source: pbcmdb/pbqdsl/service.proto
package pbqdsl
import (
pbqdsl "git.fg-tech.ru/flistware/proto/sdk/pbcmdb/pbqdsl"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_pbcmdb_pbqdsl_service_proto protoreflect.FileDescriptor
var file_pbcmdb_pbqdsl_service_proto_rawDesc = []byte{
0x0a, 0x1b, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2f, 0x70, 0x62, 0x71, 0x64, 0x73, 0x6c, 0x2f,
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1e, 0x6f,
0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e,
0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x70, 0x62, 0x71, 0x64, 0x73, 0x6c, 0x1a, 0x1a, 0x70,
0x62, 0x63, 0x6d, 0x64, 0x62, 0x2f, 0x70, 0x62, 0x71, 0x64, 0x73, 0x6c, 0x2f, 0x70, 0x62, 0x71,
0x64, 0x73, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x32, 0x68, 0x0a, 0x0b, 0x51, 0x64, 0x73,
0x6c, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x59, 0x0a, 0x04, 0x51, 0x64, 0x73, 0x6c,
0x12, 0x25, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e,
0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x70, 0x62, 0x71, 0x64, 0x73,
0x6c, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x28, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69,
0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64,
0x62, 0x2e, 0x70, 0x62, 0x71, 0x64, 0x73, 0x6c, 0x2e, 0x45, 0x6c, 0x65, 0x6d, 0x65, 0x6e, 0x74,
0x73, 0x22, 0x00, 0x42, 0x5a, 0x0a, 0x1e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77,
0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x70,
0x62, 0x71, 0x64, 0x73, 0x6c, 0x42, 0x07, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5a, 0x2f,
0x67, 0x69, 0x74, 0x2e, 0x66, 0x67, 0x2d, 0x74, 0x65, 0x63, 0x68, 0x2e, 0x72, 0x75, 0x2f, 0x6c,
0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x64,
0x6b, 0x2f, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2f, 0x70, 0x62, 0x71, 0x64, 0x73, 0x6c, 0x62,
0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_pbcmdb_pbqdsl_service_proto_goTypes = []interface{}{
(*pbqdsl.Query)(nil), // 0: org.listware.sdk.pbcmdb.pbqdsl.Query
(*pbqdsl.Elements)(nil), // 1: org.listware.sdk.pbcmdb.pbqdsl.Elements
}
var file_pbcmdb_pbqdsl_service_proto_depIdxs = []int32{
0, // 0: org.listware.sdk.pbcmdb.pbqdsl.QdslService.Qdsl:input_type -> org.listware.sdk.pbcmdb.pbqdsl.Query
1, // 1: org.listware.sdk.pbcmdb.pbqdsl.QdslService.Qdsl:output_type -> org.listware.sdk.pbcmdb.pbqdsl.Elements
1, // [1:2] is the sub-list for method output_type
0, // [0:1] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_pbcmdb_pbqdsl_service_proto_init() }
func file_pbcmdb_pbqdsl_service_proto_init() {
if File_pbcmdb_pbqdsl_service_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_pbcmdb_pbqdsl_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_pbcmdb_pbqdsl_service_proto_goTypes,
DependencyIndexes: file_pbcmdb_pbqdsl_service_proto_depIdxs,
}.Build()
File_pbcmdb_pbqdsl_service_proto = out.File
file_pbcmdb_pbqdsl_service_proto_rawDesc = nil
file_pbcmdb_pbqdsl_service_proto_goTypes = nil
file_pbcmdb_pbqdsl_service_proto_depIdxs = nil
}

View File

@ -0,0 +1,102 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package pbqdsl
import (
context "context"
pbqdsl "git.fg-tech.ru/flistware/proto/sdk/pbcmdb/pbqdsl"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// QdslServiceClient is the client API for QdslService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type QdslServiceClient interface {
Qdsl(ctx context.Context, in *pbqdsl.Query, opts ...grpc.CallOption) (*pbqdsl.Elements, error)
}
type qdslServiceClient struct {
cc grpc.ClientConnInterface
}
func NewQdslServiceClient(cc grpc.ClientConnInterface) QdslServiceClient {
return &qdslServiceClient{cc}
}
func (c *qdslServiceClient) Qdsl(ctx context.Context, in *pbqdsl.Query, opts ...grpc.CallOption) (*pbqdsl.Elements, error) {
out := new(pbqdsl.Elements)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.pbqdsl.QdslService/Qdsl", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QdslServiceServer is the server API for QdslService service.
// All implementations must embed UnimplementedQdslServiceServer
// for forward compatibility
type QdslServiceServer interface {
Qdsl(context.Context, *pbqdsl.Query) (*pbqdsl.Elements, error)
mustEmbedUnimplementedQdslServiceServer()
}
// UnimplementedQdslServiceServer must be embedded to have forward compatible implementations.
type UnimplementedQdslServiceServer struct {
}
func (UnimplementedQdslServiceServer) Qdsl(context.Context, *pbqdsl.Query) (*pbqdsl.Elements, error) {
return nil, status.Errorf(codes.Unimplemented, "method Qdsl not implemented")
}
func (UnimplementedQdslServiceServer) mustEmbedUnimplementedQdslServiceServer() {}
// UnsafeQdslServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to QdslServiceServer will
// result in compilation errors.
type UnsafeQdslServiceServer interface {
mustEmbedUnimplementedQdslServiceServer()
}
func RegisterQdslServiceServer(s grpc.ServiceRegistrar, srv QdslServiceServer) {
s.RegisterService(&QdslService_ServiceDesc, srv)
}
func _QdslService_Qdsl_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(pbqdsl.Query)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QdslServiceServer).Qdsl(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.pbqdsl.QdslService/Qdsl",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QdslServiceServer).Qdsl(ctx, req.(*pbqdsl.Query))
}
return interceptor(ctx, in, info, handler)
}
// QdslService_ServiceDesc is the grpc.ServiceDesc for QdslService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var QdslService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "org.listware.sdk.pbcmdb.pbqdsl.QdslService",
HandlerType: (*QdslServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Qdsl",
Handler: _QdslService_Qdsl_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "pbcmdb/pbqdsl/service.proto",
}

220
sdk/pbcmdb/service.pb.go Normal file
View File

@ -0,0 +1,220 @@
// Copyright 2022 Listware
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.7.1
// source: pbcmdb/service.proto
package pbcmdb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
var File_pbcmdb_service_proto protoreflect.FileDescriptor
var file_pbcmdb_service_proto_rawDesc = []byte{
0x0a, 0x14, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x17, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74,
0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x1a,
0x13, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2f, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x32, 0xd1, 0x02, 0x0a, 0x0d, 0x56, 0x65, 0x72, 0x74, 0x65, 0x78, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e,
0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72,
0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x12,
0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73,
0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65,
0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70,
0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65,
0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e,
0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72,
0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x76,
0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65,
0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61,
0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xcf, 0x02, 0x0a, 0x0b, 0x45, 0x64, 0x67,
0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72,
0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77,
0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a, 0x04, 0x52, 0x65, 0x61,
0x64, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65,
0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61,
0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65,
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61,
0x74, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72,
0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77,
0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52,
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x06, 0x52, 0x65, 0x6d,
0x6f, 0x76, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61,
0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74,
0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xd1, 0x02, 0x0a, 0x0d, 0x4f,
0x62, 0x6a, 0x65, 0x63, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f, 0x0a, 0x06,
0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73,
0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62,
0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c,
0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d,
0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4d, 0x0a,
0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74,
0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69,
0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64,
0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a, 0x06,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73,
0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62,
0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c,
0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d,
0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f, 0x0a,
0x06, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69,
0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64,
0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e,
0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63,
0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x32, 0xcf,
0x02, 0x0a, 0x0b, 0x54, 0x79, 0x70, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x4f,
0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c,
0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d,
0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67,
0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62,
0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x4d, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69,
0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64,
0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67, 0x2e,
0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63,
0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x4f,
0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c,
0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d,
0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72, 0x67,
0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62,
0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12,
0x4f, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e,
0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63,
0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72,
0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70,
0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
0x32, 0xcf, 0x02, 0x0a, 0x0b, 0x4c, 0x69, 0x6e, 0x6b, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x12, 0x4f, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67,
0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62,
0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f,
0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e,
0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x12, 0x4d, 0x0a, 0x04, 0x52, 0x65, 0x61, 0x64, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67, 0x2e,
0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63,
0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f, 0x72,
0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70,
0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00,
0x12, 0x4f, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72, 0x67,
0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62,
0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x6f,
0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e,
0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
0x00, 0x12, 0x4f, 0x0a, 0x06, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x12, 0x20, 0x2e, 0x6f, 0x72,
0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70,
0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e,
0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b,
0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
0x22, 0x00, 0x42, 0x4c, 0x0a, 0x17, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61,
0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62, 0x42, 0x07, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5a, 0x28, 0x67, 0x69, 0x74, 0x2e, 0x66, 0x67, 0x2d, 0x74,
0x65, 0x63, 0x68, 0x2e, 0x72, 0x75, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2f,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x63, 0x6d, 0x64, 0x62,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var file_pbcmdb_service_proto_goTypes = []interface{}{
(*Request)(nil), // 0: org.listware.sdk.pbcmdb.Request
(*Response)(nil), // 1: org.listware.sdk.pbcmdb.Response
}
var file_pbcmdb_service_proto_depIdxs = []int32{
0, // 0: org.listware.sdk.pbcmdb.VertexService.Create:input_type -> org.listware.sdk.pbcmdb.Request
0, // 1: org.listware.sdk.pbcmdb.VertexService.Read:input_type -> org.listware.sdk.pbcmdb.Request
0, // 2: org.listware.sdk.pbcmdb.VertexService.Update:input_type -> org.listware.sdk.pbcmdb.Request
0, // 3: org.listware.sdk.pbcmdb.VertexService.Remove:input_type -> org.listware.sdk.pbcmdb.Request
0, // 4: org.listware.sdk.pbcmdb.EdgeService.Create:input_type -> org.listware.sdk.pbcmdb.Request
0, // 5: org.listware.sdk.pbcmdb.EdgeService.Read:input_type -> org.listware.sdk.pbcmdb.Request
0, // 6: org.listware.sdk.pbcmdb.EdgeService.Update:input_type -> org.listware.sdk.pbcmdb.Request
0, // 7: org.listware.sdk.pbcmdb.EdgeService.Remove:input_type -> org.listware.sdk.pbcmdb.Request
0, // 8: org.listware.sdk.pbcmdb.ObjectService.Create:input_type -> org.listware.sdk.pbcmdb.Request
0, // 9: org.listware.sdk.pbcmdb.ObjectService.Read:input_type -> org.listware.sdk.pbcmdb.Request
0, // 10: org.listware.sdk.pbcmdb.ObjectService.Update:input_type -> org.listware.sdk.pbcmdb.Request
0, // 11: org.listware.sdk.pbcmdb.ObjectService.Remove:input_type -> org.listware.sdk.pbcmdb.Request
0, // 12: org.listware.sdk.pbcmdb.TypeService.Create:input_type -> org.listware.sdk.pbcmdb.Request
0, // 13: org.listware.sdk.pbcmdb.TypeService.Read:input_type -> org.listware.sdk.pbcmdb.Request
0, // 14: org.listware.sdk.pbcmdb.TypeService.Update:input_type -> org.listware.sdk.pbcmdb.Request
0, // 15: org.listware.sdk.pbcmdb.TypeService.Remove:input_type -> org.listware.sdk.pbcmdb.Request
0, // 16: org.listware.sdk.pbcmdb.LinkService.Create:input_type -> org.listware.sdk.pbcmdb.Request
0, // 17: org.listware.sdk.pbcmdb.LinkService.Read:input_type -> org.listware.sdk.pbcmdb.Request
0, // 18: org.listware.sdk.pbcmdb.LinkService.Update:input_type -> org.listware.sdk.pbcmdb.Request
0, // 19: org.listware.sdk.pbcmdb.LinkService.Remove:input_type -> org.listware.sdk.pbcmdb.Request
1, // 20: org.listware.sdk.pbcmdb.VertexService.Create:output_type -> org.listware.sdk.pbcmdb.Response
1, // 21: org.listware.sdk.pbcmdb.VertexService.Read:output_type -> org.listware.sdk.pbcmdb.Response
1, // 22: org.listware.sdk.pbcmdb.VertexService.Update:output_type -> org.listware.sdk.pbcmdb.Response
1, // 23: org.listware.sdk.pbcmdb.VertexService.Remove:output_type -> org.listware.sdk.pbcmdb.Response
1, // 24: org.listware.sdk.pbcmdb.EdgeService.Create:output_type -> org.listware.sdk.pbcmdb.Response
1, // 25: org.listware.sdk.pbcmdb.EdgeService.Read:output_type -> org.listware.sdk.pbcmdb.Response
1, // 26: org.listware.sdk.pbcmdb.EdgeService.Update:output_type -> org.listware.sdk.pbcmdb.Response
1, // 27: org.listware.sdk.pbcmdb.EdgeService.Remove:output_type -> org.listware.sdk.pbcmdb.Response
1, // 28: org.listware.sdk.pbcmdb.ObjectService.Create:output_type -> org.listware.sdk.pbcmdb.Response
1, // 29: org.listware.sdk.pbcmdb.ObjectService.Read:output_type -> org.listware.sdk.pbcmdb.Response
1, // 30: org.listware.sdk.pbcmdb.ObjectService.Update:output_type -> org.listware.sdk.pbcmdb.Response
1, // 31: org.listware.sdk.pbcmdb.ObjectService.Remove:output_type -> org.listware.sdk.pbcmdb.Response
1, // 32: org.listware.sdk.pbcmdb.TypeService.Create:output_type -> org.listware.sdk.pbcmdb.Response
1, // 33: org.listware.sdk.pbcmdb.TypeService.Read:output_type -> org.listware.sdk.pbcmdb.Response
1, // 34: org.listware.sdk.pbcmdb.TypeService.Update:output_type -> org.listware.sdk.pbcmdb.Response
1, // 35: org.listware.sdk.pbcmdb.TypeService.Remove:output_type -> org.listware.sdk.pbcmdb.Response
1, // 36: org.listware.sdk.pbcmdb.LinkService.Create:output_type -> org.listware.sdk.pbcmdb.Response
1, // 37: org.listware.sdk.pbcmdb.LinkService.Read:output_type -> org.listware.sdk.pbcmdb.Response
1, // 38: org.listware.sdk.pbcmdb.LinkService.Update:output_type -> org.listware.sdk.pbcmdb.Response
1, // 39: org.listware.sdk.pbcmdb.LinkService.Remove:output_type -> org.listware.sdk.pbcmdb.Response
20, // [20:40] is the sub-list for method output_type
0, // [0:20] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_pbcmdb_service_proto_init() }
func file_pbcmdb_service_proto_init() {
if File_pbcmdb_service_proto != nil {
return
}
file_pbcmdb_pbcmdb_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_pbcmdb_service_proto_rawDesc,
NumEnums: 0,
NumMessages: 0,
NumExtensions: 0,
NumServices: 5,
},
GoTypes: file_pbcmdb_service_proto_goTypes,
DependencyIndexes: file_pbcmdb_service_proto_depIdxs,
}.Build()
File_pbcmdb_service_proto = out.File
file_pbcmdb_service_proto_rawDesc = nil
file_pbcmdb_service_proto_goTypes = nil
file_pbcmdb_service_proto_depIdxs = nil
}

View File

@ -0,0 +1,985 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package pbcmdb
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// VertexServiceClient is the client API for VertexService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type VertexServiceClient interface {
Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Read(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Update(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Remove(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
type vertexServiceClient struct {
cc grpc.ClientConnInterface
}
func NewVertexServiceClient(cc grpc.ClientConnInterface) VertexServiceClient {
return &vertexServiceClient{cc}
}
func (c *vertexServiceClient) Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.VertexService/Create", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *vertexServiceClient) Read(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.VertexService/Read", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *vertexServiceClient) Update(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.VertexService/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *vertexServiceClient) Remove(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.VertexService/Remove", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// VertexServiceServer is the server API for VertexService service.
// All implementations must embed UnimplementedVertexServiceServer
// for forward compatibility
type VertexServiceServer interface {
Create(context.Context, *Request) (*Response, error)
Read(context.Context, *Request) (*Response, error)
Update(context.Context, *Request) (*Response, error)
Remove(context.Context, *Request) (*Response, error)
mustEmbedUnimplementedVertexServiceServer()
}
// UnimplementedVertexServiceServer must be embedded to have forward compatible implementations.
type UnimplementedVertexServiceServer struct {
}
func (UnimplementedVertexServiceServer) Create(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (UnimplementedVertexServiceServer) Read(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
}
func (UnimplementedVertexServiceServer) Update(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func (UnimplementedVertexServiceServer) Remove(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented")
}
func (UnimplementedVertexServiceServer) mustEmbedUnimplementedVertexServiceServer() {}
// UnsafeVertexServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to VertexServiceServer will
// result in compilation errors.
type UnsafeVertexServiceServer interface {
mustEmbedUnimplementedVertexServiceServer()
}
func RegisterVertexServiceServer(s grpc.ServiceRegistrar, srv VertexServiceServer) {
s.RegisterService(&VertexService_ServiceDesc, srv)
}
func _VertexService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VertexServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.VertexService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VertexServiceServer).Create(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _VertexService_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VertexServiceServer).Read(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.VertexService/Read",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VertexServiceServer).Read(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _VertexService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VertexServiceServer).Update(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.VertexService/Update",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VertexServiceServer).Update(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _VertexService_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(VertexServiceServer).Remove(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.VertexService/Remove",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(VertexServiceServer).Remove(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
// VertexService_ServiceDesc is the grpc.ServiceDesc for VertexService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var VertexService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "org.listware.sdk.pbcmdb.VertexService",
HandlerType: (*VertexServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _VertexService_Create_Handler,
},
{
MethodName: "Read",
Handler: _VertexService_Read_Handler,
},
{
MethodName: "Update",
Handler: _VertexService_Update_Handler,
},
{
MethodName: "Remove",
Handler: _VertexService_Remove_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "pbcmdb/service.proto",
}
// EdgeServiceClient is the client API for EdgeService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type EdgeServiceClient interface {
Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Read(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Update(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Remove(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
type edgeServiceClient struct {
cc grpc.ClientConnInterface
}
func NewEdgeServiceClient(cc grpc.ClientConnInterface) EdgeServiceClient {
return &edgeServiceClient{cc}
}
func (c *edgeServiceClient) Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.EdgeService/Create", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *edgeServiceClient) Read(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.EdgeService/Read", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *edgeServiceClient) Update(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.EdgeService/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *edgeServiceClient) Remove(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.EdgeService/Remove", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// EdgeServiceServer is the server API for EdgeService service.
// All implementations must embed UnimplementedEdgeServiceServer
// for forward compatibility
type EdgeServiceServer interface {
Create(context.Context, *Request) (*Response, error)
Read(context.Context, *Request) (*Response, error)
Update(context.Context, *Request) (*Response, error)
Remove(context.Context, *Request) (*Response, error)
mustEmbedUnimplementedEdgeServiceServer()
}
// UnimplementedEdgeServiceServer must be embedded to have forward compatible implementations.
type UnimplementedEdgeServiceServer struct {
}
func (UnimplementedEdgeServiceServer) Create(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (UnimplementedEdgeServiceServer) Read(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
}
func (UnimplementedEdgeServiceServer) Update(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func (UnimplementedEdgeServiceServer) Remove(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented")
}
func (UnimplementedEdgeServiceServer) mustEmbedUnimplementedEdgeServiceServer() {}
// UnsafeEdgeServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to EdgeServiceServer will
// result in compilation errors.
type UnsafeEdgeServiceServer interface {
mustEmbedUnimplementedEdgeServiceServer()
}
func RegisterEdgeServiceServer(s grpc.ServiceRegistrar, srv EdgeServiceServer) {
s.RegisterService(&EdgeService_ServiceDesc, srv)
}
func _EdgeService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EdgeServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.EdgeService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EdgeServiceServer).Create(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _EdgeService_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EdgeServiceServer).Read(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.EdgeService/Read",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EdgeServiceServer).Read(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _EdgeService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EdgeServiceServer).Update(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.EdgeService/Update",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EdgeServiceServer).Update(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _EdgeService_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(EdgeServiceServer).Remove(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.EdgeService/Remove",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(EdgeServiceServer).Remove(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
// EdgeService_ServiceDesc is the grpc.ServiceDesc for EdgeService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var EdgeService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "org.listware.sdk.pbcmdb.EdgeService",
HandlerType: (*EdgeServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _EdgeService_Create_Handler,
},
{
MethodName: "Read",
Handler: _EdgeService_Read_Handler,
},
{
MethodName: "Update",
Handler: _EdgeService_Update_Handler,
},
{
MethodName: "Remove",
Handler: _EdgeService_Remove_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "pbcmdb/service.proto",
}
// ObjectServiceClient is the client API for ObjectService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type ObjectServiceClient interface {
Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Read(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Update(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Remove(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
type objectServiceClient struct {
cc grpc.ClientConnInterface
}
func NewObjectServiceClient(cc grpc.ClientConnInterface) ObjectServiceClient {
return &objectServiceClient{cc}
}
func (c *objectServiceClient) Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.ObjectService/Create", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *objectServiceClient) Read(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.ObjectService/Read", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *objectServiceClient) Update(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.ObjectService/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *objectServiceClient) Remove(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.ObjectService/Remove", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// ObjectServiceServer is the server API for ObjectService service.
// All implementations must embed UnimplementedObjectServiceServer
// for forward compatibility
type ObjectServiceServer interface {
Create(context.Context, *Request) (*Response, error)
Read(context.Context, *Request) (*Response, error)
Update(context.Context, *Request) (*Response, error)
Remove(context.Context, *Request) (*Response, error)
mustEmbedUnimplementedObjectServiceServer()
}
// UnimplementedObjectServiceServer must be embedded to have forward compatible implementations.
type UnimplementedObjectServiceServer struct {
}
func (UnimplementedObjectServiceServer) Create(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (UnimplementedObjectServiceServer) Read(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
}
func (UnimplementedObjectServiceServer) Update(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func (UnimplementedObjectServiceServer) Remove(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented")
}
func (UnimplementedObjectServiceServer) mustEmbedUnimplementedObjectServiceServer() {}
// UnsafeObjectServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to ObjectServiceServer will
// result in compilation errors.
type UnsafeObjectServiceServer interface {
mustEmbedUnimplementedObjectServiceServer()
}
func RegisterObjectServiceServer(s grpc.ServiceRegistrar, srv ObjectServiceServer) {
s.RegisterService(&ObjectService_ServiceDesc, srv)
}
func _ObjectService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ObjectServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.ObjectService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectServiceServer).Create(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _ObjectService_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ObjectServiceServer).Read(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.ObjectService/Read",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectServiceServer).Read(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _ObjectService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ObjectServiceServer).Update(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.ObjectService/Update",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectServiceServer).Update(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _ObjectService_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(ObjectServiceServer).Remove(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.ObjectService/Remove",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(ObjectServiceServer).Remove(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
// ObjectService_ServiceDesc is the grpc.ServiceDesc for ObjectService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var ObjectService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "org.listware.sdk.pbcmdb.ObjectService",
HandlerType: (*ObjectServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _ObjectService_Create_Handler,
},
{
MethodName: "Read",
Handler: _ObjectService_Read_Handler,
},
{
MethodName: "Update",
Handler: _ObjectService_Update_Handler,
},
{
MethodName: "Remove",
Handler: _ObjectService_Remove_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "pbcmdb/service.proto",
}
// TypeServiceClient is the client API for TypeService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type TypeServiceClient interface {
Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Read(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Update(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Remove(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
type typeServiceClient struct {
cc grpc.ClientConnInterface
}
func NewTypeServiceClient(cc grpc.ClientConnInterface) TypeServiceClient {
return &typeServiceClient{cc}
}
func (c *typeServiceClient) Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.TypeService/Create", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *typeServiceClient) Read(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.TypeService/Read", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *typeServiceClient) Update(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.TypeService/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *typeServiceClient) Remove(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.TypeService/Remove", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// TypeServiceServer is the server API for TypeService service.
// All implementations must embed UnimplementedTypeServiceServer
// for forward compatibility
type TypeServiceServer interface {
Create(context.Context, *Request) (*Response, error)
Read(context.Context, *Request) (*Response, error)
Update(context.Context, *Request) (*Response, error)
Remove(context.Context, *Request) (*Response, error)
mustEmbedUnimplementedTypeServiceServer()
}
// UnimplementedTypeServiceServer must be embedded to have forward compatible implementations.
type UnimplementedTypeServiceServer struct {
}
func (UnimplementedTypeServiceServer) Create(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (UnimplementedTypeServiceServer) Read(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
}
func (UnimplementedTypeServiceServer) Update(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func (UnimplementedTypeServiceServer) Remove(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented")
}
func (UnimplementedTypeServiceServer) mustEmbedUnimplementedTypeServiceServer() {}
// UnsafeTypeServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to TypeServiceServer will
// result in compilation errors.
type UnsafeTypeServiceServer interface {
mustEmbedUnimplementedTypeServiceServer()
}
func RegisterTypeServiceServer(s grpc.ServiceRegistrar, srv TypeServiceServer) {
s.RegisterService(&TypeService_ServiceDesc, srv)
}
func _TypeService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TypeServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.TypeService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TypeServiceServer).Create(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _TypeService_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TypeServiceServer).Read(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.TypeService/Read",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TypeServiceServer).Read(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _TypeService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TypeServiceServer).Update(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.TypeService/Update",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TypeServiceServer).Update(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _TypeService_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(TypeServiceServer).Remove(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.TypeService/Remove",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(TypeServiceServer).Remove(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
// TypeService_ServiceDesc is the grpc.ServiceDesc for TypeService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var TypeService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "org.listware.sdk.pbcmdb.TypeService",
HandlerType: (*TypeServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _TypeService_Create_Handler,
},
{
MethodName: "Read",
Handler: _TypeService_Read_Handler,
},
{
MethodName: "Update",
Handler: _TypeService_Update_Handler,
},
{
MethodName: "Remove",
Handler: _TypeService_Remove_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "pbcmdb/service.proto",
}
// LinkServiceClient is the client API for LinkService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type LinkServiceClient interface {
Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Read(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Update(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
Remove(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
}
type linkServiceClient struct {
cc grpc.ClientConnInterface
}
func NewLinkServiceClient(cc grpc.ClientConnInterface) LinkServiceClient {
return &linkServiceClient{cc}
}
func (c *linkServiceClient) Create(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.LinkService/Create", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *linkServiceClient) Read(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.LinkService/Read", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *linkServiceClient) Update(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.LinkService/Update", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *linkServiceClient) Remove(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
out := new(Response)
err := c.cc.Invoke(ctx, "/org.listware.sdk.pbcmdb.LinkService/Remove", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// LinkServiceServer is the server API for LinkService service.
// All implementations must embed UnimplementedLinkServiceServer
// for forward compatibility
type LinkServiceServer interface {
Create(context.Context, *Request) (*Response, error)
Read(context.Context, *Request) (*Response, error)
Update(context.Context, *Request) (*Response, error)
Remove(context.Context, *Request) (*Response, error)
mustEmbedUnimplementedLinkServiceServer()
}
// UnimplementedLinkServiceServer must be embedded to have forward compatible implementations.
type UnimplementedLinkServiceServer struct {
}
func (UnimplementedLinkServiceServer) Create(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
func (UnimplementedLinkServiceServer) Read(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Read not implemented")
}
func (UnimplementedLinkServiceServer) Update(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Update not implemented")
}
func (UnimplementedLinkServiceServer) Remove(context.Context, *Request) (*Response, error) {
return nil, status.Errorf(codes.Unimplemented, "method Remove not implemented")
}
func (UnimplementedLinkServiceServer) mustEmbedUnimplementedLinkServiceServer() {}
// UnsafeLinkServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to LinkServiceServer will
// result in compilation errors.
type UnsafeLinkServiceServer interface {
mustEmbedUnimplementedLinkServiceServer()
}
func RegisterLinkServiceServer(s grpc.ServiceRegistrar, srv LinkServiceServer) {
s.RegisterService(&LinkService_ServiceDesc, srv)
}
func _LinkService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LinkServiceServer).Create(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.LinkService/Create",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LinkServiceServer).Create(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _LinkService_Read_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LinkServiceServer).Read(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.LinkService/Read",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LinkServiceServer).Read(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _LinkService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LinkServiceServer).Update(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.LinkService/Update",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LinkServiceServer).Update(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
func _LinkService_Remove_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(Request)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(LinkServiceServer).Remove(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/org.listware.sdk.pbcmdb.LinkService/Remove",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(LinkServiceServer).Remove(ctx, req.(*Request))
}
return interceptor(ctx, in, info, handler)
}
// LinkService_ServiceDesc is the grpc.ServiceDesc for LinkService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var LinkService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "org.listware.sdk.pbcmdb.LinkService",
HandlerType: (*LinkServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "Create",
Handler: _LinkService_Create_Handler,
},
{
MethodName: "Read",
Handler: _LinkService_Read_Handler,
},
{
MethodName: "Update",
Handler: _LinkService_Update_Handler,
},
{
MethodName: "Remove",
Handler: _LinkService_Remove_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "pbcmdb/service.proto",
}

File diff suppressed because it is too large Load Diff

474
sdk/pbflink/types.pb.go Normal file
View File

@ -0,0 +1,474 @@
// Copyright 2022 Listware
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.7.1
// source: pbflink/types.proto
package pbflink
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// BooleanWrapper represents a StateFun primitive type of a boolean value. This is recognized as:
// io.statefun.types/bool
type BooleanWrapper struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value bool `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *BooleanWrapper) Reset() {
*x = BooleanWrapper{}
if protoimpl.UnsafeEnabled {
mi := &file_pbflink_types_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BooleanWrapper) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BooleanWrapper) ProtoMessage() {}
func (x *BooleanWrapper) ProtoReflect() protoreflect.Message {
mi := &file_pbflink_types_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BooleanWrapper.ProtoReflect.Descriptor instead.
func (*BooleanWrapper) Descriptor() ([]byte, []int) {
return file_pbflink_types_proto_rawDescGZIP(), []int{0}
}
func (x *BooleanWrapper) GetValue() bool {
if x != nil {
return x.Value
}
return false
}
// IntWrapper represents a StateFun primitive type of an signed 32 bit integer value. This is recognized as:
// io.statefun.types/int
type IntWrapper struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value int32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *IntWrapper) Reset() {
*x = IntWrapper{}
if protoimpl.UnsafeEnabled {
mi := &file_pbflink_types_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IntWrapper) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IntWrapper) ProtoMessage() {}
func (x *IntWrapper) ProtoReflect() protoreflect.Message {
mi := &file_pbflink_types_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use IntWrapper.ProtoReflect.Descriptor instead.
func (*IntWrapper) Descriptor() ([]byte, []int) {
return file_pbflink_types_proto_rawDescGZIP(), []int{1}
}
func (x *IntWrapper) GetValue() int32 {
if x != nil {
return x.Value
}
return 0
}
// FloatWrapper represents a StateFun primitive type of a signed float value. This is recognized as:
// io.statefun.types/float
type FloatWrapper struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value float32 `protobuf:"fixed32,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *FloatWrapper) Reset() {
*x = FloatWrapper{}
if protoimpl.UnsafeEnabled {
mi := &file_pbflink_types_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FloatWrapper) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FloatWrapper) ProtoMessage() {}
func (x *FloatWrapper) ProtoReflect() protoreflect.Message {
mi := &file_pbflink_types_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FloatWrapper.ProtoReflect.Descriptor instead.
func (*FloatWrapper) Descriptor() ([]byte, []int) {
return file_pbflink_types_proto_rawDescGZIP(), []int{2}
}
func (x *FloatWrapper) GetValue() float32 {
if x != nil {
return x.Value
}
return 0
}
// LongWrapper represents a StateFun primitive type of a signed 64 bit long value. This is recognized as:
// io.statefun.types/long
type LongWrapper struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value int64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *LongWrapper) Reset() {
*x = LongWrapper{}
if protoimpl.UnsafeEnabled {
mi := &file_pbflink_types_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LongWrapper) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LongWrapper) ProtoMessage() {}
func (x *LongWrapper) ProtoReflect() protoreflect.Message {
mi := &file_pbflink_types_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use LongWrapper.ProtoReflect.Descriptor instead.
func (*LongWrapper) Descriptor() ([]byte, []int) {
return file_pbflink_types_proto_rawDescGZIP(), []int{3}
}
func (x *LongWrapper) GetValue() int64 {
if x != nil {
return x.Value
}
return 0
}
// DoubleWrapper represents a StateFun primitive type of a double value. This is recognized as:
// io.statefun.types/double
type DoubleWrapper struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *DoubleWrapper) Reset() {
*x = DoubleWrapper{}
if protoimpl.UnsafeEnabled {
mi := &file_pbflink_types_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DoubleWrapper) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DoubleWrapper) ProtoMessage() {}
func (x *DoubleWrapper) ProtoReflect() protoreflect.Message {
mi := &file_pbflink_types_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DoubleWrapper.ProtoReflect.Descriptor instead.
func (*DoubleWrapper) Descriptor() ([]byte, []int) {
return file_pbflink_types_proto_rawDescGZIP(), []int{4}
}
func (x *DoubleWrapper) GetValue() float64 {
if x != nil {
return x.Value
}
return 0
}
// StringWrapper represents a StateFun string. This is recognized as:
// io.statefun.types/string
type StringWrapper struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}
func (x *StringWrapper) Reset() {
*x = StringWrapper{}
if protoimpl.UnsafeEnabled {
mi := &file_pbflink_types_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StringWrapper) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StringWrapper) ProtoMessage() {}
func (x *StringWrapper) ProtoReflect() protoreflect.Message {
mi := &file_pbflink_types_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use StringWrapper.ProtoReflect.Descriptor instead.
func (*StringWrapper) Descriptor() ([]byte, []int) {
return file_pbflink_types_proto_rawDescGZIP(), []int{5}
}
func (x *StringWrapper) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
var File_pbflink_types_proto protoreflect.FileDescriptor
var file_pbflink_types_proto_rawDesc = []byte{
0x0a, 0x13, 0x70, 0x62, 0x66, 0x6c, 0x69, 0x6e, 0x6b, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x23, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77,
0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x72, 0x65, 0x71, 0x72, 0x65, 0x70, 0x6c, 0x79,
0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x22, 0x26, 0x0a, 0x0e, 0x42, 0x6f,
0x6f, 0x6c, 0x65, 0x61, 0x6e, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05,
0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x22, 0x22, 0x0a, 0x0a, 0x49, 0x6e, 0x74, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72,
0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0f, 0x52,
0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x24, 0x0a, 0x0c, 0x46, 0x6c, 0x6f, 0x61, 0x74, 0x57,
0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18,
0x01, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x23, 0x0a, 0x0b,
0x4c, 0x6f, 0x6e, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x10, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x22, 0x25, 0x0a, 0x0d, 0x44, 0x6f, 0x75, 0x62, 0x6c, 0x65, 0x57, 0x72, 0x61, 0x70, 0x70,
0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
0x01, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0x25, 0x0a, 0x0d, 0x53, 0x74, 0x72, 0x69,
0x6e, 0x67, 0x57, 0x72, 0x61, 0x70, 0x70, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c,
0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x42,
0x4f, 0x0a, 0x20, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e,
0x73, 0x64, 0x6b, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61,
0x74, 0x65, 0x64, 0x50, 0x01, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x2e, 0x66, 0x67, 0x2d, 0x74, 0x65,
0x63, 0x68, 0x2e, 0x72, 0x75, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2f, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x66, 0x6c, 0x69, 0x6e, 0x6b,
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_pbflink_types_proto_rawDescOnce sync.Once
file_pbflink_types_proto_rawDescData = file_pbflink_types_proto_rawDesc
)
func file_pbflink_types_proto_rawDescGZIP() []byte {
file_pbflink_types_proto_rawDescOnce.Do(func() {
file_pbflink_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_pbflink_types_proto_rawDescData)
})
return file_pbflink_types_proto_rawDescData
}
var file_pbflink_types_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_pbflink_types_proto_goTypes = []interface{}{
(*BooleanWrapper)(nil), // 0: org.listware.sdk.reqreply.generated.BooleanWrapper
(*IntWrapper)(nil), // 1: org.listware.sdk.reqreply.generated.IntWrapper
(*FloatWrapper)(nil), // 2: org.listware.sdk.reqreply.generated.FloatWrapper
(*LongWrapper)(nil), // 3: org.listware.sdk.reqreply.generated.LongWrapper
(*DoubleWrapper)(nil), // 4: org.listware.sdk.reqreply.generated.DoubleWrapper
(*StringWrapper)(nil), // 5: org.listware.sdk.reqreply.generated.StringWrapper
}
var file_pbflink_types_proto_depIdxs = []int32{
0, // [0:0] is the sub-list for method output_type
0, // [0:0] is the sub-list for method input_type
0, // [0:0] is the sub-list for extension type_name
0, // [0:0] is the sub-list for extension extendee
0, // [0:0] is the sub-list for field type_name
}
func init() { file_pbflink_types_proto_init() }
func file_pbflink_types_proto_init() {
if File_pbflink_types_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_pbflink_types_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*BooleanWrapper); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbflink_types_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*IntWrapper); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbflink_types_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FloatWrapper); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbflink_types_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*LongWrapper); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbflink_types_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DoubleWrapper); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbflink_types_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*StringWrapper); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_pbflink_types_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_pbflink_types_proto_goTypes,
DependencyIndexes: file_pbflink_types_proto_depIdxs,
MessageInfos: file_pbflink_types_proto_msgTypes,
}.Build()
File_pbflink_types_proto = out.File
file_pbflink_types_proto_rawDesc = nil
file_pbflink_types_proto_goTypes = nil
file_pbflink_types_proto_depIdxs = nil
}

View File

@ -0,0 +1,838 @@
// Copyright 2022 Listware
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.7.1
// source: pbtypes/pbfunction.proto
package pbtypes
import (
any "github.com/golang/protobuf/ptypes/any"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Function - is a CMDB object which represent Flink's stateful function
type Function struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Type *FunctionType `protobuf:"bytes,1,opt,name=type,json=function_type,proto3" json:"type,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Params []*FunctionParameter `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty"`
}
func (x *Function) Reset() {
*x = Function{}
if protoimpl.UnsafeEnabled {
mi := &file_pbtypes_pbfunction_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Function) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Function) ProtoMessage() {}
func (x *Function) ProtoReflect() protoreflect.Message {
mi := &file_pbtypes_pbfunction_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Function.ProtoReflect.Descriptor instead.
func (*Function) Descriptor() ([]byte, []int) {
return file_pbtypes_pbfunction_proto_rawDescGZIP(), []int{0}
}
func (x *Function) GetType() *FunctionType {
if x != nil {
return x.Type
}
return nil
}
func (x *Function) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Function) GetParams() []*FunctionParameter {
if x != nil {
return x.Params
}
return nil
}
type FunctionParameter struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Default *any.Any `protobuf:"bytes,3,opt,name=default,proto3" json:"default,omitempty"`
}
func (x *FunctionParameter) Reset() {
*x = FunctionParameter{}
if protoimpl.UnsafeEnabled {
mi := &file_pbtypes_pbfunction_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FunctionParameter) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FunctionParameter) ProtoMessage() {}
func (x *FunctionParameter) ProtoReflect() protoreflect.Message {
mi := &file_pbtypes_pbfunction_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FunctionParameter.ProtoReflect.Descriptor instead.
func (*FunctionParameter) Descriptor() ([]byte, []int) {
return file_pbtypes_pbfunction_proto_rawDescGZIP(), []int{1}
}
func (x *FunctionParameter) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *FunctionParameter) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *FunctionParameter) GetDefault() *any.Any {
if x != nil {
return x.Default
}
return nil
}
type FunctionType struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
}
func (x *FunctionType) Reset() {
*x = FunctionType{}
if protoimpl.UnsafeEnabled {
mi := &file_pbtypes_pbfunction_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FunctionType) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FunctionType) ProtoMessage() {}
func (x *FunctionType) ProtoReflect() protoreflect.Message {
mi := &file_pbtypes_pbfunction_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FunctionType.ProtoReflect.Descriptor instead.
func (*FunctionType) Descriptor() ([]byte, []int) {
return file_pbtypes_pbfunction_proto_rawDescGZIP(), []int{2}
}
func (x *FunctionType) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *FunctionType) GetType() string {
if x != nil {
return x.Type
}
return ""
}
type ReplyEgress struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
Topic string `protobuf:"bytes,2,opt,name=topic,proto3" json:"topic,omitempty"`
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *ReplyEgress) Reset() {
*x = ReplyEgress{}
if protoimpl.UnsafeEnabled {
mi := &file_pbtypes_pbfunction_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ReplyEgress) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ReplyEgress) ProtoMessage() {}
func (x *ReplyEgress) ProtoReflect() protoreflect.Message {
mi := &file_pbtypes_pbfunction_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ReplyEgress.ProtoReflect.Descriptor instead.
func (*ReplyEgress) Descriptor() ([]byte, []int) {
return file_pbtypes_pbfunction_proto_rawDescGZIP(), []int{3}
}
func (x *ReplyEgress) GetNamespace() string {
if x != nil {
return x.Namespace
}
return ""
}
func (x *ReplyEgress) GetTopic() string {
if x != nil {
return x.Topic
}
return ""
}
func (x *ReplyEgress) GetId() string {
if x != nil {
return x.Id
}
return ""
}
type FunctionResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
ReplyEgress *ReplyEgress `protobuf:"bytes,1,opt,name=reply_egress,json=replyEgress,proto3" json:"reply_egress,omitempty"`
Complete bool `protobuf:"varint,2,opt,name=complete,proto3" json:"complete,omitempty"`
Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"`
}
func (x *FunctionResult) Reset() {
*x = FunctionResult{}
if protoimpl.UnsafeEnabled {
mi := &file_pbtypes_pbfunction_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FunctionResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FunctionResult) ProtoMessage() {}
func (x *FunctionResult) ProtoReflect() protoreflect.Message {
mi := &file_pbtypes_pbfunction_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FunctionResult.ProtoReflect.Descriptor instead.
func (*FunctionResult) Descriptor() ([]byte, []int) {
return file_pbtypes_pbfunction_proto_rawDescGZIP(), []int{4}
}
func (x *FunctionResult) GetReplyEgress() *ReplyEgress {
if x != nil {
return x.ReplyEgress
}
return nil
}
func (x *FunctionResult) GetComplete() bool {
if x != nil {
return x.Complete
}
return false
}
func (x *FunctionResult) GetError() string {
if x != nil {
return x.Error
}
return ""
}
type FunctionContext struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
FunctionType *FunctionType `protobuf:"bytes,1,opt,name=function_type,proto3" json:"function_type,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
Callback *FunctionContext `protobuf:"bytes,4,opt,name=callback,proto3" json:"callback,omitempty"`
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
Context []byte `protobuf:"bytes,6,opt,name=context,proto3" json:"context,omitempty"`
ReplyEgress *ReplyEgress `protobuf:"bytes,7,opt,name=reply_egress,proto3" json:"reply_egress,omitempty"`
}
func (x *FunctionContext) Reset() {
*x = FunctionContext{}
if protoimpl.UnsafeEnabled {
mi := &file_pbtypes_pbfunction_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FunctionContext) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FunctionContext) ProtoMessage() {}
func (x *FunctionContext) ProtoReflect() protoreflect.Message {
mi := &file_pbtypes_pbfunction_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FunctionContext.ProtoReflect.Descriptor instead.
func (*FunctionContext) Descriptor() ([]byte, []int) {
return file_pbtypes_pbfunction_proto_rawDescGZIP(), []int{5}
}
func (x *FunctionContext) GetFunctionType() *FunctionType {
if x != nil {
return x.FunctionType
}
return nil
}
func (x *FunctionContext) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *FunctionContext) GetValue() []byte {
if x != nil {
return x.Value
}
return nil
}
func (x *FunctionContext) GetCallback() *FunctionContext {
if x != nil {
return x.Callback
}
return nil
}
func (x *FunctionContext) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *FunctionContext) GetContext() []byte {
if x != nil {
return x.Context
}
return nil
}
func (x *FunctionContext) GetReplyEgress() *ReplyEgress {
if x != nil {
return x.ReplyEgress
}
return nil
}
// FunctionTypeRoute - is a LinkMessage from cmdb.Type to Function
type FunctionTypeRoute struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Grounded bool `protobuf:"varint,1,opt,name=grounded,proto3" json:"grounded,omitempty"`
}
func (x *FunctionTypeRoute) Reset() {
*x = FunctionTypeRoute{}
if protoimpl.UnsafeEnabled {
mi := &file_pbtypes_pbfunction_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FunctionTypeRoute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FunctionTypeRoute) ProtoMessage() {}
func (x *FunctionTypeRoute) ProtoReflect() protoreflect.Message {
mi := &file_pbtypes_pbfunction_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FunctionTypeRoute.ProtoReflect.Descriptor instead.
func (*FunctionTypeRoute) Descriptor() ([]byte, []int) {
return file_pbtypes_pbfunction_proto_rawDescGZIP(), []int{6}
}
func (x *FunctionTypeRoute) GetGrounded() bool {
if x != nil {
return x.Grounded
}
return false
}
// FunctionRoute - is a LinkMessage from cmdb.Object to Function
type FunctionRoute struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
}
func (x *FunctionRoute) Reset() {
*x = FunctionRoute{}
if protoimpl.UnsafeEnabled {
mi := &file_pbtypes_pbfunction_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FunctionRoute) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FunctionRoute) ProtoMessage() {}
func (x *FunctionRoute) ProtoReflect() protoreflect.Message {
mi := &file_pbtypes_pbfunction_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FunctionRoute.ProtoReflect.Descriptor instead.
func (*FunctionRoute) Descriptor() ([]byte, []int) {
return file_pbtypes_pbfunction_proto_rawDescGZIP(), []int{7}
}
func (x *FunctionRoute) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
type FunctionMessage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
Route *FunctionRoute `protobuf:"bytes,2,opt,name=route,proto3" json:"route,omitempty"`
}
func (x *FunctionMessage) Reset() {
*x = FunctionMessage{}
if protoimpl.UnsafeEnabled {
mi := &file_pbtypes_pbfunction_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FunctionMessage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FunctionMessage) ProtoMessage() {}
func (x *FunctionMessage) ProtoReflect() protoreflect.Message {
mi := &file_pbtypes_pbfunction_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FunctionMessage.ProtoReflect.Descriptor instead.
func (*FunctionMessage) Descriptor() ([]byte, []int) {
return file_pbtypes_pbfunction_proto_rawDescGZIP(), []int{8}
}
func (x *FunctionMessage) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *FunctionMessage) GetRoute() *FunctionRoute {
if x != nil {
return x.Route
}
return nil
}
var File_pbtypes_pbfunction_proto protoreflect.FileDescriptor
var file_pbtypes_pbfunction_proto_rawDesc = []byte{
0x0a, 0x18, 0x70, 0x62, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x70, 0x62, 0x66, 0x75, 0x6e, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x6f, 0x72, 0x67, 0x2e,
0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x74,
0x79, 0x70, 0x65, 0x73, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f,
0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x61, 0x6e, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
0xb6, 0x01, 0x0a, 0x08, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, 0x04,
0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6f, 0x72, 0x67,
0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62,
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79,
0x70, 0x65, 0x52, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70,
0x65, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
0x69, 0x6f, 0x6e, 0x12, 0x43, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x03, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x2b, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61,
0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x46,
0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72,
0x52, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x22, 0x6b, 0x0a, 0x11, 0x46, 0x75, 0x6e, 0x63,
0x74, 0x69, 0x6f, 0x6e, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x12, 0x12, 0x0a,
0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70,
0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x61, 0x75, 0x6c, 0x74,
0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x41, 0x6e, 0x79, 0x52, 0x07, 0x64, 0x65,
0x66, 0x61, 0x75, 0x6c, 0x74, 0x22, 0x40, 0x0a, 0x0c, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70, 0x61,
0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70,
0x61, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x22, 0x51, 0x0a, 0x0b, 0x52, 0x65, 0x70, 0x6c, 0x79,
0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1c, 0x0a, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73, 0x70,
0x61, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x6e, 0x61, 0x6d, 0x65, 0x73,
0x70, 0x61, 0x63, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x18, 0x02, 0x20,
0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x70, 0x69, 0x63, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64,
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x8c, 0x01, 0x0a, 0x0e, 0x46,
0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x48, 0x0a,
0x0c, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61,
0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52,
0x65, 0x70, 0x6c, 0x79, 0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x52, 0x0b, 0x72, 0x65, 0x70, 0x6c,
0x79, 0x45, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x6c,
0x65, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6f, 0x6d, 0x70, 0x6c,
0x65, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0xc3, 0x02, 0x0a, 0x0f, 0x46, 0x75,
0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x12, 0x4c, 0x0a,
0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x26, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77,
0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e,
0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x0d, 0x66, 0x75,
0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69,
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76,
0x61, 0x6c, 0x75, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
0x65, 0x12, 0x45, 0x0a, 0x08, 0x63, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x18, 0x04, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x29, 0x2e, 0x6f, 0x72, 0x67, 0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61,
0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x46,
0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x52, 0x08,
0x63, 0x61, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18,
0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f,
0x6e, 0x74, 0x65, 0x78, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e,
0x74, 0x65, 0x78, 0x74, 0x12, 0x49, 0x0a, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x65, 0x67,
0x72, 0x65, 0x73, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6f, 0x72, 0x67,
0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62,
0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x45, 0x67, 0x72, 0x65, 0x73,
0x73, 0x52, 0x0c, 0x72, 0x65, 0x70, 0x6c, 0x79, 0x5f, 0x65, 0x67, 0x72, 0x65, 0x73, 0x73, 0x22,
0x2f, 0x0a, 0x11, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52,
0x6f, 0x75, 0x74, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x65, 0x64,
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x65, 0x64,
0x22, 0x21, 0x0a, 0x0d, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75, 0x74,
0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
0x75, 0x72, 0x6c, 0x22, 0x64, 0x0a, 0x0f, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x4d,
0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01,
0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3d, 0x0a, 0x05, 0x72, 0x6f,
0x75, 0x74, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x72, 0x67, 0x2e,
0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x70, 0x62, 0x74,
0x79, 0x70, 0x65, 0x73, 0x2e, 0x46, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x6f, 0x75,
0x74, 0x65, 0x52, 0x05, 0x72, 0x6f, 0x75, 0x74, 0x65, 0x42, 0x48, 0x0a, 0x10, 0x6f, 0x72, 0x67,
0x2e, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72, 0x65, 0x2e, 0x73, 0x64, 0x6b, 0x42, 0x09, 0x46,
0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5a, 0x29, 0x67, 0x69, 0x74, 0x2e, 0x66, 0x67,
0x2d, 0x74, 0x65, 0x63, 0x68, 0x2e, 0x72, 0x75, 0x2f, 0x6c, 0x69, 0x73, 0x74, 0x77, 0x61, 0x72,
0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x70, 0x62, 0x74, 0x79,
0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
file_pbtypes_pbfunction_proto_rawDescOnce sync.Once
file_pbtypes_pbfunction_proto_rawDescData = file_pbtypes_pbfunction_proto_rawDesc
)
func file_pbtypes_pbfunction_proto_rawDescGZIP() []byte {
file_pbtypes_pbfunction_proto_rawDescOnce.Do(func() {
file_pbtypes_pbfunction_proto_rawDescData = protoimpl.X.CompressGZIP(file_pbtypes_pbfunction_proto_rawDescData)
})
return file_pbtypes_pbfunction_proto_rawDescData
}
var file_pbtypes_pbfunction_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
var file_pbtypes_pbfunction_proto_goTypes = []interface{}{
(*Function)(nil), // 0: org.listware.sdk.pbtypes.Function
(*FunctionParameter)(nil), // 1: org.listware.sdk.pbtypes.FunctionParameter
(*FunctionType)(nil), // 2: org.listware.sdk.pbtypes.FunctionType
(*ReplyEgress)(nil), // 3: org.listware.sdk.pbtypes.ReplyEgress
(*FunctionResult)(nil), // 4: org.listware.sdk.pbtypes.FunctionResult
(*FunctionContext)(nil), // 5: org.listware.sdk.pbtypes.FunctionContext
(*FunctionTypeRoute)(nil), // 6: org.listware.sdk.pbtypes.FunctionTypeRoute
(*FunctionRoute)(nil), // 7: org.listware.sdk.pbtypes.FunctionRoute
(*FunctionMessage)(nil), // 8: org.listware.sdk.pbtypes.FunctionMessage
(*any.Any)(nil), // 9: google.protobuf.Any
}
var file_pbtypes_pbfunction_proto_depIdxs = []int32{
2, // 0: org.listware.sdk.pbtypes.Function.type:type_name -> org.listware.sdk.pbtypes.FunctionType
1, // 1: org.listware.sdk.pbtypes.Function.params:type_name -> org.listware.sdk.pbtypes.FunctionParameter
9, // 2: org.listware.sdk.pbtypes.FunctionParameter.default:type_name -> google.protobuf.Any
3, // 3: org.listware.sdk.pbtypes.FunctionResult.reply_egress:type_name -> org.listware.sdk.pbtypes.ReplyEgress
2, // 4: org.listware.sdk.pbtypes.FunctionContext.function_type:type_name -> org.listware.sdk.pbtypes.FunctionType
5, // 5: org.listware.sdk.pbtypes.FunctionContext.callback:type_name -> org.listware.sdk.pbtypes.FunctionContext
3, // 6: org.listware.sdk.pbtypes.FunctionContext.reply_egress:type_name -> org.listware.sdk.pbtypes.ReplyEgress
7, // 7: org.listware.sdk.pbtypes.FunctionMessage.route:type_name -> org.listware.sdk.pbtypes.FunctionRoute
8, // [8:8] is the sub-list for method output_type
8, // [8:8] is the sub-list for method input_type
8, // [8:8] is the sub-list for extension type_name
8, // [8:8] is the sub-list for extension extendee
0, // [0:8] is the sub-list for field type_name
}
func init() { file_pbtypes_pbfunction_proto_init() }
func file_pbtypes_pbfunction_proto_init() {
if File_pbtypes_pbfunction_proto != nil {
return
}
if !protoimpl.UnsafeEnabled {
file_pbtypes_pbfunction_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Function); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbtypes_pbfunction_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FunctionParameter); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbtypes_pbfunction_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FunctionType); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbtypes_pbfunction_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ReplyEgress); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbtypes_pbfunction_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FunctionResult); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbtypes_pbfunction_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FunctionContext); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbtypes_pbfunction_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FunctionTypeRoute); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbtypes_pbfunction_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FunctionRoute); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_pbtypes_pbfunction_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*FunctionMessage); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_pbtypes_pbfunction_proto_rawDesc,
NumEnums: 0,
NumMessages: 9,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_pbtypes_pbfunction_proto_goTypes,
DependencyIndexes: file_pbtypes_pbfunction_proto_depIdxs,
MessageInfos: file_pbtypes_pbfunction_proto_msgTypes,
}.Build()
File_pbtypes_pbfunction_proto = out.File
file_pbtypes_pbfunction_proto_rawDesc = nil
file_pbtypes_pbfunction_proto_goTypes = nil
file_pbtypes_pbfunction_proto_depIdxs = nil
}