This commit is contained in:
redkale
2024-05-30 20:35:40 +08:00
parent 30236f9bbc
commit 8cab0c78df
5 changed files with 509 additions and 511 deletions

View File

@@ -1,212 +1,211 @@
<?xml version="1.0" encoding="UTF-8"?> <?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"> <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> <modelVersion>4.0.0</modelVersion>
<groupId>org.redkale</groupId> <groupId>org.redkale</groupId>
<artifactId>redkale</artifactId> <artifactId>redkale</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>RedkaleProject</name> <name>RedkaleProject</name>
<url>http://redkale.org</url> <url>http://redkale.org</url>
<description>redkale -- java framework</description> <description>redkale -- java framework</description>
<version>2.7.0-SNAPSHOT</version> <version>2.7.0-SNAPSHOT</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source> <maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target> <maven.compiler.target>11</maven.compiler.target>
<junit.version>5.7.0</junit.version> <junit.version>5.7.0</junit.version>
<maven-plugin.version>3.2.0</maven-plugin.version> <maven-plugin.version>3.2.0</maven-plugin.version>
<maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version> <maven-gpg-plugin.version>3.0.1</maven-gpg-plugin.version>
<maven-compiler-plugin.version>3.9.0</maven-compiler-plugin.version> <maven-compiler-plugin.version>3.9.0</maven-compiler-plugin.version>
<maven-surefire-plugin.version>3.0.0</maven-surefire-plugin.version> <maven-surefire-plugin.version>3.0.0</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.0.0</maven-failsafe-plugin.version> <maven-failsafe-plugin.version>3.0.0</maven-failsafe-plugin.version>
<spotless-maven-plugin.version>2.43.0</spotless-maven-plugin.version> <spotless-maven-plugin.version>2.43.0</spotless-maven-plugin.version>
<palantir-java-format.version>2.46.0</palantir-java-format.version> <palantir-java-format.version>2.46.0</palantir-java-format.version>
</properties> </properties>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId> <artifactId>junit-jupiter</artifactId>
<version>${junit.version}</version> <version>${junit.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<licenses> <licenses>
<license> <license>
<name>Apache 2</name> <name>Apache 2</name>
<url>https://www.apache.org/licenses/</url> <url>https://www.apache.org/licenses/</url>
<distribution>repo</distribution> <distribution>repo</distribution>
<comments>Apache License</comments> <comments>Apache License</comments>
</license> </license>
</licenses> </licenses>
<developers> <developers>
<developer> <developer>
<id>Redkale</id> <id>Redkale</id>
<name>redkale</name> <name>redkale</name>
<email>redkale@qq.com</email> <email>redkale@qq.com</email>
<url>https://redkale.org</url> <url>https://redkale.org</url>
<roles> <roles>
<role>Project Manager</role> <role>Project Manager</role>
<role>Architect</role> <role>Architect</role>
</roles> </roles>
<organization>redkale</organization> <organization>redkale</organization>
<organizationUrl>https://redkale.org</organizationUrl> <organizationUrl>https://redkale.org</organizationUrl>
<properties> <properties>
<dept>No</dept> <dept>No</dept>
</properties> </properties>
<timezone>8</timezone> <timezone>8</timezone>
</developer> </developer>
</developers> </developers>
<distributionManagement> <distributionManagement>
<snapshotRepository> <snapshotRepository>
<id>ossrh</id> <id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url> <url>https://oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository> </snapshotRepository>
<repository> <repository>
<id>ossrh</id> <id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository> </repository>
</distributionManagement> </distributionManagement>
<scm> <scm>
<url>https://github.com/redkale/redkale</url> <url>https://github.com/redkale/redkale</url>
<connection>scm:git:git@github.com/redkale/redkale.git</connection> <connection>scm:git:git@github.com/redkale/redkale.git</connection>
<developerConnection>scm:git:git@github.com:redkale/redkale.git</developerConnection> <developerConnection>scm:git:git@github.com:redkale/redkale.git</developerConnection>
</scm> </scm>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version> <version>${maven-compiler-plugin.version}</version>
<configuration> <configuration>
<compilerArgument>-parameters</compilerArgument> <compilerArgument>-parameters</compilerArgument>
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
<compilerArguments> <compilerArguments>
<verbose /> <verbose />
</compilerArguments> </compilerArguments>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>${maven-plugin.version}</version> <version>${maven-plugin.version}</version>
<configuration> <configuration>
<archive> <archive>
<addMavenDescriptor>false</addMavenDescriptor> <addMavenDescriptor>false</addMavenDescriptor>
<manifest> <manifest>
<mainClass>org.redkale.boot.Application</mainClass> <mainClass>org.redkale.boot.Application</mainClass>
</manifest> </manifest>
</archive> </archive>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId> <artifactId>maven-gpg-plugin</artifactId>
<version>${maven-gpg-plugin.version}</version> <version>${maven-gpg-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<id>sign-artifacts</id> <id>sign-artifacts</id>
<phase>verify</phase> <phase>verify</phase>
<goals> <goals>
<goal>sign</goal> <goal>sign</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId> <artifactId>maven-source-plugin</artifactId>
<version>${maven-plugin.version}</version> <version>${maven-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId> <artifactId>maven-javadoc-plugin</artifactId>
<version>${maven-plugin.version}</version> <version>${maven-plugin.version}</version>
<executions> <executions>
<execution> <execution>
<goals> <goals>
<goal>jar</goal> <goal>jar</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId> <artifactId>maven-assembly-plugin</artifactId>
<version>${maven-plugin.version}</version> <version>${maven-plugin.version}</version>
<configuration> <configuration>
<appendAssemblyId>false</appendAssemblyId> <appendAssemblyId>false</appendAssemblyId>
<descriptors> <descriptors>
<descriptor>assembly.xml</descriptor> <descriptor>assembly.xml</descriptor>
</descriptors> </descriptors>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
<id>redkale</id> <id>redkale</id>
<phase>package</phase> <phase>package</phase>
<goals> <goals>
<goal>single</goal> <goal>single</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>com.diffplug.spotless</groupId> <groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId> <artifactId>spotless-maven-plugin</artifactId>
<version>${spotless-maven-plugin.version}</version> <version>${spotless-maven-plugin.version}</version>
<configuration> <configuration>
<lineEndings>WINDOWS</lineEndings> <formats>
<formats> <format>
<format> <includes>
<includes> <include>src/**</include>
<include>src/**</include> </includes>
</includes> <trimTrailingWhitespace/>
<trimTrailingWhitespace/> <endWithNewline/>
<endWithNewline/> <indent>
<indent> <tabs>true</tabs>
<tabs>true</tabs> <spacesPerTab>4</spacesPerTab>
<spacesPerTab>4</spacesPerTab> </indent>
</indent> </format>
</format> </formats>
</formats> <java>
<java> <palantirJavaFormat>
<palantirJavaFormat> <version>${palantir-java-format.version}</version>
<version>${palantir-java-format.version}</version> <style>PALANTIR</style>
<style>PALANTIR</style> <formatJavadoc>true</formatJavadoc>
<formatJavadoc>true</formatJavadoc> </palantirJavaFormat>
</palantirJavaFormat> </java>
</java> </configuration>
</configuration> <executions>
<executions> <execution>
<execution> <goals>
<goals> <goal>check</goal>
<goal>check</goal> </goals>
</goals> <phase>compile</phase>
<phase>compile</phase> </execution>
</execution> </executions>
</executions> </plugin>
</plugin>
</plugins>
</plugins> </build>
</build>
</project> </project>

365
pom.xml
View File

@@ -1,183 +1,182 @@
<?xml version="1.0" encoding="UTF-8"?> <?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" <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"> 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> <modelVersion>4.0.0</modelVersion>
<groupId>org.redkale</groupId> <groupId>org.redkale</groupId>
<artifactId>redkale</artifactId> <artifactId>redkale</artifactId>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>RedkaleProject</name> <name>RedkaleProject</name>
<url>https://redkale.org</url> <url>https://redkale.org</url>
<description>redkale -- java framework</description> <description>redkale -- java framework</description>
<version>2.8.0-SNAPSHOT</version> <version>2.8.0-SNAPSHOT</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>11</maven.compiler.source> <maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target> <maven.compiler.target>11</maven.compiler.target>
<junit.version>5.9.0</junit.version> <junit.version>5.9.0</junit.version>
<maven-jar-plugin.version>3.3.0</maven-jar-plugin.version> <maven-jar-plugin.version>3.3.0</maven-jar-plugin.version>
<maven-compiler-plugin.version>3.9.0</maven-compiler-plugin.version> <maven-compiler-plugin.version>3.9.0</maven-compiler-plugin.version>
<maven-surefire-plugin.version>3.0.0</maven-surefire-plugin.version> <maven-surefire-plugin.version>3.0.0</maven-surefire-plugin.version>
<maven-failsafe-plugin.version>3.0.0</maven-failsafe-plugin.version> <maven-failsafe-plugin.version>3.0.0</maven-failsafe-plugin.version>
<spotless-maven-plugin.version>2.43.0</spotless-maven-plugin.version> <spotless-maven-plugin.version>2.43.0</spotless-maven-plugin.version>
<palantir-java-format.version>2.46.0</palantir-java-format.version> <palantir-java-format.version>2.46.0</palantir-java-format.version>
</properties> </properties>
<licenses> <licenses>
<license> <license>
<name>Apache 2</name> <name>Apache 2</name>
<url>https://www.apache.org/licenses/</url> <url>https://www.apache.org/licenses/</url>
<distribution>repo</distribution> <distribution>repo</distribution>
<comments>Apache License</comments> <comments>Apache License</comments>
</license> </license>
</licenses> </licenses>
<dependencies> <dependencies>
<dependency> <dependency>
<groupId>org.junit.jupiter</groupId> <groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter</artifactId> <artifactId>junit-jupiter</artifactId>
<version>${junit.version}</version> <version>${junit.version}</version>
<scope>test</scope> <scope>test</scope>
</dependency> </dependency>
</dependencies> </dependencies>
<repositories> <repositories>
<repository> <repository>
<id>central</id> <id>central</id>
<name>Central Repository</name> <name>Central Repository</name>
<url>https://repo.maven.apache.org/maven2</url> <url>https://repo.maven.apache.org/maven2</url>
</repository> </repository>
<repository> <repository>
<id>sonatype-nexus-snapshots</id> <id>sonatype-nexus-snapshots</id>
<name>Sonatype Nexus Snapshots</name> <name>Sonatype Nexus Snapshots</name>
<url>https://oss.sonatype.org/content/repositories/snapshots</url> <url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository> </repository>
</repositories> </repositories>
<developers> <developers>
<developer> <developer>
<id>Redkale</id> <id>Redkale</id>
<name>redkale</name> <name>redkale</name>
<email>redkale@qq.com</email> <email>redkale@qq.com</email>
<url>https://redkale.org</url> <url>https://redkale.org</url>
<roles> <roles>
<role>Project Manager</role> <role>Project Manager</role>
<role>Architect</role> <role>Architect</role>
</roles> </roles>
<organization>redkale</organization> <organization>redkale</organization>
<organizationUrl>https://redkale.org</organizationUrl> <organizationUrl>https://redkale.org</organizationUrl>
<properties> <properties>
<dept>No</dept> <dept>No</dept>
</properties> </properties>
<timezone>8</timezone> <timezone>8</timezone>
</developer> </developer>
</developers> </developers>
<scm> <scm>
<url>https://github.com/redkale/redkale</url> <url>https://github.com/redkale/redkale</url>
<connection>scm:git:git@github.com/redkale/redkale.git</connection> <connection>scm:git:git@github.com/redkale/redkale.git</connection>
<developerConnection>scm:git:git@github.com:redkale/redkale.git</developerConnection> <developerConnection>scm:git:git@github.com:redkale/redkale.git</developerConnection>
</scm> </scm>
<build> <build>
<plugins> <plugins>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>${maven-compiler-plugin.version}</version> <version>${maven-compiler-plugin.version}</version>
<configuration> <configuration>
<encoding>UTF-8</encoding> <encoding>UTF-8</encoding>
<compilerArgs> <compilerArgs>
<arg>-parameters</arg> <arg>-parameters</arg>
</compilerArgs> </compilerArgs>
</configuration> </configuration>
</plugin> </plugin>
<!-- 需要注释掉, 否则会生成native-image配置信息 <!-- 需要注释掉, 否则会生成native-image配置信息
<plugin> <plugin>
<groupId>org.redkale.maven.plugins</groupId> <groupId>org.redkale.maven.plugins</groupId>
<artifactId>redkale-maven-plugin</artifactId> <artifactId>redkale-maven-plugin</artifactId>
<version>1.1.0</version> <version>1.1.0</version>
<executions> <executions>
<execution> <execution>
<id>redkale-compile</id> <id>redkale-compile</id>
<phase>process-classes</phase> <phase>process-classes</phase>
<goals> <goals>
<goal>compile</goal> <goal>compile</goal>
</goals> </goals>
</execution> </execution>
</executions> </executions>
</plugin> </plugin>
--> -->
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId> <artifactId>maven-jar-plugin</artifactId>
<version>${maven-jar-plugin.version}</version> <version>${maven-jar-plugin.version}</version>
<configuration> <configuration>
<archive> <archive>
<addMavenDescriptor>false</addMavenDescriptor> <addMavenDescriptor>false</addMavenDescriptor>
<manifest> <manifest>
<mainClass>org.redkale.boot.Application</mainClass> <mainClass>org.redkale.boot.Application</mainClass>
</manifest> </manifest>
</archive> </archive>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId> <artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version> <version>${maven-surefire-plugin.version}</version>
<configuration> <configuration>
<forkMode>once</forkMode> <forkMode>once</forkMode>
<argLine>-Dfile.encoding=UTF-8</argLine> <argLine>-Dfile.encoding=UTF-8</argLine>
</configuration> </configuration>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId> <artifactId>maven-failsafe-plugin</artifactId>
<version>${maven-failsafe-plugin.version}</version> <version>${maven-failsafe-plugin.version}</version>
</plugin> </plugin>
<plugin> <plugin>
<groupId>com.diffplug.spotless</groupId> <groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId> <artifactId>spotless-maven-plugin</artifactId>
<version>${spotless-maven-plugin.version}</version> <version>${spotless-maven-plugin.version}</version>
<configuration> <configuration>
<lineEndings>WINDOWS</lineEndings> <formats>
<formats> <format>
<format> <includes>
<includes> <include>src/**/java/**/*.java</include>
<include>src/**/java/**/*.java</include> </includes>
</includes> <trimTrailingWhitespace/>
<trimTrailingWhitespace/> <endWithNewline/>
<endWithNewline/> <indent>
<indent> <spaces>true</spaces>
<spaces>true</spaces> <spacesPerTab>4</spacesPerTab>
<spacesPerTab>4</spacesPerTab> </indent>
</indent> </format>
</format> </formats>
</formats> <java>
<java> <palantirJavaFormat>
<palantirJavaFormat> <version>${palantir-java-format.version}</version>
<version>${palantir-java-format.version}</version> <style>PALANTIR</style>
<style>PALANTIR</style> <formatJavadoc>true</formatJavadoc>
<formatJavadoc>true</formatJavadoc> </palantirJavaFormat>
</palantirJavaFormat> </java>
</java> </configuration>
</configuration> <executions>
<executions> <execution>
<execution> <goals>
<goals> <goal>check</goal>
<goal>check</goal> </goals>
</goals> <phase>compile</phase>
<phase>compile</phase> </execution>
</execution> </executions>
</executions> </plugin>
</plugin> </plugins>
</plugins> </build>
</build>
</project>
</project>

View File

@@ -1,60 +1,60 @@
/* /*
*/ */
package org.redkale.cache.spi; package org.redkale.cache.spi;
import java.util.Objects; import java.util.Objects;
import org.redkale.util.MultiHashKey; import org.redkale.util.MultiHashKey;
/** /**
* 缓存key生成器 * 缓存key生成器
* *
* @see org.redkale.cache.Cached#key() * @see org.redkale.cache.Cached#key()
* *
* <p>详情见: https://redkale.org * <p>详情见: https://redkale.org
* *
* @author zhangjx * @author zhangjx
* @since 2.8.0 * @since 2.8.0
*/ */
public interface CacheKeyGenerator { public interface CacheKeyGenerator {
/** /**
* 根据service和方法名生成key * 根据service和方法名生成key
* *
* @param target Service对象 * @param target Service对象
* @param action CacheAction对象 * @param action CacheAction对象
* @param params 参数值 * @param params 参数值
* @return key值 * @return key值
*/ */
public String generate(Object target, CacheAction action, Object... params); public String generate(Object target, CacheAction action, Object... params);
/** /**
* 生成器的名字 * 生成器的名字
* *
* @see org.redkale.cache.Cached#key() * @see org.redkale.cache.Cached#key()
* *
* @return name * @return name
*/ */
public String name(); public String name();
/** /**
* 根据MultiHashKey生成一个CacheKeyGenerator * 根据MultiHashKey生成一个CacheKeyGenerator
* @param key MultiHashKey 不能为空 * @param key MultiHashKey 不能为空
* @return CacheKeyGenerator * @return CacheKeyGenerator
*/ */
public static CacheKeyGenerator create(MultiHashKey key) { public static CacheKeyGenerator create(MultiHashKey key) {
Objects.requireNonNull(key); Objects.requireNonNull(key);
return new CacheKeyGenerator() { return new CacheKeyGenerator() {
@Override @Override
public String generate(Object target, CacheAction action, Object... params) { public String generate(Object target, CacheAction action, Object... params) {
return key.keyFor(params); return key.keyFor(params);
} }
@Override @Override
public String name() { public String name() {
return ""; return "";
} }
}; };
} }
} }

View File

@@ -1,21 +1,21 @@
syntax = "proto3"; syntax = "proto3";
// 生成类的包名 // 生成类的包名
option java_package = "org.redkalex.test.protobuf"; option java_package = "org.redkalex.test.protobuf";
message PSimpleBean { message PSimpleBean {
message PSimpleEntry { message PSimpleEntry {
sint32 id = 1; sint32 id = 1;
string name = 2; string name = 2;
string email = 3; string email = 3;
} }
message PTwoEntry { message PTwoEntry {
sint32 status = 1; sint32 status = 1;
sint64 createtime = 2; sint64 createtime = 2;
} }
PSimpleEntry simple = 1; PSimpleEntry simple = 1;
PTwoEntry two = 2; PTwoEntry two = 2;
string strings = 3 ; string strings = 3 ;
} }

View File

@@ -1,36 +1,36 @@
syntax = "proto3"; syntax = "proto3";
// 生成类的包名 // 生成类的包名
option java_package = "org.redkalex.test.protobuf"; option java_package = "org.redkalex.test.protobuf";
message PTestBean { message PTestBean {
message PTestEntry { message PTestEntry {
repeated bool bools = 1; repeated bool bools = 1;
repeated bytes bytes = 2; repeated bytes bytes = 2;
repeated sint32 chars = 3; repeated sint32 chars = 3;
repeated sint32 shorts = 4; repeated sint32 shorts = 4;
} }
repeated bool bools = 1; repeated bool bools = 1;
repeated bytes bytes = 2; repeated bytes bytes = 2;
repeated sint32 chars = 3; repeated sint32 chars = 3;
repeated PTestEntry entrys = 4; repeated PTestEntry entrys = 4;
repeated sint32 ints = 5; repeated sint32 ints = 5;
repeated float floats = 6; repeated float floats = 6;
repeated sint64 longs = 7; repeated sint64 longs = 7;
repeated double doubles = 8; repeated double doubles = 8;
repeated string strings = 9; repeated string strings = 9;
sint32 id = 10; sint32 id = 10;
string name = 11; string name = 11;
string email = 12; string email = 12;
Kind kind = 13; Kind kind = 13;
map<string,sint32> map = 14; map<string,sint32> map = 14;
string end = 15; string end = 15;
enum Kind { enum Kind {
ONE =0; ONE =0;
TWO =1; TWO =1;
THREE =2; THREE =2;
} }
} }