delete
This commit is contained in:
parent
ef4001de02
commit
8c30290a3d
|
@ -1,23 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<projectDescription>
|
|
||||||
<name>proto</name>
|
|
||||||
<comment></comment>
|
|
||||||
<projects>
|
|
||||||
</projects>
|
|
||||||
<buildSpec>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
<buildCommand>
|
|
||||||
<name>org.eclipse.m2e.core.maven2Builder</name>
|
|
||||||
<arguments>
|
|
||||||
</arguments>
|
|
||||||
</buildCommand>
|
|
||||||
</buildSpec>
|
|
||||||
<natures>
|
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
|
||||||
<nature>org.eclipse.m2e.core.maven2Nature</nature>
|
|
||||||
</natures>
|
|
||||||
</projectDescription>
|
|
|
@ -1,51 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
|
|
||||||
<groupId>com.loafle.cms</groupId>
|
|
||||||
<artifactId>proto</artifactId>
|
|
||||||
<version>0.0.1-SNAPSHOT</version>
|
|
||||||
<packaging>jar</packaging>
|
|
||||||
|
|
||||||
<name>cms-proto</name>
|
|
||||||
<description>proto of cms</description>
|
|
||||||
<url>https://codenotfound.com/grpc-java-example.html</url>
|
|
||||||
|
|
||||||
<properties>
|
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
||||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
||||||
<java.version>1.8</java.version>
|
|
||||||
<grpc.version>1.20.0</grpc.version>
|
|
||||||
<protobuf-java.version>3.8.0</protobuf-java.version>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<dependencies>
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.grpc</groupId>
|
|
||||||
<artifactId>grpc-netty-shaded</artifactId>
|
|
||||||
<version>${grpc.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.grpc</groupId>
|
|
||||||
<artifactId>grpc-protobuf</artifactId>
|
|
||||||
<version>${grpc.version}</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>io.grpc</groupId>
|
|
||||||
<artifactId>grpc-stub</artifactId>
|
|
||||||
<version>${grpc.version}</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.google.protobuf</groupId>
|
|
||||||
<artifactId>protobuf-java</artifactId>
|
|
||||||
<version>${protobuf-java.version}</version>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
<build>
|
|
||||||
|
|
||||||
</build>
|
|
||||||
|
|
||||||
</project>
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,593 +0,0 @@
|
||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: common/search-pagination.proto
|
|
||||||
|
|
||||||
package com.loafle.cms.proto.common;
|
|
||||||
|
|
||||||
public final class SearchPaginationOuterClass {
|
|
||||||
private SearchPaginationOuterClass() {}
|
|
||||||
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 interface SearchPaginationOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:loafle.cms.proto.common.SearchPagination)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>int32 index = 1;</code>
|
|
||||||
*/
|
|
||||||
int getIndex();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>int32 size = 2;</code>
|
|
||||||
*/
|
|
||||||
int getSize();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Protobuf type {@code loafle.cms.proto.common.SearchPagination}
|
|
||||||
*/
|
|
||||||
public static final class SearchPagination extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:loafle.cms.proto.common.SearchPagination)
|
|
||||||
SearchPaginationOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use SearchPagination.newBuilder() to construct.
|
|
||||||
private SearchPagination(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private SearchPagination() {
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new SearchPagination();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private SearchPagination(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
this();
|
|
||||||
if (extensionRegistry == null) {
|
|
||||||
throw new java.lang.NullPointerException();
|
|
||||||
}
|
|
||||||
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: {
|
|
||||||
|
|
||||||
index_ = input.readInt32();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 16: {
|
|
||||||
|
|
||||||
size_ = input.readInt32();
|
|
||||||
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 com.loafle.cms.proto.common.SearchPaginationOuterClass.internal_static_loafle_cms_proto_common_SearchPagination_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return com.loafle.cms.proto.common.SearchPaginationOuterClass.internal_static_loafle_cms_proto_common_SearchPagination_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination.class, com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int INDEX_FIELD_NUMBER = 1;
|
|
||||||
private int index_;
|
|
||||||
/**
|
|
||||||
* <code>int32 index = 1;</code>
|
|
||||||
*/
|
|
||||||
public int getIndex() {
|
|
||||||
return index_;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int SIZE_FIELD_NUMBER = 2;
|
|
||||||
private int size_;
|
|
||||||
/**
|
|
||||||
* <code>int32 size = 2;</code>
|
|
||||||
*/
|
|
||||||
public int getSize() {
|
|
||||||
return size_;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 (index_ != 0) {
|
|
||||||
output.writeInt32(1, index_);
|
|
||||||
}
|
|
||||||
if (size_ != 0) {
|
|
||||||
output.writeInt32(2, size_);
|
|
||||||
}
|
|
||||||
unknownFields.writeTo(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
if (index_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeInt32Size(1, index_);
|
|
||||||
}
|
|
||||||
if (size_ != 0) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeInt32Size(2, size_);
|
|
||||||
}
|
|
||||||
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 com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination other = (com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination) obj;
|
|
||||||
|
|
||||||
if (getIndex()
|
|
||||||
!= other.getIndex()) return false;
|
|
||||||
if (getSize()
|
|
||||||
!= other.getSize()) 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) + INDEX_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getIndex();
|
|
||||||
hash = (37 * hash) + SIZE_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getSize();
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
|
||||||
memoizedHashCode = hash;
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination parseFrom(
|
|
||||||
java.nio.ByteBuffer data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination parseFrom(
|
|
||||||
com.google.protobuf.ByteString data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination 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 com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination 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 com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination 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(com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination 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 loafle.cms.proto.common.SearchPagination}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:loafle.cms.proto.common.SearchPagination)
|
|
||||||
com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPaginationOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return com.loafle.cms.proto.common.SearchPaginationOuterClass.internal_static_loafle_cms_proto_common_SearchPagination_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return com.loafle.cms.proto.common.SearchPaginationOuterClass.internal_static_loafle_cms_proto_common_SearchPagination_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination.class, com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination.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();
|
|
||||||
index_ = 0;
|
|
||||||
|
|
||||||
size_ = 0;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return com.loafle.cms.proto.common.SearchPaginationOuterClass.internal_static_loafle_cms_proto_common_SearchPagination_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination getDefaultInstanceForType() {
|
|
||||||
return com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination build() {
|
|
||||||
com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination buildPartial() {
|
|
||||||
com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination result = new com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination(this);
|
|
||||||
result.index_ = index_;
|
|
||||||
result.size_ = size_;
|
|
||||||
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 com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination) {
|
|
||||||
return mergeFrom((com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination other) {
|
|
||||||
if (other == com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination.getDefaultInstance()) return this;
|
|
||||||
if (other.getIndex() != 0) {
|
|
||||||
setIndex(other.getIndex());
|
|
||||||
}
|
|
||||||
if (other.getSize() != 0) {
|
|
||||||
setSize(other.getSize());
|
|
||||||
}
|
|
||||||
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 {
|
|
||||||
com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int index_ ;
|
|
||||||
/**
|
|
||||||
* <code>int32 index = 1;</code>
|
|
||||||
*/
|
|
||||||
public int getIndex() {
|
|
||||||
return index_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>int32 index = 1;</code>
|
|
||||||
*/
|
|
||||||
public Builder setIndex(int value) {
|
|
||||||
|
|
||||||
index_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>int32 index = 1;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearIndex() {
|
|
||||||
|
|
||||||
index_ = 0;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int size_ ;
|
|
||||||
/**
|
|
||||||
* <code>int32 size = 2;</code>
|
|
||||||
*/
|
|
||||||
public int getSize() {
|
|
||||||
return size_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>int32 size = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder setSize(int value) {
|
|
||||||
|
|
||||||
size_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>int32 size = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearSize() {
|
|
||||||
|
|
||||||
size_ = 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:loafle.cms.proto.common.SearchPagination)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:loafle.cms.proto.common.SearchPagination)
|
|
||||||
private static final com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<SearchPagination>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<SearchPagination>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public SearchPagination parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new SearchPagination(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<SearchPagination> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<SearchPagination> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.loafle.cms.proto.common.SearchPaginationOuterClass.SearchPagination getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_loafle_cms_proto_common_SearchPagination_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_loafle_cms_proto_common_SearchPagination_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\036common/search-pagination.proto\022\027loafle" +
|
|
||||||
".cms.proto.common\"/\n\020SearchPagination\022\r\n" +
|
|
||||||
"\005index\030\001 \001(\005\022\014\n\004size\030\002 \001(\005B`\n\033com.loafle" +
|
|
||||||
".cms.proto.commonZ\037git.loafle.net/cms/pr" +
|
|
||||||
"oto/common\370\001\001\242\002\002LF\252\002\027Loafle.Cms.Proto.Co" +
|
|
||||||
"mmonb\006proto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
});
|
|
||||||
internal_static_loafle_cms_proto_common_SearchPagination_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_loafle_cms_proto_common_SearchPagination_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_loafle_cms_proto_common_SearchPagination_descriptor,
|
|
||||||
new java.lang.String[] { "Index", "Size", });
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
|
@ -1,799 +0,0 @@
|
||||||
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
||||||
// source: common/search-sort.proto
|
|
||||||
|
|
||||||
package com.loafle.cms.proto.common;
|
|
||||||
|
|
||||||
public final class SearchSortOuterClass {
|
|
||||||
private SearchSortOuterClass() {}
|
|
||||||
public static void registerAllExtensions(
|
|
||||||
com.google.protobuf.ExtensionRegistryLite registry) {
|
|
||||||
}
|
|
||||||
|
|
||||||
public static void registerAllExtensions(
|
|
||||||
com.google.protobuf.ExtensionRegistry registry) {
|
|
||||||
registerAllExtensions(
|
|
||||||
(com.google.protobuf.ExtensionRegistryLite) registry);
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Protobuf enum {@code loafle.cms.proto.common.SearchOrder}
|
|
||||||
*/
|
|
||||||
public enum SearchOrder
|
|
||||||
implements com.google.protobuf.ProtocolMessageEnum {
|
|
||||||
/**
|
|
||||||
* <code>DESC = 0;</code>
|
|
||||||
*/
|
|
||||||
DESC(0),
|
|
||||||
/**
|
|
||||||
* <code>ASC = 1;</code>
|
|
||||||
*/
|
|
||||||
ASC(1),
|
|
||||||
UNRECOGNIZED(-1),
|
|
||||||
;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>DESC = 0;</code>
|
|
||||||
*/
|
|
||||||
public static final int DESC_VALUE = 0;
|
|
||||||
/**
|
|
||||||
* <code>ASC = 1;</code>
|
|
||||||
*/
|
|
||||||
public static final int ASC_VALUE = 1;
|
|
||||||
|
|
||||||
|
|
||||||
public final int getNumber() {
|
|
||||||
if (this == UNRECOGNIZED) {
|
|
||||||
throw new java.lang.IllegalArgumentException(
|
|
||||||
"Can't get the number of an unknown enum value.");
|
|
||||||
}
|
|
||||||
return value;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated Use {@link #forNumber(int)} instead.
|
|
||||||
*/
|
|
||||||
@java.lang.Deprecated
|
|
||||||
public static SearchOrder valueOf(int value) {
|
|
||||||
return forNumber(value);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static SearchOrder forNumber(int value) {
|
|
||||||
switch (value) {
|
|
||||||
case 0: return DESC;
|
|
||||||
case 1: return ASC;
|
|
||||||
default: return null;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static com.google.protobuf.Internal.EnumLiteMap<SearchOrder>
|
|
||||||
internalGetValueMap() {
|
|
||||||
return internalValueMap;
|
|
||||||
}
|
|
||||||
private static final com.google.protobuf.Internal.EnumLiteMap<
|
|
||||||
SearchOrder> internalValueMap =
|
|
||||||
new com.google.protobuf.Internal.EnumLiteMap<SearchOrder>() {
|
|
||||||
public SearchOrder findValueByNumber(int number) {
|
|
||||||
return SearchOrder.forNumber(number);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
|
||||||
getValueDescriptor() {
|
|
||||||
return getDescriptor().getValues().get(ordinal());
|
|
||||||
}
|
|
||||||
public final com.google.protobuf.Descriptors.EnumDescriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return getDescriptor();
|
|
||||||
}
|
|
||||||
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return com.loafle.cms.proto.common.SearchSortOuterClass.getDescriptor().getEnumTypes().get(0);
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final SearchOrder[] VALUES = values();
|
|
||||||
|
|
||||||
public static SearchOrder valueOf(
|
|
||||||
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
|
||||||
if (desc.getType() != getDescriptor()) {
|
|
||||||
throw new java.lang.IllegalArgumentException(
|
|
||||||
"EnumValueDescriptor is not for this type.");
|
|
||||||
}
|
|
||||||
if (desc.getIndex() == -1) {
|
|
||||||
return UNRECOGNIZED;
|
|
||||||
}
|
|
||||||
return VALUES[desc.getIndex()];
|
|
||||||
}
|
|
||||||
|
|
||||||
private final int value;
|
|
||||||
|
|
||||||
private SearchOrder(int value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(enum_scope:loafle.cms.proto.common.SearchOrder)
|
|
||||||
}
|
|
||||||
|
|
||||||
public interface SearchSortOrBuilder extends
|
|
||||||
// @@protoc_insertion_point(interface_extends:loafle.cms.proto.common.SearchSort)
|
|
||||||
com.google.protobuf.MessageOrBuilder {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>string key = 1;</code>
|
|
||||||
*/
|
|
||||||
java.lang.String getKey();
|
|
||||||
/**
|
|
||||||
* <code>string key = 1;</code>
|
|
||||||
*/
|
|
||||||
com.google.protobuf.ByteString
|
|
||||||
getKeyBytes();
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <code>.loafle.cms.proto.common.SearchOrder order = 2;</code>
|
|
||||||
*/
|
|
||||||
int getOrderValue();
|
|
||||||
/**
|
|
||||||
* <code>.loafle.cms.proto.common.SearchOrder order = 2;</code>
|
|
||||||
*/
|
|
||||||
com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder getOrder();
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* Protobuf type {@code loafle.cms.proto.common.SearchSort}
|
|
||||||
*/
|
|
||||||
public static final class SearchSort extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3 implements
|
|
||||||
// @@protoc_insertion_point(message_implements:loafle.cms.proto.common.SearchSort)
|
|
||||||
SearchSortOrBuilder {
|
|
||||||
private static final long serialVersionUID = 0L;
|
|
||||||
// Use SearchSort.newBuilder() to construct.
|
|
||||||
private SearchSort(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
|
||||||
super(builder);
|
|
||||||
}
|
|
||||||
private SearchSort() {
|
|
||||||
key_ = "";
|
|
||||||
order_ = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
@SuppressWarnings({"unused"})
|
|
||||||
protected java.lang.Object newInstance(
|
|
||||||
UnusedPrivateParameter unused) {
|
|
||||||
return new SearchSort();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public final com.google.protobuf.UnknownFieldSet
|
|
||||||
getUnknownFields() {
|
|
||||||
return this.unknownFields;
|
|
||||||
}
|
|
||||||
private SearchSort(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
this();
|
|
||||||
if (extensionRegistry == null) {
|
|
||||||
throw new java.lang.NullPointerException();
|
|
||||||
}
|
|
||||||
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();
|
|
||||||
|
|
||||||
key_ = s;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 16: {
|
|
||||||
int rawValue = input.readEnum();
|
|
||||||
|
|
||||||
order_ = rawValue;
|
|
||||||
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 com.loafle.cms.proto.common.SearchSortOuterClass.internal_static_loafle_cms_proto_common_SearchSort_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return com.loafle.cms.proto.common.SearchSortOuterClass.internal_static_loafle_cms_proto_common_SearchSort_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort.class, com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int KEY_FIELD_NUMBER = 1;
|
|
||||||
private volatile java.lang.Object key_;
|
|
||||||
/**
|
|
||||||
* <code>string key = 1;</code>
|
|
||||||
*/
|
|
||||||
public java.lang.String getKey() {
|
|
||||||
java.lang.Object ref = key_;
|
|
||||||
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();
|
|
||||||
key_ = s;
|
|
||||||
return s;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>string key = 1;</code>
|
|
||||||
*/
|
|
||||||
public com.google.protobuf.ByteString
|
|
||||||
getKeyBytes() {
|
|
||||||
java.lang.Object ref = key_;
|
|
||||||
if (ref instanceof java.lang.String) {
|
|
||||||
com.google.protobuf.ByteString b =
|
|
||||||
com.google.protobuf.ByteString.copyFromUtf8(
|
|
||||||
(java.lang.String) ref);
|
|
||||||
key_ = b;
|
|
||||||
return b;
|
|
||||||
} else {
|
|
||||||
return (com.google.protobuf.ByteString) ref;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public static final int ORDER_FIELD_NUMBER = 2;
|
|
||||||
private int order_;
|
|
||||||
/**
|
|
||||||
* <code>.loafle.cms.proto.common.SearchOrder order = 2;</code>
|
|
||||||
*/
|
|
||||||
public int getOrderValue() {
|
|
||||||
return order_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.loafle.cms.proto.common.SearchOrder order = 2;</code>
|
|
||||||
*/
|
|
||||||
public com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder getOrder() {
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder result = com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder.valueOf(order_);
|
|
||||||
return result == null ? com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder.UNRECOGNIZED : result;
|
|
||||||
}
|
|
||||||
|
|
||||||
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 (!getKeyBytes().isEmpty()) {
|
|
||||||
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
|
|
||||||
}
|
|
||||||
if (order_ != com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder.DESC.getNumber()) {
|
|
||||||
output.writeEnum(2, order_);
|
|
||||||
}
|
|
||||||
unknownFields.writeTo(output);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public int getSerializedSize() {
|
|
||||||
int size = memoizedSize;
|
|
||||||
if (size != -1) return size;
|
|
||||||
|
|
||||||
size = 0;
|
|
||||||
if (!getKeyBytes().isEmpty()) {
|
|
||||||
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
|
|
||||||
}
|
|
||||||
if (order_ != com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder.DESC.getNumber()) {
|
|
||||||
size += com.google.protobuf.CodedOutputStream
|
|
||||||
.computeEnumSize(2, order_);
|
|
||||||
}
|
|
||||||
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 com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort)) {
|
|
||||||
return super.equals(obj);
|
|
||||||
}
|
|
||||||
com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort other = (com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort) obj;
|
|
||||||
|
|
||||||
if (!getKey()
|
|
||||||
.equals(other.getKey())) return false;
|
|
||||||
if (order_ != other.order_) 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) + KEY_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + getKey().hashCode();
|
|
||||||
hash = (37 * hash) + ORDER_FIELD_NUMBER;
|
|
||||||
hash = (53 * hash) + order_;
|
|
||||||
hash = (29 * hash) + unknownFields.hashCode();
|
|
||||||
memoizedHashCode = hash;
|
|
||||||
return hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
public static com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort parseFrom(
|
|
||||||
java.nio.ByteBuffer data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort parseFrom(
|
|
||||||
java.nio.ByteBuffer data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort parseFrom(
|
|
||||||
com.google.protobuf.ByteString data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort parseFrom(
|
|
||||||
com.google.protobuf.ByteString data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort parseFrom(byte[] data)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort parseFrom(
|
|
||||||
byte[] data,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return PARSER.parseFrom(data, extensionRegistry);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort parseFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort 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 com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort parseDelimitedFrom(java.io.InputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseDelimitedWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort 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 com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort parseFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input)
|
|
||||||
throws java.io.IOException {
|
|
||||||
return com.google.protobuf.GeneratedMessageV3
|
|
||||||
.parseWithIOException(PARSER, input);
|
|
||||||
}
|
|
||||||
public static com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort 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(com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort 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 loafle.cms.proto.common.SearchSort}
|
|
||||||
*/
|
|
||||||
public static final class Builder extends
|
|
||||||
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
|
||||||
// @@protoc_insertion_point(builder_implements:loafle.cms.proto.common.SearchSort)
|
|
||||||
com.loafle.cms.proto.common.SearchSortOuterClass.SearchSortOrBuilder {
|
|
||||||
public static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptor() {
|
|
||||||
return com.loafle.cms.proto.common.SearchSortOuterClass.internal_static_loafle_cms_proto_common_SearchSort_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internalGetFieldAccessorTable() {
|
|
||||||
return com.loafle.cms.proto.common.SearchSortOuterClass.internal_static_loafle_cms_proto_common_SearchSort_fieldAccessorTable
|
|
||||||
.ensureFieldAccessorsInitialized(
|
|
||||||
com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort.class, com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort.Builder.class);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Construct using com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort.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();
|
|
||||||
key_ = "";
|
|
||||||
|
|
||||||
order_ = 0;
|
|
||||||
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.Descriptor
|
|
||||||
getDescriptorForType() {
|
|
||||||
return com.loafle.cms.proto.common.SearchSortOuterClass.internal_static_loafle_cms_proto_common_SearchSort_descriptor;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort getDefaultInstanceForType() {
|
|
||||||
return com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort.getDefaultInstance();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort build() {
|
|
||||||
com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort result = buildPartial();
|
|
||||||
if (!result.isInitialized()) {
|
|
||||||
throw newUninitializedMessageException(result);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort buildPartial() {
|
|
||||||
com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort result = new com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort(this);
|
|
||||||
result.key_ = key_;
|
|
||||||
result.order_ = order_;
|
|
||||||
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 com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort) {
|
|
||||||
return mergeFrom((com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort)other);
|
|
||||||
} else {
|
|
||||||
super.mergeFrom(other);
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public Builder mergeFrom(com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort other) {
|
|
||||||
if (other == com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort.getDefaultInstance()) return this;
|
|
||||||
if (!other.getKey().isEmpty()) {
|
|
||||||
key_ = other.key_;
|
|
||||||
onChanged();
|
|
||||||
}
|
|
||||||
if (other.order_ != 0) {
|
|
||||||
setOrderValue(other.getOrderValue());
|
|
||||||
}
|
|
||||||
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 {
|
|
||||||
com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort parsedMessage = null;
|
|
||||||
try {
|
|
||||||
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
|
||||||
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
|
||||||
parsedMessage = (com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort) e.getUnfinishedMessage();
|
|
||||||
throw e.unwrapIOException();
|
|
||||||
} finally {
|
|
||||||
if (parsedMessage != null) {
|
|
||||||
mergeFrom(parsedMessage);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private java.lang.Object key_ = "";
|
|
||||||
/**
|
|
||||||
* <code>string key = 1;</code>
|
|
||||||
*/
|
|
||||||
public java.lang.String getKey() {
|
|
||||||
java.lang.Object ref = key_;
|
|
||||||
if (!(ref instanceof java.lang.String)) {
|
|
||||||
com.google.protobuf.ByteString bs =
|
|
||||||
(com.google.protobuf.ByteString) ref;
|
|
||||||
java.lang.String s = bs.toStringUtf8();
|
|
||||||
key_ = s;
|
|
||||||
return s;
|
|
||||||
} else {
|
|
||||||
return (java.lang.String) ref;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>string key = 1;</code>
|
|
||||||
*/
|
|
||||||
public com.google.protobuf.ByteString
|
|
||||||
getKeyBytes() {
|
|
||||||
java.lang.Object ref = key_;
|
|
||||||
if (ref instanceof String) {
|
|
||||||
com.google.protobuf.ByteString b =
|
|
||||||
com.google.protobuf.ByteString.copyFromUtf8(
|
|
||||||
(java.lang.String) ref);
|
|
||||||
key_ = b;
|
|
||||||
return b;
|
|
||||||
} else {
|
|
||||||
return (com.google.protobuf.ByteString) ref;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>string key = 1;</code>
|
|
||||||
*/
|
|
||||||
public Builder setKey(
|
|
||||||
java.lang.String value) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
|
|
||||||
key_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>string key = 1;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearKey() {
|
|
||||||
|
|
||||||
key_ = getDefaultInstance().getKey();
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>string key = 1;</code>
|
|
||||||
*/
|
|
||||||
public Builder setKeyBytes(
|
|
||||||
com.google.protobuf.ByteString value) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
checkByteStringIsUtf8(value);
|
|
||||||
|
|
||||||
key_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
|
|
||||||
private int order_ = 0;
|
|
||||||
/**
|
|
||||||
* <code>.loafle.cms.proto.common.SearchOrder order = 2;</code>
|
|
||||||
*/
|
|
||||||
public int getOrderValue() {
|
|
||||||
return order_;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.loafle.cms.proto.common.SearchOrder order = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder setOrderValue(int value) {
|
|
||||||
order_ = value;
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.loafle.cms.proto.common.SearchOrder order = 2;</code>
|
|
||||||
*/
|
|
||||||
public com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder getOrder() {
|
|
||||||
@SuppressWarnings("deprecation")
|
|
||||||
com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder result = com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder.valueOf(order_);
|
|
||||||
return result == null ? com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder.UNRECOGNIZED : result;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.loafle.cms.proto.common.SearchOrder order = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder setOrder(com.loafle.cms.proto.common.SearchSortOuterClass.SearchOrder value) {
|
|
||||||
if (value == null) {
|
|
||||||
throw new NullPointerException();
|
|
||||||
}
|
|
||||||
|
|
||||||
order_ = value.getNumber();
|
|
||||||
onChanged();
|
|
||||||
return this;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* <code>.loafle.cms.proto.common.SearchOrder order = 2;</code>
|
|
||||||
*/
|
|
||||||
public Builder clearOrder() {
|
|
||||||
|
|
||||||
order_ = 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:loafle.cms.proto.common.SearchSort)
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(class_scope:loafle.cms.proto.common.SearchSort)
|
|
||||||
private static final com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort DEFAULT_INSTANCE;
|
|
||||||
static {
|
|
||||||
DEFAULT_INSTANCE = new com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort();
|
|
||||||
}
|
|
||||||
|
|
||||||
public static com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort getDefaultInstance() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Parser<SearchSort>
|
|
||||||
PARSER = new com.google.protobuf.AbstractParser<SearchSort>() {
|
|
||||||
@java.lang.Override
|
|
||||||
public SearchSort parsePartialFrom(
|
|
||||||
com.google.protobuf.CodedInputStream input,
|
|
||||||
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
|
||||||
throws com.google.protobuf.InvalidProtocolBufferException {
|
|
||||||
return new SearchSort(input, extensionRegistry);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
public static com.google.protobuf.Parser<SearchSort> parser() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Parser<SearchSort> getParserForType() {
|
|
||||||
return PARSER;
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.loafle.cms.proto.common.SearchSortOuterClass.SearchSort getDefaultInstanceForType() {
|
|
||||||
return DEFAULT_INSTANCE;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final com.google.protobuf.Descriptors.Descriptor
|
|
||||||
internal_static_loafle_cms_proto_common_SearchSort_descriptor;
|
|
||||||
private static final
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
|
|
||||||
internal_static_loafle_cms_proto_common_SearchSort_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\030common/search-sort.proto\022\027loafle.cms.p" +
|
|
||||||
"roto.common\"N\n\nSearchSort\022\013\n\003key\030\001 \001(\t\0223" +
|
|
||||||
"\n\005order\030\002 \001(\0162$.loafle.cms.proto.common." +
|
|
||||||
"SearchOrder* \n\013SearchOrder\022\010\n\004DESC\020\000\022\007\n\003" +
|
|
||||||
"ASC\020\001B`\n\033com.loafle.cms.proto.commonZ\037gi" +
|
|
||||||
"t.loafle.net/cms/proto/common\370\001\001\242\002\002LF\252\002\027" +
|
|
||||||
"Loafle.Cms.Proto.Commonb\006proto3"
|
|
||||||
};
|
|
||||||
descriptor = com.google.protobuf.Descriptors.FileDescriptor
|
|
||||||
.internalBuildGeneratedFileFrom(descriptorData,
|
|
||||||
new com.google.protobuf.Descriptors.FileDescriptor[] {
|
|
||||||
});
|
|
||||||
internal_static_loafle_cms_proto_common_SearchSort_descriptor =
|
|
||||||
getDescriptor().getMessageTypes().get(0);
|
|
||||||
internal_static_loafle_cms_proto_common_SearchSort_fieldAccessorTable = new
|
|
||||||
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
|
|
||||||
internal_static_loafle_cms_proto_common_SearchSort_descriptor,
|
|
||||||
new java.lang.String[] { "Key", "Order", });
|
|
||||||
}
|
|
||||||
|
|
||||||
// @@protoc_insertion_point(outer_class_scope)
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,655 +0,0 @@
|
||||||
package com.loafle.cms.proto.user;
|
|
||||||
|
|
||||||
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.21.0)",
|
|
||||||
comments = "Source: user/user-service.proto")
|
|
||||||
public final class UserServiceGrpc {
|
|
||||||
|
|
||||||
private UserServiceGrpc() {}
|
|
||||||
|
|
||||||
public static final String SERVICE_NAME = "loafle.cms.proto.user.UserService";
|
|
||||||
|
|
||||||
// Static method descriptors that strictly reflect the proto.
|
|
||||||
private static volatile io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse> getCreateUserMethod;
|
|
||||||
|
|
||||||
@io.grpc.stub.annotations.RpcMethod(
|
|
||||||
fullMethodName = SERVICE_NAME + '/' + "CreateUser",
|
|
||||||
requestType = com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest.class,
|
|
||||||
responseType = com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse.class,
|
|
||||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
public static io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse> getCreateUserMethod() {
|
|
||||||
io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest, com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse> getCreateUserMethod;
|
|
||||||
if ((getCreateUserMethod = UserServiceGrpc.getCreateUserMethod) == null) {
|
|
||||||
synchronized (UserServiceGrpc.class) {
|
|
||||||
if ((getCreateUserMethod = UserServiceGrpc.getCreateUserMethod) == null) {
|
|
||||||
UserServiceGrpc.getCreateUserMethod = getCreateUserMethod =
|
|
||||||
io.grpc.MethodDescriptor.<com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest, com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse>newBuilder()
|
|
||||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
.setFullMethodName(generateFullMethodName(
|
|
||||||
"loafle.cms.proto.user.UserService", "CreateUser"))
|
|
||||||
.setSampledToLocalTracing(true)
|
|
||||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest.getDefaultInstance()))
|
|
||||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse.getDefaultInstance()))
|
|
||||||
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("CreateUser"))
|
|
||||||
.build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return getCreateUserMethod;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static volatile io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> getReadUserByIdMethod;
|
|
||||||
|
|
||||||
@io.grpc.stub.annotations.RpcMethod(
|
|
||||||
fullMethodName = SERVICE_NAME + '/' + "ReadUserById",
|
|
||||||
requestType = com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest.class,
|
|
||||||
responseType = com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse.class,
|
|
||||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
public static io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> getReadUserByIdMethod() {
|
|
||||||
io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest, com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> getReadUserByIdMethod;
|
|
||||||
if ((getReadUserByIdMethod = UserServiceGrpc.getReadUserByIdMethod) == null) {
|
|
||||||
synchronized (UserServiceGrpc.class) {
|
|
||||||
if ((getReadUserByIdMethod = UserServiceGrpc.getReadUserByIdMethod) == null) {
|
|
||||||
UserServiceGrpc.getReadUserByIdMethod = getReadUserByIdMethod =
|
|
||||||
io.grpc.MethodDescriptor.<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest, com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse>newBuilder()
|
|
||||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
.setFullMethodName(generateFullMethodName(
|
|
||||||
"loafle.cms.proto.user.UserService", "ReadUserById"))
|
|
||||||
.setSampledToLocalTracing(true)
|
|
||||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest.getDefaultInstance()))
|
|
||||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse.getDefaultInstance()))
|
|
||||||
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("ReadUserById"))
|
|
||||||
.build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return getReadUserByIdMethod;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static volatile io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> getReadUserByUsernameMethod;
|
|
||||||
|
|
||||||
@io.grpc.stub.annotations.RpcMethod(
|
|
||||||
fullMethodName = SERVICE_NAME + '/' + "ReadUserByUsername",
|
|
||||||
requestType = com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest.class,
|
|
||||||
responseType = com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse.class,
|
|
||||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
public static io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> getReadUserByUsernameMethod() {
|
|
||||||
io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest, com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> getReadUserByUsernameMethod;
|
|
||||||
if ((getReadUserByUsernameMethod = UserServiceGrpc.getReadUserByUsernameMethod) == null) {
|
|
||||||
synchronized (UserServiceGrpc.class) {
|
|
||||||
if ((getReadUserByUsernameMethod = UserServiceGrpc.getReadUserByUsernameMethod) == null) {
|
|
||||||
UserServiceGrpc.getReadUserByUsernameMethod = getReadUserByUsernameMethod =
|
|
||||||
io.grpc.MethodDescriptor.<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest, com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse>newBuilder()
|
|
||||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
.setFullMethodName(generateFullMethodName(
|
|
||||||
"loafle.cms.proto.user.UserService", "ReadUserByUsername"))
|
|
||||||
.setSampledToLocalTracing(true)
|
|
||||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest.getDefaultInstance()))
|
|
||||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse.getDefaultInstance()))
|
|
||||||
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("ReadUserByUsername"))
|
|
||||||
.build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return getReadUserByUsernameMethod;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static volatile io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse> getUpdateUserMethod;
|
|
||||||
|
|
||||||
@io.grpc.stub.annotations.RpcMethod(
|
|
||||||
fullMethodName = SERVICE_NAME + '/' + "UpdateUser",
|
|
||||||
requestType = com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest.class,
|
|
||||||
responseType = com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse.class,
|
|
||||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
public static io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse> getUpdateUserMethod() {
|
|
||||||
io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest, com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse> getUpdateUserMethod;
|
|
||||||
if ((getUpdateUserMethod = UserServiceGrpc.getUpdateUserMethod) == null) {
|
|
||||||
synchronized (UserServiceGrpc.class) {
|
|
||||||
if ((getUpdateUserMethod = UserServiceGrpc.getUpdateUserMethod) == null) {
|
|
||||||
UserServiceGrpc.getUpdateUserMethod = getUpdateUserMethod =
|
|
||||||
io.grpc.MethodDescriptor.<com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest, com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse>newBuilder()
|
|
||||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
.setFullMethodName(generateFullMethodName(
|
|
||||||
"loafle.cms.proto.user.UserService", "UpdateUser"))
|
|
||||||
.setSampledToLocalTracing(true)
|
|
||||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest.getDefaultInstance()))
|
|
||||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse.getDefaultInstance()))
|
|
||||||
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("UpdateUser"))
|
|
||||||
.build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return getUpdateUserMethod;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static volatile io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse> getDeleteUserMethod;
|
|
||||||
|
|
||||||
@io.grpc.stub.annotations.RpcMethod(
|
|
||||||
fullMethodName = SERVICE_NAME + '/' + "DeleteUser",
|
|
||||||
requestType = com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest.class,
|
|
||||||
responseType = com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse.class,
|
|
||||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
public static io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse> getDeleteUserMethod() {
|
|
||||||
io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest, com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse> getDeleteUserMethod;
|
|
||||||
if ((getDeleteUserMethod = UserServiceGrpc.getDeleteUserMethod) == null) {
|
|
||||||
synchronized (UserServiceGrpc.class) {
|
|
||||||
if ((getDeleteUserMethod = UserServiceGrpc.getDeleteUserMethod) == null) {
|
|
||||||
UserServiceGrpc.getDeleteUserMethod = getDeleteUserMethod =
|
|
||||||
io.grpc.MethodDescriptor.<com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest, com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse>newBuilder()
|
|
||||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
.setFullMethodName(generateFullMethodName(
|
|
||||||
"loafle.cms.proto.user.UserService", "DeleteUser"))
|
|
||||||
.setSampledToLocalTracing(true)
|
|
||||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest.getDefaultInstance()))
|
|
||||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse.getDefaultInstance()))
|
|
||||||
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("DeleteUser"))
|
|
||||||
.build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return getDeleteUserMethod;
|
|
||||||
}
|
|
||||||
|
|
||||||
private static volatile io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse> getReadAllUsersMethod;
|
|
||||||
|
|
||||||
@io.grpc.stub.annotations.RpcMethod(
|
|
||||||
fullMethodName = SERVICE_NAME + '/' + "ReadAllUsers",
|
|
||||||
requestType = com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest.class,
|
|
||||||
responseType = com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse.class,
|
|
||||||
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
public static io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse> getReadAllUsersMethod() {
|
|
||||||
io.grpc.MethodDescriptor<com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest, com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse> getReadAllUsersMethod;
|
|
||||||
if ((getReadAllUsersMethod = UserServiceGrpc.getReadAllUsersMethod) == null) {
|
|
||||||
synchronized (UserServiceGrpc.class) {
|
|
||||||
if ((getReadAllUsersMethod = UserServiceGrpc.getReadAllUsersMethod) == null) {
|
|
||||||
UserServiceGrpc.getReadAllUsersMethod = getReadAllUsersMethod =
|
|
||||||
io.grpc.MethodDescriptor.<com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest, com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse>newBuilder()
|
|
||||||
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
|
|
||||||
.setFullMethodName(generateFullMethodName(
|
|
||||||
"loafle.cms.proto.user.UserService", "ReadAllUsers"))
|
|
||||||
.setSampledToLocalTracing(true)
|
|
||||||
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest.getDefaultInstance()))
|
|
||||||
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse.getDefaultInstance()))
|
|
||||||
.setSchemaDescriptor(new UserServiceMethodDescriptorSupplier("ReadAllUsers"))
|
|
||||||
.build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return getReadAllUsersMethod;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a new async stub that supports all call types for the service
|
|
||||||
*/
|
|
||||||
public static UserServiceStub newStub(io.grpc.Channel channel) {
|
|
||||||
return new UserServiceStub(channel);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
|
|
||||||
*/
|
|
||||||
public static UserServiceBlockingStub newBlockingStub(
|
|
||||||
io.grpc.Channel channel) {
|
|
||||||
return new UserServiceBlockingStub(channel);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Creates a new ListenableFuture-style stub that supports unary calls on the service
|
|
||||||
*/
|
|
||||||
public static UserServiceFutureStub newFutureStub(
|
|
||||||
io.grpc.Channel channel) {
|
|
||||||
return new UserServiceFutureStub(channel);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public static abstract class UserServiceImplBase implements io.grpc.BindableService {
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void createUser(com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse> responseObserver) {
|
|
||||||
asyncUnimplementedUnaryCall(getCreateUserMethod(), responseObserver);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void readUserById(com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> responseObserver) {
|
|
||||||
asyncUnimplementedUnaryCall(getReadUserByIdMethod(), responseObserver);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void readUserByUsername(com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> responseObserver) {
|
|
||||||
asyncUnimplementedUnaryCall(getReadUserByUsernameMethod(), responseObserver);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void updateUser(com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse> responseObserver) {
|
|
||||||
asyncUnimplementedUnaryCall(getUpdateUserMethod(), responseObserver);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void deleteUser(com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse> responseObserver) {
|
|
||||||
asyncUnimplementedUnaryCall(getDeleteUserMethod(), responseObserver);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void readAllUsers(com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse> responseObserver) {
|
|
||||||
asyncUnimplementedUnaryCall(getReadAllUsersMethod(), responseObserver);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
|
|
||||||
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
|
|
||||||
.addMethod(
|
|
||||||
getCreateUserMethod(),
|
|
||||||
asyncUnaryCall(
|
|
||||||
new MethodHandlers<
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse>(
|
|
||||||
this, METHODID_CREATE_USER)))
|
|
||||||
.addMethod(
|
|
||||||
getReadUserByIdMethod(),
|
|
||||||
asyncUnaryCall(
|
|
||||||
new MethodHandlers<
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse>(
|
|
||||||
this, METHODID_READ_USER_BY_ID)))
|
|
||||||
.addMethod(
|
|
||||||
getReadUserByUsernameMethod(),
|
|
||||||
asyncUnaryCall(
|
|
||||||
new MethodHandlers<
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse>(
|
|
||||||
this, METHODID_READ_USER_BY_USERNAME)))
|
|
||||||
.addMethod(
|
|
||||||
getUpdateUserMethod(),
|
|
||||||
asyncUnaryCall(
|
|
||||||
new MethodHandlers<
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse>(
|
|
||||||
this, METHODID_UPDATE_USER)))
|
|
||||||
.addMethod(
|
|
||||||
getDeleteUserMethod(),
|
|
||||||
asyncUnaryCall(
|
|
||||||
new MethodHandlers<
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse>(
|
|
||||||
this, METHODID_DELETE_USER)))
|
|
||||||
.addMethod(
|
|
||||||
getReadAllUsersMethod(),
|
|
||||||
asyncUnaryCall(
|
|
||||||
new MethodHandlers<
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest,
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse>(
|
|
||||||
this, METHODID_READ_ALL_USERS)))
|
|
||||||
.build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public static final class UserServiceStub extends io.grpc.stub.AbstractStub<UserServiceStub> {
|
|
||||||
private UserServiceStub(io.grpc.Channel channel) {
|
|
||||||
super(channel);
|
|
||||||
}
|
|
||||||
|
|
||||||
private UserServiceStub(io.grpc.Channel channel,
|
|
||||||
io.grpc.CallOptions callOptions) {
|
|
||||||
super(channel, callOptions);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected UserServiceStub build(io.grpc.Channel channel,
|
|
||||||
io.grpc.CallOptions callOptions) {
|
|
||||||
return new UserServiceStub(channel, callOptions);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void createUser(com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse> responseObserver) {
|
|
||||||
asyncUnaryCall(
|
|
||||||
getChannel().newCall(getCreateUserMethod(), getCallOptions()), request, responseObserver);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void readUserById(com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> responseObserver) {
|
|
||||||
asyncUnaryCall(
|
|
||||||
getChannel().newCall(getReadUserByIdMethod(), getCallOptions()), request, responseObserver);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void readUserByUsername(com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> responseObserver) {
|
|
||||||
asyncUnaryCall(
|
|
||||||
getChannel().newCall(getReadUserByUsernameMethod(), getCallOptions()), request, responseObserver);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void updateUser(com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse> responseObserver) {
|
|
||||||
asyncUnaryCall(
|
|
||||||
getChannel().newCall(getUpdateUserMethod(), getCallOptions()), request, responseObserver);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void deleteUser(com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse> responseObserver) {
|
|
||||||
asyncUnaryCall(
|
|
||||||
getChannel().newCall(getDeleteUserMethod(), getCallOptions()), request, responseObserver);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public void readAllUsers(com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest request,
|
|
||||||
io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse> responseObserver) {
|
|
||||||
asyncUnaryCall(
|
|
||||||
getChannel().newCall(getReadAllUsersMethod(), getCallOptions()), request, responseObserver);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public static final class UserServiceBlockingStub extends io.grpc.stub.AbstractStub<UserServiceBlockingStub> {
|
|
||||||
private UserServiceBlockingStub(io.grpc.Channel channel) {
|
|
||||||
super(channel);
|
|
||||||
}
|
|
||||||
|
|
||||||
private UserServiceBlockingStub(io.grpc.Channel channel,
|
|
||||||
io.grpc.CallOptions callOptions) {
|
|
||||||
super(channel, callOptions);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected UserServiceBlockingStub build(io.grpc.Channel channel,
|
|
||||||
io.grpc.CallOptions callOptions) {
|
|
||||||
return new UserServiceBlockingStub(channel, callOptions);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse createUser(com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest request) {
|
|
||||||
return blockingUnaryCall(
|
|
||||||
getChannel(), getCreateUserMethod(), getCallOptions(), request);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse readUserById(com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest request) {
|
|
||||||
return blockingUnaryCall(
|
|
||||||
getChannel(), getReadUserByIdMethod(), getCallOptions(), request);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse readUserByUsername(com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest request) {
|
|
||||||
return blockingUnaryCall(
|
|
||||||
getChannel(), getReadUserByUsernameMethod(), getCallOptions(), request);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse updateUser(com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest request) {
|
|
||||||
return blockingUnaryCall(
|
|
||||||
getChannel(), getUpdateUserMethod(), getCallOptions(), request);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse deleteUser(com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest request) {
|
|
||||||
return blockingUnaryCall(
|
|
||||||
getChannel(), getDeleteUserMethod(), getCallOptions(), request);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse readAllUsers(com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest request) {
|
|
||||||
return blockingUnaryCall(
|
|
||||||
getChannel(), getReadAllUsersMethod(), getCallOptions(), request);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public static final class UserServiceFutureStub extends io.grpc.stub.AbstractStub<UserServiceFutureStub> {
|
|
||||||
private UserServiceFutureStub(io.grpc.Channel channel) {
|
|
||||||
super(channel);
|
|
||||||
}
|
|
||||||
|
|
||||||
private UserServiceFutureStub(io.grpc.Channel channel,
|
|
||||||
io.grpc.CallOptions callOptions) {
|
|
||||||
super(channel, callOptions);
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
protected UserServiceFutureStub build(io.grpc.Channel channel,
|
|
||||||
io.grpc.CallOptions callOptions) {
|
|
||||||
return new UserServiceFutureStub(channel, callOptions);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.google.common.util.concurrent.ListenableFuture<com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse> createUser(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest request) {
|
|
||||||
return futureUnaryCall(
|
|
||||||
getChannel().newCall(getCreateUserMethod(), getCallOptions()), request);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.google.common.util.concurrent.ListenableFuture<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> readUserById(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest request) {
|
|
||||||
return futureUnaryCall(
|
|
||||||
getChannel().newCall(getReadUserByIdMethod(), getCallOptions()), request);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.google.common.util.concurrent.ListenableFuture<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse> readUserByUsername(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest request) {
|
|
||||||
return futureUnaryCall(
|
|
||||||
getChannel().newCall(getReadUserByUsernameMethod(), getCallOptions()), request);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.google.common.util.concurrent.ListenableFuture<com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse> updateUser(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest request) {
|
|
||||||
return futureUnaryCall(
|
|
||||||
getChannel().newCall(getUpdateUserMethod(), getCallOptions()), request);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.google.common.util.concurrent.ListenableFuture<com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse> deleteUser(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest request) {
|
|
||||||
return futureUnaryCall(
|
|
||||||
getChannel().newCall(getDeleteUserMethod(), getCallOptions()), request);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*/
|
|
||||||
public com.google.common.util.concurrent.ListenableFuture<com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse> readAllUsers(
|
|
||||||
com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest request) {
|
|
||||||
return futureUnaryCall(
|
|
||||||
getChannel().newCall(getReadAllUsersMethod(), getCallOptions()), request);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final int METHODID_CREATE_USER = 0;
|
|
||||||
private static final int METHODID_READ_USER_BY_ID = 1;
|
|
||||||
private static final int METHODID_READ_USER_BY_USERNAME = 2;
|
|
||||||
private static final int METHODID_UPDATE_USER = 3;
|
|
||||||
private static final int METHODID_DELETE_USER = 4;
|
|
||||||
private static final int METHODID_READ_ALL_USERS = 5;
|
|
||||||
|
|
||||||
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 UserServiceImplBase serviceImpl;
|
|
||||||
private final int methodId;
|
|
||||||
|
|
||||||
MethodHandlers(UserServiceImplBase 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_USER:
|
|
||||||
serviceImpl.createUser((com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserRequest) request,
|
|
||||||
(io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.CreateUserResponse>) responseObserver);
|
|
||||||
break;
|
|
||||||
case METHODID_READ_USER_BY_ID:
|
|
||||||
serviceImpl.readUserById((com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByIdRequest) request,
|
|
||||||
(io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse>) responseObserver);
|
|
||||||
break;
|
|
||||||
case METHODID_READ_USER_BY_USERNAME:
|
|
||||||
serviceImpl.readUserByUsername((com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserByUsernameRequest) request,
|
|
||||||
(io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.ReadUserResponse>) responseObserver);
|
|
||||||
break;
|
|
||||||
case METHODID_UPDATE_USER:
|
|
||||||
serviceImpl.updateUser((com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserRequest) request,
|
|
||||||
(io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.UpdateUserResponse>) responseObserver);
|
|
||||||
break;
|
|
||||||
case METHODID_DELETE_USER:
|
|
||||||
serviceImpl.deleteUser((com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserRequest) request,
|
|
||||||
(io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.DeleteUserResponse>) responseObserver);
|
|
||||||
break;
|
|
||||||
case METHODID_READ_ALL_USERS:
|
|
||||||
serviceImpl.readAllUsers((com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersRequest) request,
|
|
||||||
(io.grpc.stub.StreamObserver<com.loafle.cms.proto.user.UserServiceOuterClass.ReadAllUsersResponse>) 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 UserServiceBaseDescriptorSupplier
|
|
||||||
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
|
|
||||||
UserServiceBaseDescriptorSupplier() {}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
|
|
||||||
return com.loafle.cms.proto.user.UserServiceOuterClass.getDescriptor();
|
|
||||||
}
|
|
||||||
|
|
||||||
@java.lang.Override
|
|
||||||
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
|
|
||||||
return getFileDescriptor().findServiceByName("UserService");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final class UserServiceFileDescriptorSupplier
|
|
||||||
extends UserServiceBaseDescriptorSupplier {
|
|
||||||
UserServiceFileDescriptorSupplier() {}
|
|
||||||
}
|
|
||||||
|
|
||||||
private static final class UserServiceMethodDescriptorSupplier
|
|
||||||
extends UserServiceBaseDescriptorSupplier
|
|
||||||
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
|
|
||||||
private final String methodName;
|
|
||||||
|
|
||||||
UserServiceMethodDescriptorSupplier(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 (UserServiceGrpc.class) {
|
|
||||||
result = serviceDescriptor;
|
|
||||||
if (result == null) {
|
|
||||||
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
|
|
||||||
.setSchemaDescriptor(new UserServiceFileDescriptorSupplier())
|
|
||||||
.addMethod(getCreateUserMethod())
|
|
||||||
.addMethod(getReadUserByIdMethod())
|
|
||||||
.addMethod(getReadUserByUsernameMethod())
|
|
||||||
.addMethod(getUpdateUserMethod())
|
|
||||||
.addMethod(getDeleteUserMethod())
|
|
||||||
.addMethod(getReadAllUsersMethod())
|
|
||||||
.build();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
44
pkg/api/v1/web/common/search-criteria_pb.d.ts
vendored
44
pkg/api/v1/web/common/search-criteria_pb.d.ts
vendored
|
@ -1,44 +0,0 @@
|
||||||
import * as jspb from "google-protobuf"
|
|
||||||
|
|
||||||
import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb';
|
|
||||||
|
|
||||||
export class SearchCriteria extends jspb.Message {
|
|
||||||
getKey(): string;
|
|
||||||
setKey(value: string): void;
|
|
||||||
|
|
||||||
getOperation(): SearchOperation;
|
|
||||||
setOperation(value: SearchOperation): void;
|
|
||||||
|
|
||||||
getValue(): google_protobuf_any_pb.Any | undefined;
|
|
||||||
setValue(value?: google_protobuf_any_pb.Any): void;
|
|
||||||
hasValue(): boolean;
|
|
||||||
clearValue(): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): SearchCriteria.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: SearchCriteria): SearchCriteria.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: SearchCriteria, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): SearchCriteria;
|
|
||||||
static deserializeBinaryFromReader(message: SearchCriteria, reader: jspb.BinaryReader): SearchCriteria;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace SearchCriteria {
|
|
||||||
export type AsObject = {
|
|
||||||
key: string,
|
|
||||||
operation: SearchOperation,
|
|
||||||
value?: google_protobuf_any_pb.Any.AsObject,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum SearchOperation {
|
|
||||||
EQUAL = 0,
|
|
||||||
NOT_EQUAL = 1,
|
|
||||||
GREATER_THAN = 2,
|
|
||||||
GREATER_THAN_EQUAL = 3,
|
|
||||||
LESS_THAN = 4,
|
|
||||||
LESS_THAN_EQUAL = 5,
|
|
||||||
LIKE = 6,
|
|
||||||
STARTS_WITH = 7,
|
|
||||||
ENDS_WITH = 8,
|
|
||||||
CONTAINS = 9,
|
|
||||||
}
|
|
|
@ -1,256 +0,0 @@
|
||||||
/**
|
|
||||||
* @fileoverview
|
|
||||||
* @enhanceable
|
|
||||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
||||||
* field starts with 'MSG_' and isn't a translatable message.
|
|
||||||
* @public
|
|
||||||
*/
|
|
||||||
// GENERATED CODE -- DO NOT EDIT!
|
|
||||||
|
|
||||||
var jspb = require('google-protobuf');
|
|
||||||
var goog = jspb;
|
|
||||||
var global = Function('return this')();
|
|
||||||
|
|
||||||
var google_protobuf_any_pb = require('google-protobuf/google/protobuf/any_pb.js');
|
|
||||||
goog.object.extend(proto, google_protobuf_any_pb);
|
|
||||||
goog.exportSymbol('proto.loafle.cms.proto.common.SearchCriteria', null, global);
|
|
||||||
goog.exportSymbol('proto.loafle.cms.proto.common.SearchOperation', null, global);
|
|
||||||
/**
|
|
||||||
* Generated by JsPbCodeGenerator.
|
|
||||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
||||||
* server response, or constructed directly in Javascript. The array is used
|
|
||||||
* in place and becomes part of the constructed object. It is not cloned.
|
|
||||||
* If no data is provided, the constructed object will be empty, but still
|
|
||||||
* valid.
|
|
||||||
* @extends {jspb.Message}
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria = function(opt_data) {
|
|
||||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
||||||
};
|
|
||||||
goog.inherits(proto.loafle.cms.proto.common.SearchCriteria, jspb.Message);
|
|
||||||
if (goog.DEBUG && !COMPILED) {
|
|
||||||
/**
|
|
||||||
* @public
|
|
||||||
* @override
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.displayName = 'proto.loafle.cms.proto.common.SearchCriteria';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
||||||
/**
|
|
||||||
* Creates an object representation of this proto.
|
|
||||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
||||||
* Optional fields that are not set will be set to undefined.
|
|
||||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
||||||
* For the list of reserved names please see:
|
|
||||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
||||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
||||||
* JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @return {!Object}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.prototype.toObject = function(opt_includeInstance) {
|
|
||||||
return proto.loafle.cms.proto.common.SearchCriteria.toObject(opt_includeInstance, this);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Static version of the {@see toObject} method.
|
|
||||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
||||||
* the JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @param {!proto.loafle.cms.proto.common.SearchCriteria} msg The msg instance to transform.
|
|
||||||
* @return {!Object}
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.toObject = function(includeInstance, msg) {
|
|
||||||
var f, obj = {
|
|
||||||
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
||||||
operation: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
||||||
value: (f = msg.getValue()) && google_protobuf_any_pb.Any.toObject(includeInstance, f)
|
|
||||||
};
|
|
||||||
|
|
||||||
if (includeInstance) {
|
|
||||||
obj.$jspbMessageInstance = msg;
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format).
|
|
||||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
||||||
* @return {!proto.loafle.cms.proto.common.SearchCriteria}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.deserializeBinary = function(bytes) {
|
|
||||||
var reader = new jspb.BinaryReader(bytes);
|
|
||||||
var msg = new proto.loafle.cms.proto.common.SearchCriteria;
|
|
||||||
return proto.loafle.cms.proto.common.SearchCriteria.deserializeBinaryFromReader(msg, reader);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format) from the
|
|
||||||
* given reader into the given message object.
|
|
||||||
* @param {!proto.loafle.cms.proto.common.SearchCriteria} msg The message object to deserialize into.
|
|
||||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
||||||
* @return {!proto.loafle.cms.proto.common.SearchCriteria}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.deserializeBinaryFromReader = function(msg, reader) {
|
|
||||||
while (reader.nextField()) {
|
|
||||||
if (reader.isEndGroup()) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
var field = reader.getFieldNumber();
|
|
||||||
switch (field) {
|
|
||||||
case 1:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setKey(value);
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
var value = /** @type {!proto.loafle.cms.proto.common.SearchOperation} */ (reader.readEnum());
|
|
||||||
msg.setOperation(value);
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
var value = new google_protobuf_any_pb.Any;
|
|
||||||
reader.readMessage(value,google_protobuf_any_pb.Any.deserializeBinaryFromReader);
|
|
||||||
msg.setValue(value);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
reader.skipField();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return msg;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the message to binary data (in protobuf wire format).
|
|
||||||
* @return {!Uint8Array}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.prototype.serializeBinary = function() {
|
|
||||||
var writer = new jspb.BinaryWriter();
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.serializeBinaryToWriter(this, writer);
|
|
||||||
return writer.getResultBuffer();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the given message to binary data (in protobuf wire
|
|
||||||
* format), writing to the given BinaryWriter.
|
|
||||||
* @param {!proto.loafle.cms.proto.common.SearchCriteria} message
|
|
||||||
* @param {!jspb.BinaryWriter} writer
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.serializeBinaryToWriter = function(message, writer) {
|
|
||||||
var f = undefined;
|
|
||||||
f = message.getKey();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
1,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getOperation();
|
|
||||||
if (f !== 0.0) {
|
|
||||||
writer.writeEnum(
|
|
||||||
2,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getValue();
|
|
||||||
if (f != null) {
|
|
||||||
writer.writeMessage(
|
|
||||||
3,
|
|
||||||
f,
|
|
||||||
google_protobuf_any_pb.Any.serializeBinaryToWriter
|
|
||||||
);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string key = 1;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.prototype.getKey = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.prototype.setKey = function(value) {
|
|
||||||
jspb.Message.setProto3StringField(this, 1, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional SearchOperation operation = 2;
|
|
||||||
* @return {!proto.loafle.cms.proto.common.SearchOperation}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.prototype.getOperation = function() {
|
|
||||||
return /** @type {!proto.loafle.cms.proto.common.SearchOperation} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {!proto.loafle.cms.proto.common.SearchOperation} value */
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.prototype.setOperation = function(value) {
|
|
||||||
jspb.Message.setProto3EnumField(this, 2, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional google.protobuf.Any value = 3;
|
|
||||||
* @return {?proto.google.protobuf.Any}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.prototype.getValue = function() {
|
|
||||||
return /** @type{?proto.google.protobuf.Any} */ (
|
|
||||||
jspb.Message.getWrapperField(this, google_protobuf_any_pb.Any, 3));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {?proto.google.protobuf.Any|undefined} value */
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.prototype.setValue = function(value) {
|
|
||||||
jspb.Message.setWrapperField(this, 3, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Clears the message field making it undefined.
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.prototype.clearValue = function() {
|
|
||||||
this.setValue(undefined);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns whether this field is set.
|
|
||||||
* @return {boolean}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchCriteria.prototype.hasValue = function() {
|
|
||||||
return jspb.Message.getField(this, 3) != null;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @enum {number}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchOperation = {
|
|
||||||
EQUAL: 0,
|
|
||||||
NOT_EQUAL: 1,
|
|
||||||
GREATER_THAN: 2,
|
|
||||||
GREATER_THAN_EQUAL: 3,
|
|
||||||
LESS_THAN: 4,
|
|
||||||
LESS_THAN_EQUAL: 5,
|
|
||||||
LIKE: 6,
|
|
||||||
STARTS_WITH: 7,
|
|
||||||
ENDS_WITH: 8,
|
|
||||||
CONTAINS: 9
|
|
||||||
};
|
|
||||||
|
|
||||||
goog.object.extend(exports, proto.loafle.cms.proto.common);
|
|
24
pkg/api/v1/web/common/search-pagination_pb.d.ts
vendored
24
pkg/api/v1/web/common/search-pagination_pb.d.ts
vendored
|
@ -1,24 +0,0 @@
|
||||||
import * as jspb from "google-protobuf"
|
|
||||||
|
|
||||||
export class SearchPagination extends jspb.Message {
|
|
||||||
getIndex(): number;
|
|
||||||
setIndex(value: number): void;
|
|
||||||
|
|
||||||
getSize(): number;
|
|
||||||
setSize(value: number): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): SearchPagination.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: SearchPagination): SearchPagination.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: SearchPagination, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): SearchPagination;
|
|
||||||
static deserializeBinaryFromReader(message: SearchPagination, reader: jspb.BinaryReader): SearchPagination;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace SearchPagination {
|
|
||||||
export type AsObject = {
|
|
||||||
index: number,
|
|
||||||
size: number,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,190 +0,0 @@
|
||||||
/**
|
|
||||||
* @fileoverview
|
|
||||||
* @enhanceable
|
|
||||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
||||||
* field starts with 'MSG_' and isn't a translatable message.
|
|
||||||
* @public
|
|
||||||
*/
|
|
||||||
// GENERATED CODE -- DO NOT EDIT!
|
|
||||||
|
|
||||||
var jspb = require('google-protobuf');
|
|
||||||
var goog = jspb;
|
|
||||||
var global = Function('return this')();
|
|
||||||
|
|
||||||
goog.exportSymbol('proto.loafle.cms.proto.common.SearchPagination', null, global);
|
|
||||||
/**
|
|
||||||
* Generated by JsPbCodeGenerator.
|
|
||||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
||||||
* server response, or constructed directly in Javascript. The array is used
|
|
||||||
* in place and becomes part of the constructed object. It is not cloned.
|
|
||||||
* If no data is provided, the constructed object will be empty, but still
|
|
||||||
* valid.
|
|
||||||
* @extends {jspb.Message}
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination = function(opt_data) {
|
|
||||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
||||||
};
|
|
||||||
goog.inherits(proto.loafle.cms.proto.common.SearchPagination, jspb.Message);
|
|
||||||
if (goog.DEBUG && !COMPILED) {
|
|
||||||
/**
|
|
||||||
* @public
|
|
||||||
* @override
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.displayName = 'proto.loafle.cms.proto.common.SearchPagination';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
||||||
/**
|
|
||||||
* Creates an object representation of this proto.
|
|
||||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
||||||
* Optional fields that are not set will be set to undefined.
|
|
||||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
||||||
* For the list of reserved names please see:
|
|
||||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
||||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
||||||
* JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @return {!Object}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.prototype.toObject = function(opt_includeInstance) {
|
|
||||||
return proto.loafle.cms.proto.common.SearchPagination.toObject(opt_includeInstance, this);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Static version of the {@see toObject} method.
|
|
||||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
||||||
* the JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @param {!proto.loafle.cms.proto.common.SearchPagination} msg The msg instance to transform.
|
|
||||||
* @return {!Object}
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.toObject = function(includeInstance, msg) {
|
|
||||||
var f, obj = {
|
|
||||||
index: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
||||||
size: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
||||||
};
|
|
||||||
|
|
||||||
if (includeInstance) {
|
|
||||||
obj.$jspbMessageInstance = msg;
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format).
|
|
||||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
||||||
* @return {!proto.loafle.cms.proto.common.SearchPagination}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.deserializeBinary = function(bytes) {
|
|
||||||
var reader = new jspb.BinaryReader(bytes);
|
|
||||||
var msg = new proto.loafle.cms.proto.common.SearchPagination;
|
|
||||||
return proto.loafle.cms.proto.common.SearchPagination.deserializeBinaryFromReader(msg, reader);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format) from the
|
|
||||||
* given reader into the given message object.
|
|
||||||
* @param {!proto.loafle.cms.proto.common.SearchPagination} msg The message object to deserialize into.
|
|
||||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
||||||
* @return {!proto.loafle.cms.proto.common.SearchPagination}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.deserializeBinaryFromReader = function(msg, reader) {
|
|
||||||
while (reader.nextField()) {
|
|
||||||
if (reader.isEndGroup()) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
var field = reader.getFieldNumber();
|
|
||||||
switch (field) {
|
|
||||||
case 1:
|
|
||||||
var value = /** @type {number} */ (reader.readInt32());
|
|
||||||
msg.setIndex(value);
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
var value = /** @type {number} */ (reader.readInt32());
|
|
||||||
msg.setSize(value);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
reader.skipField();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return msg;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the message to binary data (in protobuf wire format).
|
|
||||||
* @return {!Uint8Array}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.prototype.serializeBinary = function() {
|
|
||||||
var writer = new jspb.BinaryWriter();
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.serializeBinaryToWriter(this, writer);
|
|
||||||
return writer.getResultBuffer();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the given message to binary data (in protobuf wire
|
|
||||||
* format), writing to the given BinaryWriter.
|
|
||||||
* @param {!proto.loafle.cms.proto.common.SearchPagination} message
|
|
||||||
* @param {!jspb.BinaryWriter} writer
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.serializeBinaryToWriter = function(message, writer) {
|
|
||||||
var f = undefined;
|
|
||||||
f = message.getIndex();
|
|
||||||
if (f !== 0) {
|
|
||||||
writer.writeInt32(
|
|
||||||
1,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getSize();
|
|
||||||
if (f !== 0) {
|
|
||||||
writer.writeInt32(
|
|
||||||
2,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional int32 index = 1;
|
|
||||||
* @return {number}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.prototype.getIndex = function() {
|
|
||||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {number} value */
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.prototype.setIndex = function(value) {
|
|
||||||
jspb.Message.setProto3IntField(this, 1, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional int32 size = 2;
|
|
||||||
* @return {number}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.prototype.getSize = function() {
|
|
||||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {number} value */
|
|
||||||
proto.loafle.cms.proto.common.SearchPagination.prototype.setSize = function(value) {
|
|
||||||
jspb.Message.setProto3IntField(this, 2, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
goog.object.extend(exports, proto.loafle.cms.proto.common);
|
|
28
pkg/api/v1/web/common/search-sort_pb.d.ts
vendored
28
pkg/api/v1/web/common/search-sort_pb.d.ts
vendored
|
@ -1,28 +0,0 @@
|
||||||
import * as jspb from "google-protobuf"
|
|
||||||
|
|
||||||
export class SearchSort extends jspb.Message {
|
|
||||||
getKey(): string;
|
|
||||||
setKey(value: string): void;
|
|
||||||
|
|
||||||
getOrder(): SearchOrder;
|
|
||||||
setOrder(value: SearchOrder): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): SearchSort.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: SearchSort): SearchSort.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: SearchSort, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): SearchSort;
|
|
||||||
static deserializeBinaryFromReader(message: SearchSort, reader: jspb.BinaryReader): SearchSort;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace SearchSort {
|
|
||||||
export type AsObject = {
|
|
||||||
key: string,
|
|
||||||
order: SearchOrder,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum SearchOrder {
|
|
||||||
DESC = 0,
|
|
||||||
ASC = 1,
|
|
||||||
}
|
|
|
@ -1,199 +0,0 @@
|
||||||
/**
|
|
||||||
* @fileoverview
|
|
||||||
* @enhanceable
|
|
||||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
||||||
* field starts with 'MSG_' and isn't a translatable message.
|
|
||||||
* @public
|
|
||||||
*/
|
|
||||||
// GENERATED CODE -- DO NOT EDIT!
|
|
||||||
|
|
||||||
var jspb = require('google-protobuf');
|
|
||||||
var goog = jspb;
|
|
||||||
var global = Function('return this')();
|
|
||||||
|
|
||||||
goog.exportSymbol('proto.loafle.cms.proto.common.SearchOrder', null, global);
|
|
||||||
goog.exportSymbol('proto.loafle.cms.proto.common.SearchSort', null, global);
|
|
||||||
/**
|
|
||||||
* Generated by JsPbCodeGenerator.
|
|
||||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
||||||
* server response, or constructed directly in Javascript. The array is used
|
|
||||||
* in place and becomes part of the constructed object. It is not cloned.
|
|
||||||
* If no data is provided, the constructed object will be empty, but still
|
|
||||||
* valid.
|
|
||||||
* @extends {jspb.Message}
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchSort = function(opt_data) {
|
|
||||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
||||||
};
|
|
||||||
goog.inherits(proto.loafle.cms.proto.common.SearchSort, jspb.Message);
|
|
||||||
if (goog.DEBUG && !COMPILED) {
|
|
||||||
/**
|
|
||||||
* @public
|
|
||||||
* @override
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.displayName = 'proto.loafle.cms.proto.common.SearchSort';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
||||||
/**
|
|
||||||
* Creates an object representation of this proto.
|
|
||||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
||||||
* Optional fields that are not set will be set to undefined.
|
|
||||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
||||||
* For the list of reserved names please see:
|
|
||||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
||||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
||||||
* JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @return {!Object}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.prototype.toObject = function(opt_includeInstance) {
|
|
||||||
return proto.loafle.cms.proto.common.SearchSort.toObject(opt_includeInstance, this);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Static version of the {@see toObject} method.
|
|
||||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
||||||
* the JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @param {!proto.loafle.cms.proto.common.SearchSort} msg The msg instance to transform.
|
|
||||||
* @return {!Object}
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.toObject = function(includeInstance, msg) {
|
|
||||||
var f, obj = {
|
|
||||||
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
||||||
order: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
||||||
};
|
|
||||||
|
|
||||||
if (includeInstance) {
|
|
||||||
obj.$jspbMessageInstance = msg;
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format).
|
|
||||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
||||||
* @return {!proto.loafle.cms.proto.common.SearchSort}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.deserializeBinary = function(bytes) {
|
|
||||||
var reader = new jspb.BinaryReader(bytes);
|
|
||||||
var msg = new proto.loafle.cms.proto.common.SearchSort;
|
|
||||||
return proto.loafle.cms.proto.common.SearchSort.deserializeBinaryFromReader(msg, reader);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format) from the
|
|
||||||
* given reader into the given message object.
|
|
||||||
* @param {!proto.loafle.cms.proto.common.SearchSort} msg The message object to deserialize into.
|
|
||||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
||||||
* @return {!proto.loafle.cms.proto.common.SearchSort}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.deserializeBinaryFromReader = function(msg, reader) {
|
|
||||||
while (reader.nextField()) {
|
|
||||||
if (reader.isEndGroup()) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
var field = reader.getFieldNumber();
|
|
||||||
switch (field) {
|
|
||||||
case 1:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setKey(value);
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
var value = /** @type {!proto.loafle.cms.proto.common.SearchOrder} */ (reader.readEnum());
|
|
||||||
msg.setOrder(value);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
reader.skipField();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return msg;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the message to binary data (in protobuf wire format).
|
|
||||||
* @return {!Uint8Array}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.prototype.serializeBinary = function() {
|
|
||||||
var writer = new jspb.BinaryWriter();
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.serializeBinaryToWriter(this, writer);
|
|
||||||
return writer.getResultBuffer();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the given message to binary data (in protobuf wire
|
|
||||||
* format), writing to the given BinaryWriter.
|
|
||||||
* @param {!proto.loafle.cms.proto.common.SearchSort} message
|
|
||||||
* @param {!jspb.BinaryWriter} writer
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.serializeBinaryToWriter = function(message, writer) {
|
|
||||||
var f = undefined;
|
|
||||||
f = message.getKey();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
1,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getOrder();
|
|
||||||
if (f !== 0.0) {
|
|
||||||
writer.writeEnum(
|
|
||||||
2,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string key = 1;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.prototype.getKey = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.prototype.setKey = function(value) {
|
|
||||||
jspb.Message.setProto3StringField(this, 1, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional SearchOrder order = 2;
|
|
||||||
* @return {!proto.loafle.cms.proto.common.SearchOrder}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.prototype.getOrder = function() {
|
|
||||||
return /** @type {!proto.loafle.cms.proto.common.SearchOrder} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {!proto.loafle.cms.proto.common.SearchOrder} value */
|
|
||||||
proto.loafle.cms.proto.common.SearchSort.prototype.setOrder = function(value) {
|
|
||||||
jspb.Message.setProto3EnumField(this, 2, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @enum {number}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.common.SearchOrder = {
|
|
||||||
DESC: 0,
|
|
||||||
ASC: 1
|
|
||||||
};
|
|
||||||
|
|
||||||
goog.object.extend(exports, proto.loafle.cms.proto.common);
|
|
|
@ -1,18 +0,0 @@
|
||||||
{
|
|
||||||
"name": "@loafle-cms/proto-web",
|
|
||||||
"author": "Loafle <rnd@loafle.com>",
|
|
||||||
"description": "Proto module of Odds Crawler",
|
|
||||||
"version": "0.0.1",
|
|
||||||
"license": "COMMERCIAL",
|
|
||||||
"private": false,
|
|
||||||
"repository": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://git.loafle.net/overflow/commons-typescript.git"
|
|
||||||
},
|
|
||||||
"publishConfig": {
|
|
||||||
"registry": "https://nexus.loafle.net/repository/npm-loafle/"
|
|
||||||
},
|
|
||||||
"dependencies": {},
|
|
||||||
"devDependencies": {},
|
|
||||||
"peerDependencies": {}
|
|
||||||
}
|
|
106
pkg/api/v1/web/user/user-service_grpc_web_pb.d.ts
vendored
106
pkg/api/v1/web/user/user-service_grpc_web_pb.d.ts
vendored
|
@ -1,106 +0,0 @@
|
||||||
import * as grpcWeb from 'grpc-web';
|
|
||||||
|
|
||||||
import * as common_search$criteria_pb from '../common/search-criteria_pb';
|
|
||||||
import * as common_search$pagination_pb from '../common/search-pagination_pb';
|
|
||||||
import * as common_search$sort_pb from '../common/search-sort_pb';
|
|
||||||
import * as user_user_pb from '../user/user_pb';
|
|
||||||
|
|
||||||
import {
|
|
||||||
CreateUserRequest,
|
|
||||||
CreateUserResponse,
|
|
||||||
DeleteUserRequest,
|
|
||||||
DeleteUserResponse,
|
|
||||||
ReadAllUsersRequest,
|
|
||||||
ReadAllUsersResponse,
|
|
||||||
ReadUserByIdRequest,
|
|
||||||
ReadUserByUsernameRequest,
|
|
||||||
ReadUserResponse,
|
|
||||||
UpdateUserRequest,
|
|
||||||
UpdateUserResponse} from './user-service_pb';
|
|
||||||
|
|
||||||
export class UserServiceClient {
|
|
||||||
constructor (hostname: string,
|
|
||||||
credentials: null | { [index: string]: string; },
|
|
||||||
options: null | { [index: string]: string; });
|
|
||||||
|
|
||||||
createUser(
|
|
||||||
request: CreateUserRequest,
|
|
||||||
metadata: grpcWeb.Metadata | undefined,
|
|
||||||
callback: (err: grpcWeb.Error,
|
|
||||||
response: CreateUserResponse) => void
|
|
||||||
): grpcWeb.ClientReadableStream<CreateUserResponse>;
|
|
||||||
|
|
||||||
readUserById(
|
|
||||||
request: ReadUserByIdRequest,
|
|
||||||
metadata: grpcWeb.Metadata | undefined,
|
|
||||||
callback: (err: grpcWeb.Error,
|
|
||||||
response: ReadUserResponse) => void
|
|
||||||
): grpcWeb.ClientReadableStream<ReadUserResponse>;
|
|
||||||
|
|
||||||
readUserByUsername(
|
|
||||||
request: ReadUserByUsernameRequest,
|
|
||||||
metadata: grpcWeb.Metadata | undefined,
|
|
||||||
callback: (err: grpcWeb.Error,
|
|
||||||
response: ReadUserResponse) => void
|
|
||||||
): grpcWeb.ClientReadableStream<ReadUserResponse>;
|
|
||||||
|
|
||||||
updateUser(
|
|
||||||
request: UpdateUserRequest,
|
|
||||||
metadata: grpcWeb.Metadata | undefined,
|
|
||||||
callback: (err: grpcWeb.Error,
|
|
||||||
response: UpdateUserResponse) => void
|
|
||||||
): grpcWeb.ClientReadableStream<UpdateUserResponse>;
|
|
||||||
|
|
||||||
deleteUser(
|
|
||||||
request: DeleteUserRequest,
|
|
||||||
metadata: grpcWeb.Metadata | undefined,
|
|
||||||
callback: (err: grpcWeb.Error,
|
|
||||||
response: DeleteUserResponse) => void
|
|
||||||
): grpcWeb.ClientReadableStream<DeleteUserResponse>;
|
|
||||||
|
|
||||||
readAllUsers(
|
|
||||||
request: ReadAllUsersRequest,
|
|
||||||
metadata: grpcWeb.Metadata | undefined,
|
|
||||||
callback: (err: grpcWeb.Error,
|
|
||||||
response: ReadAllUsersResponse) => void
|
|
||||||
): grpcWeb.ClientReadableStream<ReadAllUsersResponse>;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
export class UserServicePromiseClient {
|
|
||||||
constructor (hostname: string,
|
|
||||||
credentials: null | { [index: string]: string; },
|
|
||||||
options: null | { [index: string]: string; });
|
|
||||||
|
|
||||||
createUser(
|
|
||||||
request: CreateUserRequest,
|
|
||||||
metadata?: grpcWeb.Metadata
|
|
||||||
): Promise<CreateUserResponse>;
|
|
||||||
|
|
||||||
readUserById(
|
|
||||||
request: ReadUserByIdRequest,
|
|
||||||
metadata?: grpcWeb.Metadata
|
|
||||||
): Promise<ReadUserResponse>;
|
|
||||||
|
|
||||||
readUserByUsername(
|
|
||||||
request: ReadUserByUsernameRequest,
|
|
||||||
metadata?: grpcWeb.Metadata
|
|
||||||
): Promise<ReadUserResponse>;
|
|
||||||
|
|
||||||
updateUser(
|
|
||||||
request: UpdateUserRequest,
|
|
||||||
metadata?: grpcWeb.Metadata
|
|
||||||
): Promise<UpdateUserResponse>;
|
|
||||||
|
|
||||||
deleteUser(
|
|
||||||
request: DeleteUserRequest,
|
|
||||||
metadata?: grpcWeb.Metadata
|
|
||||||
): Promise<DeleteUserResponse>;
|
|
||||||
|
|
||||||
readAllUsers(
|
|
||||||
request: ReadAllUsersRequest,
|
|
||||||
metadata?: grpcWeb.Metadata
|
|
||||||
): Promise<ReadAllUsersResponse>;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,431 +0,0 @@
|
||||||
/**
|
|
||||||
* @fileoverview gRPC-Web generated client stub for loafle.cms.proto.user
|
|
||||||
* @enhanceable
|
|
||||||
* @public
|
|
||||||
*/
|
|
||||||
|
|
||||||
// GENERATED CODE -- DO NOT EDIT!
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const grpc = {};
|
|
||||||
grpc.web = require('grpc-web');
|
|
||||||
|
|
||||||
|
|
||||||
var common_search$criteria_pb = require('../common/search-criteria_pb.js')
|
|
||||||
|
|
||||||
var common_search$pagination_pb = require('../common/search-pagination_pb.js')
|
|
||||||
|
|
||||||
var common_search$sort_pb = require('../common/search-sort_pb.js')
|
|
||||||
|
|
||||||
var user_user_pb = require('../user/user_pb.js')
|
|
||||||
const proto = {};
|
|
||||||
proto.loafle = {};
|
|
||||||
proto.loafle.cms = {};
|
|
||||||
proto.loafle.cms.proto = {};
|
|
||||||
proto.loafle.cms.proto.user = require('./user-service_pb.js');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {string} hostname
|
|
||||||
* @param {?Object} credentials
|
|
||||||
* @param {?Object} options
|
|
||||||
* @constructor
|
|
||||||
* @struct
|
|
||||||
* @final
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServiceClient =
|
|
||||||
function(hostname, credentials, options) {
|
|
||||||
if (!options) options = {};
|
|
||||||
options['format'] = 'binary';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
||||||
*/
|
|
||||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @private @const {string} The hostname
|
|
||||||
*/
|
|
||||||
this.hostname_ = hostname;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @private @const {?Object} The credentials to be used to connect
|
|
||||||
* to the server
|
|
||||||
*/
|
|
||||||
this.credentials_ = credentials;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @private @const {?Object} Options for the client
|
|
||||||
*/
|
|
||||||
this.options_ = options;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {string} hostname
|
|
||||||
* @param {?Object} credentials
|
|
||||||
* @param {?Object} options
|
|
||||||
* @constructor
|
|
||||||
* @struct
|
|
||||||
* @final
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServicePromiseClient =
|
|
||||||
function(hostname, credentials, options) {
|
|
||||||
if (!options) options = {};
|
|
||||||
options['format'] = 'binary';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
||||||
*/
|
|
||||||
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @private @const {string} The hostname
|
|
||||||
*/
|
|
||||||
this.hostname_ = hostname;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @private @const {?Object} The credentials to be used to connect
|
|
||||||
* to the server
|
|
||||||
*/
|
|
||||||
this.credentials_ = credentials;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @private @const {?Object} Options for the client
|
|
||||||
*/
|
|
||||||
this.options_ = options;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
||||||
* !proto.loafle.cms.proto.user.CreateUserRequest,
|
|
||||||
* !proto.loafle.cms.proto.user.CreateUserResponse>}
|
|
||||||
*/
|
|
||||||
const methodInfo_UserService_CreateUser = new grpc.web.AbstractClientBase.MethodInfo(
|
|
||||||
proto.loafle.cms.proto.user.CreateUserResponse,
|
|
||||||
/** @param {!proto.loafle.cms.proto.user.CreateUserRequest} request */
|
|
||||||
function(request) {
|
|
||||||
return request.serializeBinary();
|
|
||||||
},
|
|
||||||
proto.loafle.cms.proto.user.CreateUserResponse.deserializeBinary
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.CreateUserRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @param {function(?grpc.web.Error, ?proto.loafle.cms.proto.user.CreateUserResponse)}
|
|
||||||
* callback The callback function(error, response)
|
|
||||||
* @return {!grpc.web.ClientReadableStream<!proto.loafle.cms.proto.user.CreateUserResponse>|undefined}
|
|
||||||
* The XHR Node Readable Stream
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServiceClient.prototype.createUser =
|
|
||||||
function(request, metadata, callback) {
|
|
||||||
return this.client_.rpcCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/CreateUser',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_CreateUser,
|
|
||||||
callback);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.CreateUserRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @return {!Promise<!proto.loafle.cms.proto.user.CreateUserResponse>}
|
|
||||||
* A native promise that resolves to the response
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServicePromiseClient.prototype.createUser =
|
|
||||||
function(request, metadata) {
|
|
||||||
return this.client_.unaryCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/CreateUser',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_CreateUser);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
||||||
* !proto.loafle.cms.proto.user.ReadUserByIdRequest,
|
|
||||||
* !proto.loafle.cms.proto.user.ReadUserResponse>}
|
|
||||||
*/
|
|
||||||
const methodInfo_UserService_ReadUserById = new grpc.web.AbstractClientBase.MethodInfo(
|
|
||||||
proto.loafle.cms.proto.user.ReadUserResponse,
|
|
||||||
/** @param {!proto.loafle.cms.proto.user.ReadUserByIdRequest} request */
|
|
||||||
function(request) {
|
|
||||||
return request.serializeBinary();
|
|
||||||
},
|
|
||||||
proto.loafle.cms.proto.user.ReadUserResponse.deserializeBinary
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.ReadUserByIdRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @param {function(?grpc.web.Error, ?proto.loafle.cms.proto.user.ReadUserResponse)}
|
|
||||||
* callback The callback function(error, response)
|
|
||||||
* @return {!grpc.web.ClientReadableStream<!proto.loafle.cms.proto.user.ReadUserResponse>|undefined}
|
|
||||||
* The XHR Node Readable Stream
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServiceClient.prototype.readUserById =
|
|
||||||
function(request, metadata, callback) {
|
|
||||||
return this.client_.rpcCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/ReadUserById',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_ReadUserById,
|
|
||||||
callback);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.ReadUserByIdRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @return {!Promise<!proto.loafle.cms.proto.user.ReadUserResponse>}
|
|
||||||
* A native promise that resolves to the response
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServicePromiseClient.prototype.readUserById =
|
|
||||||
function(request, metadata) {
|
|
||||||
return this.client_.unaryCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/ReadUserById',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_ReadUserById);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
||||||
* !proto.loafle.cms.proto.user.ReadUserByUsernameRequest,
|
|
||||||
* !proto.loafle.cms.proto.user.ReadUserResponse>}
|
|
||||||
*/
|
|
||||||
const methodInfo_UserService_ReadUserByUsername = new grpc.web.AbstractClientBase.MethodInfo(
|
|
||||||
proto.loafle.cms.proto.user.ReadUserResponse,
|
|
||||||
/** @param {!proto.loafle.cms.proto.user.ReadUserByUsernameRequest} request */
|
|
||||||
function(request) {
|
|
||||||
return request.serializeBinary();
|
|
||||||
},
|
|
||||||
proto.loafle.cms.proto.user.ReadUserResponse.deserializeBinary
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.ReadUserByUsernameRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @param {function(?grpc.web.Error, ?proto.loafle.cms.proto.user.ReadUserResponse)}
|
|
||||||
* callback The callback function(error, response)
|
|
||||||
* @return {!grpc.web.ClientReadableStream<!proto.loafle.cms.proto.user.ReadUserResponse>|undefined}
|
|
||||||
* The XHR Node Readable Stream
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServiceClient.prototype.readUserByUsername =
|
|
||||||
function(request, metadata, callback) {
|
|
||||||
return this.client_.rpcCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/ReadUserByUsername',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_ReadUserByUsername,
|
|
||||||
callback);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.ReadUserByUsernameRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @return {!Promise<!proto.loafle.cms.proto.user.ReadUserResponse>}
|
|
||||||
* A native promise that resolves to the response
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServicePromiseClient.prototype.readUserByUsername =
|
|
||||||
function(request, metadata) {
|
|
||||||
return this.client_.unaryCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/ReadUserByUsername',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_ReadUserByUsername);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
||||||
* !proto.loafle.cms.proto.user.UpdateUserRequest,
|
|
||||||
* !proto.loafle.cms.proto.user.UpdateUserResponse>}
|
|
||||||
*/
|
|
||||||
const methodInfo_UserService_UpdateUser = new grpc.web.AbstractClientBase.MethodInfo(
|
|
||||||
proto.loafle.cms.proto.user.UpdateUserResponse,
|
|
||||||
/** @param {!proto.loafle.cms.proto.user.UpdateUserRequest} request */
|
|
||||||
function(request) {
|
|
||||||
return request.serializeBinary();
|
|
||||||
},
|
|
||||||
proto.loafle.cms.proto.user.UpdateUserResponse.deserializeBinary
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.UpdateUserRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @param {function(?grpc.web.Error, ?proto.loafle.cms.proto.user.UpdateUserResponse)}
|
|
||||||
* callback The callback function(error, response)
|
|
||||||
* @return {!grpc.web.ClientReadableStream<!proto.loafle.cms.proto.user.UpdateUserResponse>|undefined}
|
|
||||||
* The XHR Node Readable Stream
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServiceClient.prototype.updateUser =
|
|
||||||
function(request, metadata, callback) {
|
|
||||||
return this.client_.rpcCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/UpdateUser',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_UpdateUser,
|
|
||||||
callback);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.UpdateUserRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @return {!Promise<!proto.loafle.cms.proto.user.UpdateUserResponse>}
|
|
||||||
* A native promise that resolves to the response
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServicePromiseClient.prototype.updateUser =
|
|
||||||
function(request, metadata) {
|
|
||||||
return this.client_.unaryCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/UpdateUser',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_UpdateUser);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
||||||
* !proto.loafle.cms.proto.user.DeleteUserRequest,
|
|
||||||
* !proto.loafle.cms.proto.user.DeleteUserResponse>}
|
|
||||||
*/
|
|
||||||
const methodInfo_UserService_DeleteUser = new grpc.web.AbstractClientBase.MethodInfo(
|
|
||||||
proto.loafle.cms.proto.user.DeleteUserResponse,
|
|
||||||
/** @param {!proto.loafle.cms.proto.user.DeleteUserRequest} request */
|
|
||||||
function(request) {
|
|
||||||
return request.serializeBinary();
|
|
||||||
},
|
|
||||||
proto.loafle.cms.proto.user.DeleteUserResponse.deserializeBinary
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.DeleteUserRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @param {function(?grpc.web.Error, ?proto.loafle.cms.proto.user.DeleteUserResponse)}
|
|
||||||
* callback The callback function(error, response)
|
|
||||||
* @return {!grpc.web.ClientReadableStream<!proto.loafle.cms.proto.user.DeleteUserResponse>|undefined}
|
|
||||||
* The XHR Node Readable Stream
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServiceClient.prototype.deleteUser =
|
|
||||||
function(request, metadata, callback) {
|
|
||||||
return this.client_.rpcCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/DeleteUser',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_DeleteUser,
|
|
||||||
callback);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.DeleteUserRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @return {!Promise<!proto.loafle.cms.proto.user.DeleteUserResponse>}
|
|
||||||
* A native promise that resolves to the response
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServicePromiseClient.prototype.deleteUser =
|
|
||||||
function(request, metadata) {
|
|
||||||
return this.client_.unaryCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/DeleteUser',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_DeleteUser);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @const
|
|
||||||
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
||||||
* !proto.loafle.cms.proto.user.ReadAllUsersRequest,
|
|
||||||
* !proto.loafle.cms.proto.user.ReadAllUsersResponse>}
|
|
||||||
*/
|
|
||||||
const methodInfo_UserService_ReadAllUsers = new grpc.web.AbstractClientBase.MethodInfo(
|
|
||||||
proto.loafle.cms.proto.user.ReadAllUsersResponse,
|
|
||||||
/** @param {!proto.loafle.cms.proto.user.ReadAllUsersRequest} request */
|
|
||||||
function(request) {
|
|
||||||
return request.serializeBinary();
|
|
||||||
},
|
|
||||||
proto.loafle.cms.proto.user.ReadAllUsersResponse.deserializeBinary
|
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.ReadAllUsersRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @param {function(?grpc.web.Error, ?proto.loafle.cms.proto.user.ReadAllUsersResponse)}
|
|
||||||
* callback The callback function(error, response)
|
|
||||||
* @return {!grpc.web.ClientReadableStream<!proto.loafle.cms.proto.user.ReadAllUsersResponse>|undefined}
|
|
||||||
* The XHR Node Readable Stream
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServiceClient.prototype.readAllUsers =
|
|
||||||
function(request, metadata, callback) {
|
|
||||||
return this.client_.rpcCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/ReadAllUsers',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_ReadAllUsers,
|
|
||||||
callback);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {!proto.loafle.cms.proto.user.ReadAllUsersRequest} request The
|
|
||||||
* request proto
|
|
||||||
* @param {?Object<string, string>} metadata User defined
|
|
||||||
* call metadata
|
|
||||||
* @return {!Promise<!proto.loafle.cms.proto.user.ReadAllUsersResponse>}
|
|
||||||
* A native promise that resolves to the response
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.UserServicePromiseClient.prototype.readAllUsers =
|
|
||||||
function(request, metadata) {
|
|
||||||
return this.client_.unaryCall(this.hostname_ +
|
|
||||||
'/loafle.cms.proto.user.UserService/ReadAllUsers',
|
|
||||||
request,
|
|
||||||
metadata || {},
|
|
||||||
methodInfo_UserService_ReadAllUsers);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
module.exports = proto.loafle.cms.proto.user;
|
|
||||||
|
|
275
pkg/api/v1/web/user/user-service_pb.d.ts
vendored
275
pkg/api/v1/web/user/user-service_pb.d.ts
vendored
|
@ -1,275 +0,0 @@
|
||||||
import * as jspb from "google-protobuf"
|
|
||||||
|
|
||||||
import * as common_search$criteria_pb from '../common/search-criteria_pb';
|
|
||||||
import * as common_search$pagination_pb from '../common/search-pagination_pb';
|
|
||||||
import * as common_search$sort_pb from '../common/search-sort_pb';
|
|
||||||
import * as user_user_pb from '../user/user_pb';
|
|
||||||
|
|
||||||
export class CreateUserRequest extends jspb.Message {
|
|
||||||
getApi(): string;
|
|
||||||
setApi(value: string): void;
|
|
||||||
|
|
||||||
getUser(): user_user_pb.User | undefined;
|
|
||||||
setUser(value?: user_user_pb.User): void;
|
|
||||||
hasUser(): boolean;
|
|
||||||
clearUser(): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): CreateUserRequest.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: CreateUserRequest): CreateUserRequest.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: CreateUserRequest, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): CreateUserRequest;
|
|
||||||
static deserializeBinaryFromReader(message: CreateUserRequest, reader: jspb.BinaryReader): CreateUserRequest;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace CreateUserRequest {
|
|
||||||
export type AsObject = {
|
|
||||||
api: string,
|
|
||||||
user?: user_user_pb.User.AsObject,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class CreateUserResponse extends jspb.Message {
|
|
||||||
getApi(): string;
|
|
||||||
setApi(value: string): void;
|
|
||||||
|
|
||||||
getId(): number;
|
|
||||||
setId(value: number): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): CreateUserResponse.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: CreateUserResponse): CreateUserResponse.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: CreateUserResponse, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): CreateUserResponse;
|
|
||||||
static deserializeBinaryFromReader(message: CreateUserResponse, reader: jspb.BinaryReader): CreateUserResponse;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace CreateUserResponse {
|
|
||||||
export type AsObject = {
|
|
||||||
api: string,
|
|
||||||
id: number,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ReadUserByIdRequest extends jspb.Message {
|
|
||||||
getApi(): string;
|
|
||||||
setApi(value: string): void;
|
|
||||||
|
|
||||||
getId(): number;
|
|
||||||
setId(value: number): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): ReadUserByIdRequest.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: ReadUserByIdRequest): ReadUserByIdRequest.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: ReadUserByIdRequest, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): ReadUserByIdRequest;
|
|
||||||
static deserializeBinaryFromReader(message: ReadUserByIdRequest, reader: jspb.BinaryReader): ReadUserByIdRequest;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace ReadUserByIdRequest {
|
|
||||||
export type AsObject = {
|
|
||||||
api: string,
|
|
||||||
id: number,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ReadUserByUsernameRequest extends jspb.Message {
|
|
||||||
getApi(): string;
|
|
||||||
setApi(value: string): void;
|
|
||||||
|
|
||||||
getUsername(): string;
|
|
||||||
setUsername(value: string): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): ReadUserByUsernameRequest.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: ReadUserByUsernameRequest): ReadUserByUsernameRequest.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: ReadUserByUsernameRequest, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): ReadUserByUsernameRequest;
|
|
||||||
static deserializeBinaryFromReader(message: ReadUserByUsernameRequest, reader: jspb.BinaryReader): ReadUserByUsernameRequest;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace ReadUserByUsernameRequest {
|
|
||||||
export type AsObject = {
|
|
||||||
api: string,
|
|
||||||
username: string,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ReadUserResponse extends jspb.Message {
|
|
||||||
getApi(): string;
|
|
||||||
setApi(value: string): void;
|
|
||||||
|
|
||||||
getUser(): user_user_pb.User | undefined;
|
|
||||||
setUser(value?: user_user_pb.User): void;
|
|
||||||
hasUser(): boolean;
|
|
||||||
clearUser(): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): ReadUserResponse.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: ReadUserResponse): ReadUserResponse.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: ReadUserResponse, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): ReadUserResponse;
|
|
||||||
static deserializeBinaryFromReader(message: ReadUserResponse, reader: jspb.BinaryReader): ReadUserResponse;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace ReadUserResponse {
|
|
||||||
export type AsObject = {
|
|
||||||
api: string,
|
|
||||||
user?: user_user_pb.User.AsObject,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class UpdateUserRequest extends jspb.Message {
|
|
||||||
getApi(): string;
|
|
||||||
setApi(value: string): void;
|
|
||||||
|
|
||||||
getUser(): user_user_pb.User | undefined;
|
|
||||||
setUser(value?: user_user_pb.User): void;
|
|
||||||
hasUser(): boolean;
|
|
||||||
clearUser(): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): UpdateUserRequest.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: UpdateUserRequest): UpdateUserRequest.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: UpdateUserRequest, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): UpdateUserRequest;
|
|
||||||
static deserializeBinaryFromReader(message: UpdateUserRequest, reader: jspb.BinaryReader): UpdateUserRequest;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace UpdateUserRequest {
|
|
||||||
export type AsObject = {
|
|
||||||
api: string,
|
|
||||||
user?: user_user_pb.User.AsObject,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class UpdateUserResponse extends jspb.Message {
|
|
||||||
getApi(): string;
|
|
||||||
setApi(value: string): void;
|
|
||||||
|
|
||||||
getUpdated(): number;
|
|
||||||
setUpdated(value: number): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): UpdateUserResponse.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: UpdateUserResponse): UpdateUserResponse.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: UpdateUserResponse, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): UpdateUserResponse;
|
|
||||||
static deserializeBinaryFromReader(message: UpdateUserResponse, reader: jspb.BinaryReader): UpdateUserResponse;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace UpdateUserResponse {
|
|
||||||
export type AsObject = {
|
|
||||||
api: string,
|
|
||||||
updated: number,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class DeleteUserRequest extends jspb.Message {
|
|
||||||
getApi(): string;
|
|
||||||
setApi(value: string): void;
|
|
||||||
|
|
||||||
getId(): number;
|
|
||||||
setId(value: number): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): DeleteUserRequest.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: DeleteUserRequest): DeleteUserRequest.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: DeleteUserRequest, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): DeleteUserRequest;
|
|
||||||
static deserializeBinaryFromReader(message: DeleteUserRequest, reader: jspb.BinaryReader): DeleteUserRequest;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace DeleteUserRequest {
|
|
||||||
export type AsObject = {
|
|
||||||
api: string,
|
|
||||||
id: number,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class DeleteUserResponse extends jspb.Message {
|
|
||||||
getApi(): string;
|
|
||||||
setApi(value: string): void;
|
|
||||||
|
|
||||||
getDeleted(): number;
|
|
||||||
setDeleted(value: number): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): DeleteUserResponse.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: DeleteUserResponse): DeleteUserResponse.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: DeleteUserResponse, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): DeleteUserResponse;
|
|
||||||
static deserializeBinaryFromReader(message: DeleteUserResponse, reader: jspb.BinaryReader): DeleteUserResponse;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace DeleteUserResponse {
|
|
||||||
export type AsObject = {
|
|
||||||
api: string,
|
|
||||||
deleted: number,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ReadAllUsersRequest extends jspb.Message {
|
|
||||||
getApi(): string;
|
|
||||||
setApi(value: string): void;
|
|
||||||
|
|
||||||
getPagination(): common_search$pagination_pb.SearchPagination | undefined;
|
|
||||||
setPagination(value?: common_search$pagination_pb.SearchPagination): void;
|
|
||||||
hasPagination(): boolean;
|
|
||||||
clearPagination(): void;
|
|
||||||
|
|
||||||
getSort(): common_search$sort_pb.SearchSort | undefined;
|
|
||||||
setSort(value?: common_search$sort_pb.SearchSort): void;
|
|
||||||
hasSort(): boolean;
|
|
||||||
clearSort(): void;
|
|
||||||
|
|
||||||
getCriteriaList(): Array<common_search$criteria_pb.SearchCriteria>;
|
|
||||||
setCriteriaList(value: Array<common_search$criteria_pb.SearchCriteria>): void;
|
|
||||||
clearCriteriaList(): void;
|
|
||||||
addCriteria(value?: common_search$criteria_pb.SearchCriteria, index?: number): common_search$criteria_pb.SearchCriteria;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): ReadAllUsersRequest.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: ReadAllUsersRequest): ReadAllUsersRequest.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: ReadAllUsersRequest, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): ReadAllUsersRequest;
|
|
||||||
static deserializeBinaryFromReader(message: ReadAllUsersRequest, reader: jspb.BinaryReader): ReadAllUsersRequest;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace ReadAllUsersRequest {
|
|
||||||
export type AsObject = {
|
|
||||||
api: string,
|
|
||||||
pagination?: common_search$pagination_pb.SearchPagination.AsObject,
|
|
||||||
sort?: common_search$sort_pb.SearchSort.AsObject,
|
|
||||||
criteriaList: Array<common_search$criteria_pb.SearchCriteria.AsObject>,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
export class ReadAllUsersResponse extends jspb.Message {
|
|
||||||
getApi(): string;
|
|
||||||
setApi(value: string): void;
|
|
||||||
|
|
||||||
getTotalcount(): number;
|
|
||||||
setTotalcount(value: number): void;
|
|
||||||
|
|
||||||
getUsersList(): Array<user_user_pb.User>;
|
|
||||||
setUsersList(value: Array<user_user_pb.User>): void;
|
|
||||||
clearUsersList(): void;
|
|
||||||
addUsers(value?: user_user_pb.User, index?: number): user_user_pb.User;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): ReadAllUsersResponse.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: ReadAllUsersResponse): ReadAllUsersResponse.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: ReadAllUsersResponse, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): ReadAllUsersResponse;
|
|
||||||
static deserializeBinaryFromReader(message: ReadAllUsersResponse, reader: jspb.BinaryReader): ReadAllUsersResponse;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace ReadAllUsersResponse {
|
|
||||||
export type AsObject = {
|
|
||||||
api: string,
|
|
||||||
totalcount: number,
|
|
||||||
usersList: Array<user_user_pb.User.AsObject>,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
88
pkg/api/v1/web/user/user_pb.d.ts
vendored
88
pkg/api/v1/web/user/user_pb.d.ts
vendored
|
@ -1,88 +0,0 @@
|
||||||
import * as jspb from "google-protobuf"
|
|
||||||
|
|
||||||
import * as google_protobuf_timestamp_pb from 'google-protobuf/google/protobuf/timestamp_pb';
|
|
||||||
|
|
||||||
export class User extends jspb.Message {
|
|
||||||
getId(): number;
|
|
||||||
setId(value: number): void;
|
|
||||||
|
|
||||||
getName(): string;
|
|
||||||
setName(value: string): void;
|
|
||||||
|
|
||||||
getUsername(): string;
|
|
||||||
setUsername(value: string): void;
|
|
||||||
|
|
||||||
getEmail(): string;
|
|
||||||
setEmail(value: string): void;
|
|
||||||
|
|
||||||
getPassword(): string;
|
|
||||||
setPassword(value: string): void;
|
|
||||||
|
|
||||||
getBlock(): boolean;
|
|
||||||
setBlock(value: boolean): void;
|
|
||||||
|
|
||||||
getSendemail(): boolean;
|
|
||||||
setSendemail(value: boolean): void;
|
|
||||||
|
|
||||||
getRegisterdate(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
||||||
setRegisterdate(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
||||||
hasRegisterdate(): boolean;
|
|
||||||
clearRegisterdate(): void;
|
|
||||||
|
|
||||||
getLastvisitdate(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
||||||
setLastvisitdate(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
||||||
hasLastvisitdate(): boolean;
|
|
||||||
clearLastvisitdate(): void;
|
|
||||||
|
|
||||||
getActivation(): string;
|
|
||||||
setActivation(value: string): void;
|
|
||||||
|
|
||||||
getParams(): string;
|
|
||||||
setParams(value: string): void;
|
|
||||||
|
|
||||||
getLastresettime(): google_protobuf_timestamp_pb.Timestamp | undefined;
|
|
||||||
setLastresettime(value?: google_protobuf_timestamp_pb.Timestamp): void;
|
|
||||||
hasLastresettime(): boolean;
|
|
||||||
clearLastresettime(): void;
|
|
||||||
|
|
||||||
getResetcount(): number;
|
|
||||||
setResetcount(value: number): void;
|
|
||||||
|
|
||||||
getOtpkey(): string;
|
|
||||||
setOtpkey(value: string): void;
|
|
||||||
|
|
||||||
getOtep(): string;
|
|
||||||
setOtep(value: string): void;
|
|
||||||
|
|
||||||
getRequirereset(): boolean;
|
|
||||||
setRequirereset(value: boolean): void;
|
|
||||||
|
|
||||||
serializeBinary(): Uint8Array;
|
|
||||||
toObject(includeInstance?: boolean): User.AsObject;
|
|
||||||
static toObject(includeInstance: boolean, msg: User): User.AsObject;
|
|
||||||
static serializeBinaryToWriter(message: User, writer: jspb.BinaryWriter): void;
|
|
||||||
static deserializeBinary(bytes: Uint8Array): User;
|
|
||||||
static deserializeBinaryFromReader(message: User, reader: jspb.BinaryReader): User;
|
|
||||||
}
|
|
||||||
|
|
||||||
export namespace User {
|
|
||||||
export type AsObject = {
|
|
||||||
id: number,
|
|
||||||
name: string,
|
|
||||||
username: string,
|
|
||||||
email: string,
|
|
||||||
password: string,
|
|
||||||
block: boolean,
|
|
||||||
sendemail: boolean,
|
|
||||||
registerdate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
||||||
lastvisitdate?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
||||||
activation: string,
|
|
||||||
params: string,
|
|
||||||
lastresettime?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
|
||||||
resetcount: number,
|
|
||||||
otpkey: string,
|
|
||||||
otep: string,
|
|
||||||
requirereset: boolean,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,630 +0,0 @@
|
||||||
/**
|
|
||||||
* @fileoverview
|
|
||||||
* @enhanceable
|
|
||||||
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
||||||
* field starts with 'MSG_' and isn't a translatable message.
|
|
||||||
* @public
|
|
||||||
*/
|
|
||||||
// GENERATED CODE -- DO NOT EDIT!
|
|
||||||
|
|
||||||
var jspb = require('google-protobuf');
|
|
||||||
var goog = jspb;
|
|
||||||
var global = Function('return this')();
|
|
||||||
|
|
||||||
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
||||||
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
||||||
goog.exportSymbol('proto.loafle.cms.proto.user.User', null, global);
|
|
||||||
/**
|
|
||||||
* Generated by JsPbCodeGenerator.
|
|
||||||
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
||||||
* server response, or constructed directly in Javascript. The array is used
|
|
||||||
* in place and becomes part of the constructed object. It is not cloned.
|
|
||||||
* If no data is provided, the constructed object will be empty, but still
|
|
||||||
* valid.
|
|
||||||
* @extends {jspb.Message}
|
|
||||||
* @constructor
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User = function(opt_data) {
|
|
||||||
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
||||||
};
|
|
||||||
goog.inherits(proto.loafle.cms.proto.user.User, jspb.Message);
|
|
||||||
if (goog.DEBUG && !COMPILED) {
|
|
||||||
/**
|
|
||||||
* @public
|
|
||||||
* @override
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.displayName = 'proto.loafle.cms.proto.user.User';
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
||||||
/**
|
|
||||||
* Creates an object representation of this proto.
|
|
||||||
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
||||||
* Optional fields that are not set will be set to undefined.
|
|
||||||
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
||||||
* For the list of reserved names please see:
|
|
||||||
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
||||||
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
||||||
* JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @return {!Object}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.toObject = function(opt_includeInstance) {
|
|
||||||
return proto.loafle.cms.proto.user.User.toObject(opt_includeInstance, this);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Static version of the {@see toObject} method.
|
|
||||||
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
||||||
* the JSPB instance for transitional soy proto support:
|
|
||||||
* http://goto/soy-param-migration
|
|
||||||
* @param {!proto.loafle.cms.proto.user.User} msg The msg instance to transform.
|
|
||||||
* @return {!Object}
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.toObject = function(includeInstance, msg) {
|
|
||||||
var f, obj = {
|
|
||||||
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
||||||
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
||||||
username: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
||||||
email: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
||||||
password: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
||||||
block: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
||||||
sendemail: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
|
||||||
registerdate: (f = msg.getRegisterdate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
||||||
lastvisitdate: (f = msg.getLastvisitdate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
||||||
activation: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
||||||
params: jspb.Message.getFieldWithDefault(msg, 11, ""),
|
|
||||||
lastresettime: (f = msg.getLastresettime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
||||||
resetcount: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
||||||
otpkey: jspb.Message.getFieldWithDefault(msg, 14, ""),
|
|
||||||
otep: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
||||||
requirereset: jspb.Message.getBooleanFieldWithDefault(msg, 16, false)
|
|
||||||
};
|
|
||||||
|
|
||||||
if (includeInstance) {
|
|
||||||
obj.$jspbMessageInstance = msg;
|
|
||||||
}
|
|
||||||
return obj;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format).
|
|
||||||
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
||||||
* @return {!proto.loafle.cms.proto.user.User}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.deserializeBinary = function(bytes) {
|
|
||||||
var reader = new jspb.BinaryReader(bytes);
|
|
||||||
var msg = new proto.loafle.cms.proto.user.User;
|
|
||||||
return proto.loafle.cms.proto.user.User.deserializeBinaryFromReader(msg, reader);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Deserializes binary data (in protobuf wire format) from the
|
|
||||||
* given reader into the given message object.
|
|
||||||
* @param {!proto.loafle.cms.proto.user.User} msg The message object to deserialize into.
|
|
||||||
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
||||||
* @return {!proto.loafle.cms.proto.user.User}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.deserializeBinaryFromReader = function(msg, reader) {
|
|
||||||
while (reader.nextField()) {
|
|
||||||
if (reader.isEndGroup()) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
var field = reader.getFieldNumber();
|
|
||||||
switch (field) {
|
|
||||||
case 1:
|
|
||||||
var value = /** @type {number} */ (reader.readInt64());
|
|
||||||
msg.setId(value);
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setName(value);
|
|
||||||
break;
|
|
||||||
case 3:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setUsername(value);
|
|
||||||
break;
|
|
||||||
case 4:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setEmail(value);
|
|
||||||
break;
|
|
||||||
case 5:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setPassword(value);
|
|
||||||
break;
|
|
||||||
case 6:
|
|
||||||
var value = /** @type {boolean} */ (reader.readBool());
|
|
||||||
msg.setBlock(value);
|
|
||||||
break;
|
|
||||||
case 7:
|
|
||||||
var value = /** @type {boolean} */ (reader.readBool());
|
|
||||||
msg.setSendemail(value);
|
|
||||||
break;
|
|
||||||
case 8:
|
|
||||||
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
||||||
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
||||||
msg.setRegisterdate(value);
|
|
||||||
break;
|
|
||||||
case 9:
|
|
||||||
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
||||||
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
||||||
msg.setLastvisitdate(value);
|
|
||||||
break;
|
|
||||||
case 10:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setActivation(value);
|
|
||||||
break;
|
|
||||||
case 11:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setParams(value);
|
|
||||||
break;
|
|
||||||
case 12:
|
|
||||||
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
||||||
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
||||||
msg.setLastresettime(value);
|
|
||||||
break;
|
|
||||||
case 13:
|
|
||||||
var value = /** @type {number} */ (reader.readInt64());
|
|
||||||
msg.setResetcount(value);
|
|
||||||
break;
|
|
||||||
case 14:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setOtpkey(value);
|
|
||||||
break;
|
|
||||||
case 15:
|
|
||||||
var value = /** @type {string} */ (reader.readString());
|
|
||||||
msg.setOtep(value);
|
|
||||||
break;
|
|
||||||
case 16:
|
|
||||||
var value = /** @type {boolean} */ (reader.readBool());
|
|
||||||
msg.setRequirereset(value);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
reader.skipField();
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return msg;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the message to binary data (in protobuf wire format).
|
|
||||||
* @return {!Uint8Array}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.serializeBinary = function() {
|
|
||||||
var writer = new jspb.BinaryWriter();
|
|
||||||
proto.loafle.cms.proto.user.User.serializeBinaryToWriter(this, writer);
|
|
||||||
return writer.getResultBuffer();
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Serializes the given message to binary data (in protobuf wire
|
|
||||||
* format), writing to the given BinaryWriter.
|
|
||||||
* @param {!proto.loafle.cms.proto.user.User} message
|
|
||||||
* @param {!jspb.BinaryWriter} writer
|
|
||||||
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.serializeBinaryToWriter = function(message, writer) {
|
|
||||||
var f = undefined;
|
|
||||||
f = message.getId();
|
|
||||||
if (f !== 0) {
|
|
||||||
writer.writeInt64(
|
|
||||||
1,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getName();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
2,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getUsername();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
3,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getEmail();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
4,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getPassword();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
5,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getBlock();
|
|
||||||
if (f) {
|
|
||||||
writer.writeBool(
|
|
||||||
6,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getSendemail();
|
|
||||||
if (f) {
|
|
||||||
writer.writeBool(
|
|
||||||
7,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getRegisterdate();
|
|
||||||
if (f != null) {
|
|
||||||
writer.writeMessage(
|
|
||||||
8,
|
|
||||||
f,
|
|
||||||
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getLastvisitdate();
|
|
||||||
if (f != null) {
|
|
||||||
writer.writeMessage(
|
|
||||||
9,
|
|
||||||
f,
|
|
||||||
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getActivation();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
10,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getParams();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
11,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getLastresettime();
|
|
||||||
if (f != null) {
|
|
||||||
writer.writeMessage(
|
|
||||||
12,
|
|
||||||
f,
|
|
||||||
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getResetcount();
|
|
||||||
if (f !== 0) {
|
|
||||||
writer.writeInt64(
|
|
||||||
13,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getOtpkey();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
14,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getOtep();
|
|
||||||
if (f.length > 0) {
|
|
||||||
writer.writeString(
|
|
||||||
15,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
f = message.getRequirereset();
|
|
||||||
if (f) {
|
|
||||||
writer.writeBool(
|
|
||||||
16,
|
|
||||||
f
|
|
||||||
);
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional int64 id = 1;
|
|
||||||
* @return {number}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getId = function() {
|
|
||||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {number} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setId = function(value) {
|
|
||||||
jspb.Message.setProto3IntField(this, 1, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string name = 2;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getName = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setName = function(value) {
|
|
||||||
jspb.Message.setProto3StringField(this, 2, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string username = 3;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getUsername = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setUsername = function(value) {
|
|
||||||
jspb.Message.setProto3StringField(this, 3, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string email = 4;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getEmail = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setEmail = function(value) {
|
|
||||||
jspb.Message.setProto3StringField(this, 4, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string password = 5;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getPassword = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setPassword = function(value) {
|
|
||||||
jspb.Message.setProto3StringField(this, 5, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional bool block = 6;
|
|
||||||
* @return {boolean}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getBlock = function() {
|
|
||||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {boolean} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setBlock = function(value) {
|
|
||||||
jspb.Message.setProto3BooleanField(this, 6, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional bool sendEmail = 7;
|
|
||||||
* @return {boolean}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getSendemail = function() {
|
|
||||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {boolean} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setSendemail = function(value) {
|
|
||||||
jspb.Message.setProto3BooleanField(this, 7, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional google.protobuf.Timestamp registerDate = 8;
|
|
||||||
* @return {?proto.google.protobuf.Timestamp}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getRegisterdate = function() {
|
|
||||||
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
||||||
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setRegisterdate = function(value) {
|
|
||||||
jspb.Message.setWrapperField(this, 8, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Clears the message field making it undefined.
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.clearRegisterdate = function() {
|
|
||||||
this.setRegisterdate(undefined);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns whether this field is set.
|
|
||||||
* @return {boolean}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.hasRegisterdate = function() {
|
|
||||||
return jspb.Message.getField(this, 8) != null;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional google.protobuf.Timestamp lastvisitDate = 9;
|
|
||||||
* @return {?proto.google.protobuf.Timestamp}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getLastvisitdate = function() {
|
|
||||||
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
||||||
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setLastvisitdate = function(value) {
|
|
||||||
jspb.Message.setWrapperField(this, 9, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Clears the message field making it undefined.
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.clearLastvisitdate = function() {
|
|
||||||
this.setLastvisitdate(undefined);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns whether this field is set.
|
|
||||||
* @return {boolean}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.hasLastvisitdate = function() {
|
|
||||||
return jspb.Message.getField(this, 9) != null;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string activation = 10;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getActivation = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setActivation = function(value) {
|
|
||||||
jspb.Message.setProto3StringField(this, 10, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string params = 11;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getParams = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setParams = function(value) {
|
|
||||||
jspb.Message.setProto3StringField(this, 11, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional google.protobuf.Timestamp lastResetTime = 12;
|
|
||||||
* @return {?proto.google.protobuf.Timestamp}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getLastresettime = function() {
|
|
||||||
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
||||||
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 12));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {?proto.google.protobuf.Timestamp|undefined} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setLastresettime = function(value) {
|
|
||||||
jspb.Message.setWrapperField(this, 12, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Clears the message field making it undefined.
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.clearLastresettime = function() {
|
|
||||||
this.setLastresettime(undefined);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Returns whether this field is set.
|
|
||||||
* @return {boolean}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.hasLastresettime = function() {
|
|
||||||
return jspb.Message.getField(this, 12) != null;
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional int64 resetCount = 13;
|
|
||||||
* @return {number}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getResetcount = function() {
|
|
||||||
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {number} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setResetcount = function(value) {
|
|
||||||
jspb.Message.setProto3IntField(this, 13, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string otpKey = 14;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getOtpkey = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setOtpkey = function(value) {
|
|
||||||
jspb.Message.setProto3StringField(this, 14, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional string otep = 15;
|
|
||||||
* @return {string}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getOtep = function() {
|
|
||||||
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {string} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setOtep = function(value) {
|
|
||||||
jspb.Message.setProto3StringField(this, 15, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* optional bool requireReset = 16;
|
|
||||||
* @return {boolean}
|
|
||||||
*/
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.getRequirereset = function() {
|
|
||||||
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false));
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
/** @param {boolean} value */
|
|
||||||
proto.loafle.cms.proto.user.User.prototype.setRequirereset = function(value) {
|
|
||||||
jspb.Message.setProto3BooleanField(this, 16, value);
|
|
||||||
};
|
|
||||||
|
|
||||||
|
|
||||||
goog.object.extend(exports, proto.loafle.cms.proto.user);
|
|
21
third_party/protoc-gen-java.cmd
vendored
21
third_party/protoc-gen-java.cmd
vendored
|
@ -1,21 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
SET "PROTO_DIR=.\api\proto\v1"
|
|
||||||
SET "PKG_ROOT_DIR=.\pkg\api\v1\java"
|
|
||||||
SET /A "PKG_DIR=%PKG_ROOT_DIR%\src\main\java"
|
|
||||||
|
|
||||||
rmdir %PKG_ROOT_DIR% /s
|
|
||||||
mkdir -p ${PKG_DIR}
|
|
||||||
|
|
||||||
protoc ^
|
|
||||||
--proto_path=${PROTO_DIR} ^
|
|
||||||
--proto_path=third_party ^
|
|
||||||
--java_out=${PKG_DIR} ^
|
|
||||||
--grpc-java_out=${PKG_DIR} ^
|
|
||||||
-I ${PROTO_DIR} ${PROTO_DIR}\**\*.proto
|
|
||||||
|
|
||||||
copy .\third_party\_pom.xml ${PKG_ROOT_DIR}\pom.xml
|
|
||||||
|
|
||||||
# https://programmer.group/use-of-grpc-in-rpc.html
|
|
20
third_party/protoc-gen-web.cmd
vendored
20
third_party/protoc-gen-web.cmd
vendored
|
@ -1,20 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
# https://help.sonatype.com/repomanager3/formats/npm-registry
|
|
||||||
|
|
||||||
set -eu
|
|
||||||
|
|
||||||
PROTO_DIR="./api/proto/v1"
|
|
||||||
PKG_DIR="./pkg/api/v1/web"
|
|
||||||
|
|
||||||
rm -fR ${PKG_DIR}
|
|
||||||
mkdir -p ${PKG_DIR}
|
|
||||||
|
|
||||||
protoc \
|
|
||||||
--proto_path=${PROTO_DIR} \
|
|
||||||
--proto_path=third_party \
|
|
||||||
--js_out=import_style=commonjs:${PKG_DIR} \
|
|
||||||
--grpc-web_out=import_style=commonjs+dts,mode=grpcweb:${PKG_DIR} \
|
|
||||||
-I ${PROTO_DIR} ${PROTO_DIR}/**/*.proto
|
|
||||||
|
|
||||||
cp ./third_party/_package.json ${PKG_DIR}/package.json
|
|
Loading…
Reference in New Issue
Block a user