From 409936a30bac4a841466af1747251b8d3db72b9c Mon Sep 17 00:00:00 2001 From: Bruno Borges Date: Fri, 29 Nov 2019 23:29:10 -0800 Subject: [PATCH 1/9] Add dapr repo as a submodule to generate protobuffers classes --- .gitmodules | 3 +++ dapr | 1 + 2 files changed, 4 insertions(+) create mode 100644 .gitmodules create mode 160000 dapr diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..e917142a3 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "dapr"] + path = dapr + url = https://github.com/dapr/dapr.git diff --git a/dapr b/dapr new file mode 160000 index 000000000..b0d582f1f --- /dev/null +++ b/dapr @@ -0,0 +1 @@ +Subproject commit b0d582f1f1cece9100f80acb93bfca9e82c16aea From 77919c86630cf53c89382eafb79f071c74c9a0f7 Mon Sep 17 00:00:00 2001 From: Bruno Borges Date: Sat, 30 Nov 2019 00:07:02 -0800 Subject: [PATCH 2/9] Make the project modular --- README.md | 10 +- client/pom.xml | 121 +++++ .../main/java/io/dapr/DaprClientGrpc.java | 2 +- .../main/java/io/dapr/DaprClientProtos.java | 384 ++-------------- .../src}/main/java/io/dapr/DaprGrpc.java | 0 .../src}/main/java/io/dapr/DaprProtos.java | 425 +++--------------- examples/pom.xml | 67 +-- pom.xml | 157 +++---- 8 files changed, 306 insertions(+), 860 deletions(-) create mode 100644 client/pom.xml rename {src => client/src}/main/java/io/dapr/DaprClientGrpc.java (99%) rename {src => client/src}/main/java/io/dapr/DaprClientProtos.java (95%) rename {src => client/src}/main/java/io/dapr/DaprGrpc.java (100%) rename {src => client/src}/main/java/io/dapr/DaprProtos.java (96%) diff --git a/README.md b/README.md index d7fa64022..0b66de67c 100644 --- a/README.md +++ b/README.md @@ -20,7 +20,7 @@ dapr run --protocol grpc --grpc-port 50001 -- mvn exec:java -Dexec.mainClass=io. ### Creating and publishing the artifacts to Nexus Repository From the root directory: -``` +```sh mvn package mvn deploy:deploy-file -DgeneratePom=false -DrepositoryId=nexus -Durl=http://localhost:8081/repository/maven-releases -DpomFile=pom.xml -Dfile=target/client-0.1.0-preview.jar ``` @@ -29,3 +29,11 @@ For more documentation reference : https://maven.apache.org/plugins/maven-deploy-plugin https://help.sonatype.com/repomanager3/user-interface/uploading-components + +### Releasing with Maven +To increase the version of all modules and pom files, run the following commands: + +```sh +mvn versions:set -DnewVersion="0.1.0-preview02" +mvn versions:commit +``` diff --git a/client/pom.xml b/client/pom.xml new file mode 100644 index 000000000..63472ee28 --- /dev/null +++ b/client/pom.xml @@ -0,0 +1,121 @@ + + 4.0.0 + + + io.dapr + client-parent + 0.1.0-preview02 + + + client + jar + 0.1.0-preview02 + dapr-client + gRPC client for Dapr. + + + generated-proto + ${project.parent.basedir}/dapr/pkg/proto + + + + + io.grpc + grpc-netty-shaded + runtime + + + io.grpc + grpc-protobuf + + + io.grpc + grpc-stub + + + javax.annotation + javax.annotation-api + provided + + + io.grpc + grpc-testing + test + + + com.google.protobuf + protobuf-java-util + ${protobuf.version} + + + junit + junit + test + + + org.mockito + mockito-core + test + + + + + + + com.github.os72 + protoc-jar-maven-plugin + 3.9.2 + + + generate-sources + + run + + + inputs + direct + true + + ${protobuf.input.directory}/dapr + ${protobuf.input.directory}/daprclient + + ${project.build.sourceDirectory} + io.grpc:protoc-gen-grpc-java:${grpc.version} + + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.2.0 + + + attach-sources + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.1 + + + attach-javadocs + + jar + + + + + + + diff --git a/src/main/java/io/dapr/DaprClientGrpc.java b/client/src/main/java/io/dapr/DaprClientGrpc.java similarity index 99% rename from src/main/java/io/dapr/DaprClientGrpc.java rename to client/src/main/java/io/dapr/DaprClientGrpc.java index 3d2adf465..5cea623c5 100644 --- a/src/main/java/io/dapr/DaprClientGrpc.java +++ b/client/src/main/java/io/dapr/DaprClientGrpc.java @@ -17,7 +17,7 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** *
- * User Code definitions
+ * User Code definitions by BRUNO
  * 
*/ @javax.annotation.Generated( diff --git a/src/main/java/io/dapr/DaprClientProtos.java b/client/src/main/java/io/dapr/DaprClientProtos.java similarity index 95% rename from src/main/java/io/dapr/DaprClientProtos.java rename to client/src/main/java/io/dapr/DaprClientProtos.java index 8c3712e92..c541e0ffc 100644 --- a/src/main/java/io/dapr/DaprClientProtos.java +++ b/client/src/main/java/io/dapr/DaprClientProtos.java @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: daprclient/daprclient.proto +// source: daprclient.proto package io.dapr; @@ -20,84 +20,70 @@ public final class DaprClientProtos { /** * string id = 1; - * @return The id. */ java.lang.String getId(); /** * string id = 1; - * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string source = 2; - * @return The source. */ java.lang.String getSource(); /** * string source = 2; - * @return The bytes for source. */ com.google.protobuf.ByteString getSourceBytes(); /** * string type = 3; - * @return The type. */ java.lang.String getType(); /** * string type = 3; - * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** * string specVersion = 4; - * @return The specVersion. */ java.lang.String getSpecVersion(); /** * string specVersion = 4; - * @return The bytes for specVersion. */ com.google.protobuf.ByteString getSpecVersionBytes(); /** * string dataContentType = 5; - * @return The dataContentType. */ java.lang.String getDataContentType(); /** * string dataContentType = 5; - * @return The bytes for dataContentType. */ com.google.protobuf.ByteString getDataContentTypeBytes(); /** * string topic = 6; - * @return The topic. */ java.lang.String getTopic(); /** * string topic = 6; - * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * .google.protobuf.Any data = 7; - * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 7; - * @return The data. */ com.google.protobuf.Any getData(); /** @@ -241,7 +227,6 @@ public final class DaprClientProtos { private volatile java.lang.Object id_; /** * string id = 1; - * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; @@ -257,7 +242,6 @@ public final class DaprClientProtos { } /** * string id = 1; - * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { @@ -277,7 +261,6 @@ public final class DaprClientProtos { private volatile java.lang.Object source_; /** * string source = 2; - * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; @@ -293,7 +276,6 @@ public final class DaprClientProtos { } /** * string source = 2; - * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { @@ -313,7 +295,6 @@ public final class DaprClientProtos { private volatile java.lang.Object type_; /** * string type = 3; - * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; @@ -329,7 +310,6 @@ public final class DaprClientProtos { } /** * string type = 3; - * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { @@ -349,7 +329,6 @@ public final class DaprClientProtos { private volatile java.lang.Object specVersion_; /** * string specVersion = 4; - * @return The specVersion. */ public java.lang.String getSpecVersion() { java.lang.Object ref = specVersion_; @@ -365,7 +344,6 @@ public final class DaprClientProtos { } /** * string specVersion = 4; - * @return The bytes for specVersion. */ public com.google.protobuf.ByteString getSpecVersionBytes() { @@ -385,7 +363,6 @@ public final class DaprClientProtos { private volatile java.lang.Object dataContentType_; /** * string dataContentType = 5; - * @return The dataContentType. */ public java.lang.String getDataContentType() { java.lang.Object ref = dataContentType_; @@ -401,7 +378,6 @@ public final class DaprClientProtos { } /** * string dataContentType = 5; - * @return The bytes for dataContentType. */ public com.google.protobuf.ByteString getDataContentTypeBytes() { @@ -421,7 +397,6 @@ public final class DaprClientProtos { private volatile java.lang.Object topic_; /** * string topic = 6; - * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -437,7 +412,6 @@ public final class DaprClientProtos { } /** * string topic = 6; - * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { @@ -457,14 +431,12 @@ public final class DaprClientProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 7; - * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 7; - * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -896,7 +868,6 @@ public final class DaprClientProtos { private java.lang.Object id_ = ""; /** * string id = 1; - * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; @@ -912,7 +883,6 @@ public final class DaprClientProtos { } /** * string id = 1; - * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { @@ -929,8 +899,6 @@ public final class DaprClientProtos { } /** * string id = 1; - * @param value The id to set. - * @return This builder for chaining. */ public Builder setId( java.lang.String value) { @@ -944,7 +912,6 @@ public final class DaprClientProtos { } /** * string id = 1; - * @return This builder for chaining. */ public Builder clearId() { @@ -954,8 +921,6 @@ public final class DaprClientProtos { } /** * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { @@ -972,7 +937,6 @@ public final class DaprClientProtos { private java.lang.Object source_ = ""; /** * string source = 2; - * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; @@ -988,7 +952,6 @@ public final class DaprClientProtos { } /** * string source = 2; - * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { @@ -1005,8 +968,6 @@ public final class DaprClientProtos { } /** * string source = 2; - * @param value The source to set. - * @return This builder for chaining. */ public Builder setSource( java.lang.String value) { @@ -1020,7 +981,6 @@ public final class DaprClientProtos { } /** * string source = 2; - * @return This builder for chaining. */ public Builder clearSource() { @@ -1030,8 +990,6 @@ public final class DaprClientProtos { } /** * string source = 2; - * @param value The bytes for source to set. - * @return This builder for chaining. */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { @@ -1048,7 +1006,6 @@ public final class DaprClientProtos { private java.lang.Object type_ = ""; /** * string type = 3; - * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; @@ -1064,7 +1021,6 @@ public final class DaprClientProtos { } /** * string type = 3; - * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { @@ -1081,8 +1037,6 @@ public final class DaprClientProtos { } /** * string type = 3; - * @param value The type to set. - * @return This builder for chaining. */ public Builder setType( java.lang.String value) { @@ -1096,7 +1050,6 @@ public final class DaprClientProtos { } /** * string type = 3; - * @return This builder for chaining. */ public Builder clearType() { @@ -1106,8 +1059,6 @@ public final class DaprClientProtos { } /** * string type = 3; - * @param value The bytes for type to set. - * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { @@ -1124,7 +1075,6 @@ public final class DaprClientProtos { private java.lang.Object specVersion_ = ""; /** * string specVersion = 4; - * @return The specVersion. */ public java.lang.String getSpecVersion() { java.lang.Object ref = specVersion_; @@ -1140,7 +1090,6 @@ public final class DaprClientProtos { } /** * string specVersion = 4; - * @return The bytes for specVersion. */ public com.google.protobuf.ByteString getSpecVersionBytes() { @@ -1157,8 +1106,6 @@ public final class DaprClientProtos { } /** * string specVersion = 4; - * @param value The specVersion to set. - * @return This builder for chaining. */ public Builder setSpecVersion( java.lang.String value) { @@ -1172,7 +1119,6 @@ public final class DaprClientProtos { } /** * string specVersion = 4; - * @return This builder for chaining. */ public Builder clearSpecVersion() { @@ -1182,8 +1128,6 @@ public final class DaprClientProtos { } /** * string specVersion = 4; - * @param value The bytes for specVersion to set. - * @return This builder for chaining. */ public Builder setSpecVersionBytes( com.google.protobuf.ByteString value) { @@ -1200,7 +1144,6 @@ public final class DaprClientProtos { private java.lang.Object dataContentType_ = ""; /** * string dataContentType = 5; - * @return The dataContentType. */ public java.lang.String getDataContentType() { java.lang.Object ref = dataContentType_; @@ -1216,7 +1159,6 @@ public final class DaprClientProtos { } /** * string dataContentType = 5; - * @return The bytes for dataContentType. */ public com.google.protobuf.ByteString getDataContentTypeBytes() { @@ -1233,8 +1175,6 @@ public final class DaprClientProtos { } /** * string dataContentType = 5; - * @param value The dataContentType to set. - * @return This builder for chaining. */ public Builder setDataContentType( java.lang.String value) { @@ -1248,7 +1188,6 @@ public final class DaprClientProtos { } /** * string dataContentType = 5; - * @return This builder for chaining. */ public Builder clearDataContentType() { @@ -1258,8 +1197,6 @@ public final class DaprClientProtos { } /** * string dataContentType = 5; - * @param value The bytes for dataContentType to set. - * @return This builder for chaining. */ public Builder setDataContentTypeBytes( com.google.protobuf.ByteString value) { @@ -1276,7 +1213,6 @@ public final class DaprClientProtos { private java.lang.Object topic_ = ""; /** * string topic = 6; - * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -1292,7 +1228,6 @@ public final class DaprClientProtos { } /** * string topic = 6; - * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { @@ -1309,8 +1244,6 @@ public final class DaprClientProtos { } /** * string topic = 6; - * @param value The topic to set. - * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { @@ -1324,7 +1257,6 @@ public final class DaprClientProtos { } /** * string topic = 6; - * @return This builder for chaining. */ public Builder clearTopic() { @@ -1334,8 +1266,6 @@ public final class DaprClientProtos { } /** * string topic = 6; - * @param value The bytes for topic to set. - * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { @@ -1354,14 +1284,12 @@ public final class DaprClientProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 7; - * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 7; - * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -1526,24 +1454,20 @@ public final class DaprClientProtos { /** * string name = 1; - * @return The name. */ java.lang.String getName(); /** * string name = 1; - * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 2; - * @return The data. */ com.google.protobuf.Any getData(); /** @@ -1712,7 +1636,6 @@ public final class DaprClientProtos { private volatile java.lang.Object name_; /** * string name = 1; - * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1728,7 +1651,6 @@ public final class DaprClientProtos { } /** * string name = 1; - * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -1748,14 +1670,12 @@ public final class DaprClientProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 2; - * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -2229,7 +2149,6 @@ public final class DaprClientProtos { private java.lang.Object name_ = ""; /** * string name = 1; - * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -2245,7 +2164,6 @@ public final class DaprClientProtos { } /** * string name = 1; - * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -2262,8 +2180,6 @@ public final class DaprClientProtos { } /** * string name = 1; - * @param value The name to set. - * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -2277,7 +2193,6 @@ public final class DaprClientProtos { } /** * string name = 1; - * @return This builder for chaining. */ public Builder clearName() { @@ -2287,8 +2202,6 @@ public final class DaprClientProtos { } /** * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -2307,14 +2220,12 @@ public final class DaprClientProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 2; - * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -2602,12 +2513,10 @@ public final class DaprClientProtos { /** * .google.protobuf.Any data = 1; - * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 1; - * @return The data. */ com.google.protobuf.Any getData(); /** @@ -2617,25 +2526,19 @@ public final class DaprClientProtos { /** * repeated string to = 2; - * @return A list containing the to. */ java.util.List getToList(); /** * repeated string to = 2; - * @return The count of to. */ int getToCount(); /** * repeated string to = 2; - * @param index The index of the element to return. - * @return The to at the given index. */ java.lang.String getTo(int index); /** * repeated string to = 2; - * @param index The index of the value to return. - * @return The bytes of the to at the given index. */ com.google.protobuf.ByteString getToBytes(int index); @@ -2666,12 +2569,10 @@ public final class DaprClientProtos { /** * string concurrency = 4; - * @return The concurrency. */ java.lang.String getConcurrency(); /** * string concurrency = 4; - * @return The bytes for concurrency. */ com.google.protobuf.ByteString getConcurrencyBytes(); @@ -2804,14 +2705,12 @@ public final class DaprClientProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 1; - * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 1; - * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -2827,7 +2726,6 @@ public final class DaprClientProtos { private com.google.protobuf.LazyStringList to_; /** * repeated string to = 2; - * @return A list containing the to. */ public com.google.protobuf.ProtocolStringList getToList() { @@ -2835,23 +2733,18 @@ public final class DaprClientProtos { } /** * repeated string to = 2; - * @return The count of to. */ public int getToCount() { return to_.size(); } /** * repeated string to = 2; - * @param index The index of the element to return. - * @return The to at the given index. */ public java.lang.String getTo(int index) { return to_.get(index); } /** * repeated string to = 2; - * @param index The index of the value to return. - * @return The bytes of the to at the given index. */ public com.google.protobuf.ByteString getToBytes(int index) { @@ -2897,7 +2790,6 @@ public final class DaprClientProtos { private volatile java.lang.Object concurrency_; /** * string concurrency = 4; - * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -2913,7 +2805,6 @@ public final class DaprClientProtos { } /** * string concurrency = 4; - * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -3357,14 +3248,12 @@ public final class DaprClientProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 1; - * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 1; - * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -3480,7 +3369,6 @@ public final class DaprClientProtos { } /** * repeated string to = 2; - * @return A list containing the to. */ public com.google.protobuf.ProtocolStringList getToList() { @@ -3488,23 +3376,18 @@ public final class DaprClientProtos { } /** * repeated string to = 2; - * @return The count of to. */ public int getToCount() { return to_.size(); } /** * repeated string to = 2; - * @param index The index of the element to return. - * @return The to at the given index. */ public java.lang.String getTo(int index) { return to_.get(index); } /** * repeated string to = 2; - * @param index The index of the value to return. - * @return The bytes of the to at the given index. */ public com.google.protobuf.ByteString getToBytes(int index) { @@ -3512,9 +3395,6 @@ public final class DaprClientProtos { } /** * repeated string to = 2; - * @param index The index to set the value at. - * @param value The to to set. - * @return This builder for chaining. */ public Builder setTo( int index, java.lang.String value) { @@ -3528,8 +3408,6 @@ public final class DaprClientProtos { } /** * repeated string to = 2; - * @param value The to to add. - * @return This builder for chaining. */ public Builder addTo( java.lang.String value) { @@ -3543,8 +3421,6 @@ public final class DaprClientProtos { } /** * repeated string to = 2; - * @param values The to to add. - * @return This builder for chaining. */ public Builder addAllTo( java.lang.Iterable values) { @@ -3556,7 +3432,6 @@ public final class DaprClientProtos { } /** * repeated string to = 2; - * @return This builder for chaining. */ public Builder clearTo() { to_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -3566,8 +3441,6 @@ public final class DaprClientProtos { } /** * repeated string to = 2; - * @param value The bytes of the to to add. - * @return This builder for chaining. */ public Builder addToBytes( com.google.protobuf.ByteString value) { @@ -3824,7 +3697,6 @@ public final class DaprClientProtos { private java.lang.Object concurrency_ = ""; /** * string concurrency = 4; - * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -3840,7 +3712,6 @@ public final class DaprClientProtos { } /** * string concurrency = 4; - * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -3857,8 +3728,6 @@ public final class DaprClientProtos { } /** * string concurrency = 4; - * @param value The concurrency to set. - * @return This builder for chaining. */ public Builder setConcurrency( java.lang.String value) { @@ -3872,7 +3741,6 @@ public final class DaprClientProtos { } /** * string concurrency = 4; - * @return This builder for chaining. */ public Builder clearConcurrency() { @@ -3882,8 +3750,6 @@ public final class DaprClientProtos { } /** * string concurrency = 4; - * @param value The bytes for concurrency to set. - * @return This builder for chaining. */ public Builder setConcurrencyBytes( com.google.protobuf.ByteString value) { @@ -3955,24 +3821,20 @@ public final class DaprClientProtos { /** * string method = 1; - * @return The method. */ java.lang.String getMethod(); /** * string method = 1; - * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 2; - * @return The data. */ com.google.protobuf.Any getData(); /** @@ -4141,7 +4003,6 @@ public final class DaprClientProtos { private volatile java.lang.Object method_; /** * string method = 1; - * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; @@ -4157,7 +4018,6 @@ public final class DaprClientProtos { } /** * string method = 1; - * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { @@ -4177,14 +4037,12 @@ public final class DaprClientProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 2; - * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -4658,7 +4516,6 @@ public final class DaprClientProtos { private java.lang.Object method_ = ""; /** * string method = 1; - * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; @@ -4674,7 +4531,6 @@ public final class DaprClientProtos { } /** * string method = 1; - * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { @@ -4691,8 +4547,6 @@ public final class DaprClientProtos { } /** * string method = 1; - * @param value The method to set. - * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { @@ -4706,7 +4560,6 @@ public final class DaprClientProtos { } /** * string method = 1; - * @return This builder for chaining. */ public Builder clearMethod() { @@ -4716,8 +4569,6 @@ public final class DaprClientProtos { } /** * string method = 1; - * @param value The bytes for method to set. - * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { @@ -4736,14 +4587,12 @@ public final class DaprClientProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 2; - * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -5031,25 +4880,19 @@ public final class DaprClientProtos { /** * repeated string topics = 1; - * @return A list containing the topics. */ java.util.List getTopicsList(); /** * repeated string topics = 1; - * @return The count of topics. */ int getTopicsCount(); /** * repeated string topics = 1; - * @param index The index of the element to return. - * @return The topics at the given index. */ java.lang.String getTopics(int index); /** * repeated string topics = 1; - * @param index The index of the value to return. - * @return The bytes of the topics at the given index. */ com.google.protobuf.ByteString getTopicsBytes(int index); @@ -5149,7 +4992,6 @@ public final class DaprClientProtos { private com.google.protobuf.LazyStringList topics_; /** * repeated string topics = 1; - * @return A list containing the topics. */ public com.google.protobuf.ProtocolStringList getTopicsList() { @@ -5157,23 +4999,18 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; - * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** * repeated string topics = 1; - * @param index The index of the element to return. - * @return The topics at the given index. */ public java.lang.String getTopics(int index) { return topics_.get(index); } /** * repeated string topics = 1; - * @param index The index of the value to return. - * @return The bytes of the topics at the given index. */ public com.google.protobuf.ByteString getTopicsBytes(int index) { @@ -5510,7 +5347,6 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; - * @return A list containing the topics. */ public com.google.protobuf.ProtocolStringList getTopicsList() { @@ -5518,23 +5354,18 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; - * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** * repeated string topics = 1; - * @param index The index of the element to return. - * @return The topics at the given index. */ public java.lang.String getTopics(int index) { return topics_.get(index); } /** * repeated string topics = 1; - * @param index The index of the value to return. - * @return The bytes of the topics at the given index. */ public com.google.protobuf.ByteString getTopicsBytes(int index) { @@ -5542,9 +5373,6 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; - * @param index The index to set the value at. - * @param value The topics to set. - * @return This builder for chaining. */ public Builder setTopics( int index, java.lang.String value) { @@ -5558,8 +5386,6 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; - * @param value The topics to add. - * @return This builder for chaining. */ public Builder addTopics( java.lang.String value) { @@ -5573,8 +5399,6 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; - * @param values The topics to add. - * @return This builder for chaining. */ public Builder addAllTopics( java.lang.Iterable values) { @@ -5586,7 +5410,6 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; - * @return This builder for chaining. */ public Builder clearTopics() { topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -5596,8 +5419,6 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; - * @param value The bytes of the topics to add. - * @return This builder for chaining. */ public Builder addTopicsBytes( com.google.protobuf.ByteString value) { @@ -5669,25 +5490,19 @@ public final class DaprClientProtos { /** * repeated string bindings = 1; - * @return A list containing the bindings. */ java.util.List getBindingsList(); /** * repeated string bindings = 1; - * @return The count of bindings. */ int getBindingsCount(); /** * repeated string bindings = 1; - * @param index The index of the element to return. - * @return The bindings at the given index. */ java.lang.String getBindings(int index); /** * repeated string bindings = 1; - * @param index The index of the value to return. - * @return The bytes of the bindings at the given index. */ com.google.protobuf.ByteString getBindingsBytes(int index); @@ -5787,7 +5602,6 @@ public final class DaprClientProtos { private com.google.protobuf.LazyStringList bindings_; /** * repeated string bindings = 1; - * @return A list containing the bindings. */ public com.google.protobuf.ProtocolStringList getBindingsList() { @@ -5795,23 +5609,18 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; - * @return The count of bindings. */ public int getBindingsCount() { return bindings_.size(); } /** * repeated string bindings = 1; - * @param index The index of the element to return. - * @return The bindings at the given index. */ public java.lang.String getBindings(int index) { return bindings_.get(index); } /** * repeated string bindings = 1; - * @param index The index of the value to return. - * @return The bytes of the bindings at the given index. */ public com.google.protobuf.ByteString getBindingsBytes(int index) { @@ -6148,7 +5957,6 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; - * @return A list containing the bindings. */ public com.google.protobuf.ProtocolStringList getBindingsList() { @@ -6156,23 +5964,18 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; - * @return The count of bindings. */ public int getBindingsCount() { return bindings_.size(); } /** * repeated string bindings = 1; - * @param index The index of the element to return. - * @return The bindings at the given index. */ public java.lang.String getBindings(int index) { return bindings_.get(index); } /** * repeated string bindings = 1; - * @param index The index of the value to return. - * @return The bytes of the bindings at the given index. */ public com.google.protobuf.ByteString getBindingsBytes(int index) { @@ -6180,9 +5983,6 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; - * @param index The index to set the value at. - * @param value The bindings to set. - * @return This builder for chaining. */ public Builder setBindings( int index, java.lang.String value) { @@ -6196,8 +5996,6 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; - * @param value The bindings to add. - * @return This builder for chaining. */ public Builder addBindings( java.lang.String value) { @@ -6211,8 +6009,6 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; - * @param values The bindings to add. - * @return This builder for chaining. */ public Builder addAllBindings( java.lang.Iterable values) { @@ -6224,7 +6020,6 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; - * @return This builder for chaining. */ public Builder clearBindings() { bindings_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -6234,8 +6029,6 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; - * @param value The bytes of the bindings to add. - * @return This builder for chaining. */ public Builder addBindingsBytes( com.google.protobuf.ByteString value) { @@ -6307,24 +6100,20 @@ public final class DaprClientProtos { /** * string key = 1; - * @return The key. */ java.lang.String getKey(); /** * string key = 1; - * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * .google.protobuf.Any value = 2; - * @return Whether the value field is set. */ boolean hasValue(); /** * .google.protobuf.Any value = 2; - * @return The value. */ com.google.protobuf.Any getValue(); /** @@ -6334,12 +6123,10 @@ public final class DaprClientProtos { /** * string etag = 3; - * @return The etag. */ java.lang.String getEtag(); /** * string etag = 3; - * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); @@ -6380,12 +6167,10 @@ public final class DaprClientProtos { /** * .daprclient.StateOptions options = 5; - * @return Whether the options field is set. */ boolean hasOptions(); /** * .daprclient.StateOptions options = 5; - * @return The options. */ io.dapr.DaprClientProtos.StateOptions getOptions(); /** @@ -6540,7 +6325,6 @@ public final class DaprClientProtos { private volatile java.lang.Object key_; /** * string key = 1; - * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -6556,7 +6340,6 @@ public final class DaprClientProtos { } /** * string key = 1; - * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -6576,14 +6359,12 @@ public final class DaprClientProtos { private com.google.protobuf.Any value_; /** * .google.protobuf.Any value = 2; - * @return Whether the value field is set. */ public boolean hasValue() { return value_ != null; } /** * .google.protobuf.Any value = 2; - * @return The value. */ public com.google.protobuf.Any getValue() { return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; @@ -6599,7 +6380,6 @@ public final class DaprClientProtos { private volatile java.lang.Object etag_; /** * string etag = 3; - * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -6615,7 +6395,6 @@ public final class DaprClientProtos { } /** * string etag = 3; - * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -6711,14 +6490,12 @@ public final class DaprClientProtos { private io.dapr.DaprClientProtos.StateOptions options_; /** * .daprclient.StateOptions options = 5; - * @return Whether the options field is set. */ public boolean hasOptions() { return options_ != null; } /** * .daprclient.StateOptions options = 5; - * @return The options. */ public io.dapr.DaprClientProtos.StateOptions getOptions() { return options_ == null ? io.dapr.DaprClientProtos.StateOptions.getDefaultInstance() : options_; @@ -7163,7 +6940,6 @@ public final class DaprClientProtos { private java.lang.Object key_ = ""; /** * string key = 1; - * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -7179,7 +6955,6 @@ public final class DaprClientProtos { } /** * string key = 1; - * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -7196,8 +6971,6 @@ public final class DaprClientProtos { } /** * string key = 1; - * @param value The key to set. - * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { @@ -7211,7 +6984,6 @@ public final class DaprClientProtos { } /** * string key = 1; - * @return This builder for chaining. */ public Builder clearKey() { @@ -7221,8 +6993,6 @@ public final class DaprClientProtos { } /** * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -7241,14 +7011,12 @@ public final class DaprClientProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_; /** * .google.protobuf.Any value = 2; - * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .google.protobuf.Any value = 2; - * @return The value. */ public com.google.protobuf.Any getValue() { if (valueBuilder_ == null) { @@ -7358,7 +7126,6 @@ public final class DaprClientProtos { private java.lang.Object etag_ = ""; /** * string etag = 3; - * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -7374,7 +7141,6 @@ public final class DaprClientProtos { } /** * string etag = 3; - * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -7391,8 +7157,6 @@ public final class DaprClientProtos { } /** * string etag = 3; - * @param value The etag to set. - * @return This builder for chaining. */ public Builder setEtag( java.lang.String value) { @@ -7406,7 +7170,6 @@ public final class DaprClientProtos { } /** * string etag = 3; - * @return This builder for chaining. */ public Builder clearEtag() { @@ -7416,8 +7179,6 @@ public final class DaprClientProtos { } /** * string etag = 3; - * @param value The bytes for etag to set. - * @return This builder for chaining. */ public Builder setEtagBytes( com.google.protobuf.ByteString value) { @@ -7559,14 +7320,12 @@ public final class DaprClientProtos { io.dapr.DaprClientProtos.StateOptions, io.dapr.DaprClientProtos.StateOptions.Builder, io.dapr.DaprClientProtos.StateOptionsOrBuilder> optionsBuilder_; /** * .daprclient.StateOptions options = 5; - * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * .daprclient.StateOptions options = 5; - * @return The options. */ public io.dapr.DaprClientProtos.StateOptions getOptions() { if (optionsBuilder_ == null) { @@ -7731,36 +7490,30 @@ public final class DaprClientProtos { /** * string concurrency = 1; - * @return The concurrency. */ java.lang.String getConcurrency(); /** * string concurrency = 1; - * @return The bytes for concurrency. */ com.google.protobuf.ByteString getConcurrencyBytes(); /** * string consistency = 2; - * @return The consistency. */ java.lang.String getConsistency(); /** * string consistency = 2; - * @return The bytes for consistency. */ com.google.protobuf.ByteString getConsistencyBytes(); /** * .daprclient.RetryPolicy retryPolicy = 3; - * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); /** * .daprclient.RetryPolicy retryPolicy = 3; - * @return The retryPolicy. */ io.dapr.DaprClientProtos.RetryPolicy getRetryPolicy(); /** @@ -7876,7 +7629,6 @@ public final class DaprClientProtos { private volatile java.lang.Object concurrency_; /** * string concurrency = 1; - * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -7892,7 +7644,6 @@ public final class DaprClientProtos { } /** * string concurrency = 1; - * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -7912,7 +7663,6 @@ public final class DaprClientProtos { private volatile java.lang.Object consistency_; /** * string consistency = 2; - * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -7928,7 +7678,6 @@ public final class DaprClientProtos { } /** * string consistency = 2; - * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -7948,14 +7697,12 @@ public final class DaprClientProtos { private io.dapr.DaprClientProtos.RetryPolicy retryPolicy_; /** * .daprclient.RetryPolicy retryPolicy = 3; - * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicy_ != null; } /** * .daprclient.RetryPolicy retryPolicy = 3; - * @return The retryPolicy. */ public io.dapr.DaprClientProtos.RetryPolicy getRetryPolicy() { return retryPolicy_ == null ? io.dapr.DaprClientProtos.RetryPolicy.getDefaultInstance() : retryPolicy_; @@ -8319,7 +8066,6 @@ public final class DaprClientProtos { private java.lang.Object concurrency_ = ""; /** * string concurrency = 1; - * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -8335,7 +8081,6 @@ public final class DaprClientProtos { } /** * string concurrency = 1; - * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -8352,8 +8097,6 @@ public final class DaprClientProtos { } /** * string concurrency = 1; - * @param value The concurrency to set. - * @return This builder for chaining. */ public Builder setConcurrency( java.lang.String value) { @@ -8367,7 +8110,6 @@ public final class DaprClientProtos { } /** * string concurrency = 1; - * @return This builder for chaining. */ public Builder clearConcurrency() { @@ -8377,8 +8119,6 @@ public final class DaprClientProtos { } /** * string concurrency = 1; - * @param value The bytes for concurrency to set. - * @return This builder for chaining. */ public Builder setConcurrencyBytes( com.google.protobuf.ByteString value) { @@ -8395,7 +8135,6 @@ public final class DaprClientProtos { private java.lang.Object consistency_ = ""; /** * string consistency = 2; - * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -8411,7 +8150,6 @@ public final class DaprClientProtos { } /** * string consistency = 2; - * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -8428,8 +8166,6 @@ public final class DaprClientProtos { } /** * string consistency = 2; - * @param value The consistency to set. - * @return This builder for chaining. */ public Builder setConsistency( java.lang.String value) { @@ -8443,7 +8179,6 @@ public final class DaprClientProtos { } /** * string consistency = 2; - * @return This builder for chaining. */ public Builder clearConsistency() { @@ -8453,8 +8188,6 @@ public final class DaprClientProtos { } /** * string consistency = 2; - * @param value The bytes for consistency to set. - * @return This builder for chaining. */ public Builder setConsistencyBytes( com.google.protobuf.ByteString value) { @@ -8473,14 +8206,12 @@ public final class DaprClientProtos { io.dapr.DaprClientProtos.RetryPolicy, io.dapr.DaprClientProtos.RetryPolicy.Builder, io.dapr.DaprClientProtos.RetryPolicyOrBuilder> retryPolicyBuilder_; /** * .daprclient.RetryPolicy retryPolicy = 3; - * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicyBuilder_ != null || retryPolicy_ != null; } /** * .daprclient.RetryPolicy retryPolicy = 3; - * @return The retryPolicy. */ public io.dapr.DaprClientProtos.RetryPolicy getRetryPolicy() { if (retryPolicyBuilder_ == null) { @@ -8645,30 +8376,25 @@ public final class DaprClientProtos { /** * int32 threshold = 1; - * @return The threshold. */ int getThreshold(); /** * string pattern = 2; - * @return The pattern. */ java.lang.String getPattern(); /** * string pattern = 2; - * @return The bytes for pattern. */ com.google.protobuf.ByteString getPatternBytes(); /** * .google.protobuf.Duration interval = 3; - * @return Whether the interval field is set. */ boolean hasInterval(); /** * .google.protobuf.Duration interval = 3; - * @return The interval. */ com.google.protobuf.Duration getInterval(); /** @@ -8782,7 +8508,6 @@ public final class DaprClientProtos { private int threshold_; /** * int32 threshold = 1; - * @return The threshold. */ public int getThreshold() { return threshold_; @@ -8792,7 +8517,6 @@ public final class DaprClientProtos { private volatile java.lang.Object pattern_; /** * string pattern = 2; - * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -8808,7 +8532,6 @@ public final class DaprClientProtos { } /** * string pattern = 2; - * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -8828,14 +8551,12 @@ public final class DaprClientProtos { private com.google.protobuf.Duration interval_; /** * .google.protobuf.Duration interval = 3; - * @return Whether the interval field is set. */ public boolean hasInterval() { return interval_ != null; } /** * .google.protobuf.Duration interval = 3; - * @return The interval. */ public com.google.protobuf.Duration getInterval() { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; @@ -9199,15 +8920,12 @@ public final class DaprClientProtos { private int threshold_ ; /** * int32 threshold = 1; - * @return The threshold. */ public int getThreshold() { return threshold_; } /** * int32 threshold = 1; - * @param value The threshold to set. - * @return This builder for chaining. */ public Builder setThreshold(int value) { @@ -9217,7 +8935,6 @@ public final class DaprClientProtos { } /** * int32 threshold = 1; - * @return This builder for chaining. */ public Builder clearThreshold() { @@ -9229,7 +8946,6 @@ public final class DaprClientProtos { private java.lang.Object pattern_ = ""; /** * string pattern = 2; - * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -9245,7 +8961,6 @@ public final class DaprClientProtos { } /** * string pattern = 2; - * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -9262,8 +8977,6 @@ public final class DaprClientProtos { } /** * string pattern = 2; - * @param value The pattern to set. - * @return This builder for chaining. */ public Builder setPattern( java.lang.String value) { @@ -9277,7 +8990,6 @@ public final class DaprClientProtos { } /** * string pattern = 2; - * @return This builder for chaining. */ public Builder clearPattern() { @@ -9287,8 +8999,6 @@ public final class DaprClientProtos { } /** * string pattern = 2; - * @param value The bytes for pattern to set. - * @return This builder for chaining. */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { @@ -9307,14 +9017,12 @@ public final class DaprClientProtos { com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> intervalBuilder_; /** * .google.protobuf.Duration interval = 3; - * @return Whether the interval field is set. */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** * .google.protobuf.Duration interval = 3; - * @return The interval. */ public com.google.protobuf.Duration getInterval() { if (intervalBuilder_ == null) { @@ -9542,51 +9250,51 @@ public final class DaprClientProtos { descriptor; static { java.lang.String[] descriptorData = { - "\n\033daprclient/daprclient.proto\022\ndaprclien" + - "t\032\031google/protobuf/any.proto\032\033google/pro" + - "tobuf/empty.proto\032\036google/protobuf/durat" + - "ion.proto\"\237\001\n\022CloudEventEnvelope\022\n\n\002id\030\001" + - " \001(\t\022\016\n\006source\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\022\023\n\013sp" + - "ecVersion\030\004 \001(\t\022\027\n\017dataContentType\030\005 \001(\t" + - "\022\r\n\005topic\030\006 \001(\t\022\"\n\004data\030\007 \001(\0132\024.google.p" + - "rotobuf.Any\"\273\001\n\024BindingEventEnvelope\022\014\n\004" + - "name\030\001 \001(\t\022\"\n\004data\030\002 \001(\0132\024.google.protob" + - "uf.Any\022@\n\010metadata\030\003 \003(\0132..daprclient.Bi" + - "ndingEventEnvelope.MetadataEntry\032/\n\rMeta" + - "dataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + - "\001\"\200\001\n\027BindingResponseEnvelope\022\"\n\004data\030\001 " + - "\001(\0132\024.google.protobuf.Any\022\n\n\002to\030\002 \003(\t\022 \n" + - "\005state\030\003 \003(\0132\021.daprclient.State\022\023\n\013concu" + - "rrency\030\004 \001(\t\"\261\001\n\016InvokeEnvelope\022\016\n\006metho" + - "d\030\001 \001(\t\022\"\n\004data\030\002 \001(\0132\024.google.protobuf." + - "Any\022:\n\010metadata\030\003 \003(\0132(.daprclient.Invok" + - "eEnvelope.MetadataEntry\032/\n\rMetadataEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"/\n\035GetT" + - "opicSubscriptionsEnvelope\022\016\n\006topics\030\001 \003(" + - "\t\"4\n GetBindingsSubscriptionsEnvelope\022\020\n" + - "\010bindings\030\001 \003(\t\"\326\001\n\005State\022\013\n\003key\030\001 \001(\t\022#" + - "\n\005value\030\002 \001(\0132\024.google.protobuf.Any\022\014\n\004e" + - "tag\030\003 \001(\t\0221\n\010metadata\030\004 \003(\0132\037.daprclient" + - ".State.MetadataEntry\022)\n\007options\030\005 \001(\0132\030." + - "daprclient.StateOptions\032/\n\rMetadataEntry" + - "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\014Stat" + - "eOptions\022\023\n\013concurrency\030\001 \001(\t\022\023\n\013consist" + - "ency\030\002 \001(\t\022,\n\013retryPolicy\030\003 \001(\0132\027.daprcl" + - "ient.RetryPolicy\"^\n\013RetryPolicy\022\021\n\tthres" + - "hold\030\001 \001(\005\022\017\n\007pattern\030\002 \001(\t\022+\n\010interval\030" + - "\003 \001(\0132\031.google.protobuf.Duration2\263\003\n\nDap" + - "rClient\022>\n\010OnInvoke\022\032.daprclient.InvokeE" + - "nvelope\032\024.google.protobuf.Any\"\000\022\\\n\025GetTo" + - "picSubscriptions\022\026.google.protobuf.Empty" + - "\032).daprclient.GetTopicSubscriptionsEnvel" + - "ope\"\000\022b\n\030GetBindingsSubscriptions\022\026.goog" + - "le.protobuf.Empty\032,.daprclient.GetBindin" + - "gsSubscriptionsEnvelope\"\000\022Y\n\016OnBindingEv" + - "ent\022 .daprclient.BindingEventEnvelope\032#." + - "daprclient.BindingResponseEnvelope\"\000\022H\n\014" + - "OnTopicEvent\022\036.daprclient.CloudEventEnve" + - "lope\032\026.google.protobuf.Empty\"\000B\033\n\007io.dap" + - "rB\020DaprClientProtosb\006proto3" + "\n\020daprclient.proto\022\ndaprclient\032\031google/p" + + "rotobuf/any.proto\032\033google/protobuf/empty" + + ".proto\032\036google/protobuf/duration.proto\"\237" + + "\001\n\022CloudEventEnvelope\022\n\n\002id\030\001 \001(\t\022\016\n\006sou" + + "rce\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\022\023\n\013specVersion\030\004" + + " \001(\t\022\027\n\017dataContentType\030\005 \001(\t\022\r\n\005topic\030\006" + + " \001(\t\022\"\n\004data\030\007 \001(\0132\024.google.protobuf.Any" + + "\"\273\001\n\024BindingEventEnvelope\022\014\n\004name\030\001 \001(\t\022" + + "\"\n\004data\030\002 \001(\0132\024.google.protobuf.Any\022@\n\010m" + + "etadata\030\003 \003(\0132..daprclient.BindingEventE" + + "nvelope.MetadataEntry\032/\n\rMetadataEntry\022\013" + + "\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\200\001\n\027Bindi" + + "ngResponseEnvelope\022\"\n\004data\030\001 \001(\0132\024.googl" + + "e.protobuf.Any\022\n\n\002to\030\002 \003(\t\022 \n\005state\030\003 \003(" + + "\0132\021.daprclient.State\022\023\n\013concurrency\030\004 \001(" + + "\t\"\261\001\n\016InvokeEnvelope\022\016\n\006method\030\001 \001(\t\022\"\n\004" + + "data\030\002 \001(\0132\024.google.protobuf.Any\022:\n\010meta" + + "data\030\003 \003(\0132(.daprclient.InvokeEnvelope.M" + + "etadataEntry\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"/\n\035GetTopicSubscri" + + "ptionsEnvelope\022\016\n\006topics\030\001 \003(\t\"4\n GetBin" + + "dingsSubscriptionsEnvelope\022\020\n\010bindings\030\001" + + " \003(\t\"\326\001\n\005State\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001" + + "(\0132\024.google.protobuf.Any\022\014\n\004etag\030\003 \001(\t\0221" + + "\n\010metadata\030\004 \003(\0132\037.daprclient.State.Meta" + + "dataEntry\022)\n\007options\030\005 \001(\0132\030.daprclient." + + "StateOptions\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001" + + "(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\014StateOptions\022\023\n" + + "\013concurrency\030\001 \001(\t\022\023\n\013consistency\030\002 \001(\t\022" + + ",\n\013retryPolicy\030\003 \001(\0132\027.daprclient.RetryP" + + "olicy\"^\n\013RetryPolicy\022\021\n\tthreshold\030\001 \001(\005\022" + + "\017\n\007pattern\030\002 \001(\t\022+\n\010interval\030\003 \001(\0132\031.goo" + + "gle.protobuf.Duration2\263\003\n\nDaprClient\022>\n\010" + + "OnInvoke\022\032.daprclient.InvokeEnvelope\032\024.g" + + "oogle.protobuf.Any\"\000\022\\\n\025GetTopicSubscrip" + + "tions\022\026.google.protobuf.Empty\032).daprclie" + + "nt.GetTopicSubscriptionsEnvelope\"\000\022b\n\030Ge" + + "tBindingsSubscriptions\022\026.google.protobuf" + + ".Empty\032,.daprclient.GetBindingsSubscript" + + "ionsEnvelope\"\000\022Y\n\016OnBindingEvent\022 .daprc" + + "lient.BindingEventEnvelope\032#.daprclient." + + "BindingResponseEnvelope\"\000\022H\n\014OnTopicEven" + + "t\022\036.daprclient.CloudEventEnvelope\032\026.goog" + + "le.protobuf.Empty\"\000B\033\n\007io.daprB\020DaprClie" + + "ntProtosb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/java/io/dapr/DaprGrpc.java b/client/src/main/java/io/dapr/DaprGrpc.java similarity index 100% rename from src/main/java/io/dapr/DaprGrpc.java rename to client/src/main/java/io/dapr/DaprGrpc.java diff --git a/src/main/java/io/dapr/DaprProtos.java b/client/src/main/java/io/dapr/DaprProtos.java similarity index 96% rename from src/main/java/io/dapr/DaprProtos.java rename to client/src/main/java/io/dapr/DaprProtos.java index 640ee1afb..802d89314 100644 --- a/src/main/java/io/dapr/DaprProtos.java +++ b/client/src/main/java/io/dapr/DaprProtos.java @@ -1,5 +1,5 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: dapr/dapr.proto +// source: dapr.proto package io.dapr; @@ -20,12 +20,10 @@ public final class DaprProtos { /** * .google.protobuf.Any data = 1; - * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 1; - * @return The data. */ com.google.protobuf.Any getData(); /** @@ -187,14 +185,12 @@ public final class DaprProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 1; - * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 1; - * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -653,14 +649,12 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 1; - * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 1; - * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -948,36 +942,30 @@ public final class DaprProtos { /** * string key = 1; - * @return The key. */ java.lang.String getKey(); /** * string key = 1; - * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * string etag = 2; - * @return The etag. */ java.lang.String getEtag(); /** * string etag = 2; - * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); /** * .dapr.StateOptions options = 3; - * @return Whether the options field is set. */ boolean hasOptions(); /** * .dapr.StateOptions options = 3; - * @return The options. */ io.dapr.DaprProtos.StateOptions getOptions(); /** @@ -1093,7 +1081,6 @@ public final class DaprProtos { private volatile java.lang.Object key_; /** * string key = 1; - * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -1109,7 +1096,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -1129,7 +1115,6 @@ public final class DaprProtos { private volatile java.lang.Object etag_; /** * string etag = 2; - * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -1145,7 +1130,6 @@ public final class DaprProtos { } /** * string etag = 2; - * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -1165,14 +1149,12 @@ public final class DaprProtos { private io.dapr.DaprProtos.StateOptions options_; /** * .dapr.StateOptions options = 3; - * @return Whether the options field is set. */ public boolean hasOptions() { return options_ != null; } /** * .dapr.StateOptions options = 3; - * @return The options. */ public io.dapr.DaprProtos.StateOptions getOptions() { return options_ == null ? io.dapr.DaprProtos.StateOptions.getDefaultInstance() : options_; @@ -1536,7 +1518,6 @@ public final class DaprProtos { private java.lang.Object key_ = ""; /** * string key = 1; - * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -1552,7 +1533,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -1569,8 +1549,6 @@ public final class DaprProtos { } /** * string key = 1; - * @param value The key to set. - * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { @@ -1584,7 +1562,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return This builder for chaining. */ public Builder clearKey() { @@ -1594,8 +1571,6 @@ public final class DaprProtos { } /** * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -1612,7 +1587,6 @@ public final class DaprProtos { private java.lang.Object etag_ = ""; /** * string etag = 2; - * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -1628,7 +1602,6 @@ public final class DaprProtos { } /** * string etag = 2; - * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -1645,8 +1618,6 @@ public final class DaprProtos { } /** * string etag = 2; - * @param value The etag to set. - * @return This builder for chaining. */ public Builder setEtag( java.lang.String value) { @@ -1660,7 +1631,6 @@ public final class DaprProtos { } /** * string etag = 2; - * @return This builder for chaining. */ public Builder clearEtag() { @@ -1670,8 +1640,6 @@ public final class DaprProtos { } /** * string etag = 2; - * @param value The bytes for etag to set. - * @return This builder for chaining. */ public Builder setEtagBytes( com.google.protobuf.ByteString value) { @@ -1690,14 +1658,12 @@ public final class DaprProtos { io.dapr.DaprProtos.StateOptions, io.dapr.DaprProtos.StateOptions.Builder, io.dapr.DaprProtos.StateOptionsOrBuilder> optionsBuilder_; /** * .dapr.StateOptions options = 3; - * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * .dapr.StateOptions options = 3; - * @return The options. */ public io.dapr.DaprProtos.StateOptions getOptions() { if (optionsBuilder_ == null) { @@ -2650,24 +2616,20 @@ public final class DaprProtos { /** * string key = 1; - * @return The key. */ java.lang.String getKey(); /** * string key = 1; - * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * string consistency = 2; - * @return The consistency. */ java.lang.String getConsistency(); /** * string consistency = 2; - * @return The bytes for consistency. */ com.google.protobuf.ByteString getConsistencyBytes(); @@ -2767,7 +2729,6 @@ public final class DaprProtos { private volatile java.lang.Object key_; /** * string key = 1; - * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -2783,7 +2744,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -2803,7 +2763,6 @@ public final class DaprProtos { private volatile java.lang.Object consistency_; /** * string consistency = 2; - * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -2819,7 +2778,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -3157,7 +3115,6 @@ public final class DaprProtos { private java.lang.Object key_ = ""; /** * string key = 1; - * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -3173,7 +3130,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -3190,8 +3146,6 @@ public final class DaprProtos { } /** * string key = 1; - * @param value The key to set. - * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { @@ -3205,7 +3159,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return This builder for chaining. */ public Builder clearKey() { @@ -3215,8 +3168,6 @@ public final class DaprProtos { } /** * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -3233,7 +3184,6 @@ public final class DaprProtos { private java.lang.Object consistency_ = ""; /** * string consistency = 2; - * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -3249,7 +3199,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -3266,8 +3215,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @param value The consistency to set. - * @return This builder for chaining. */ public Builder setConsistency( java.lang.String value) { @@ -3281,7 +3228,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @return This builder for chaining. */ public Builder clearConsistency() { @@ -3291,8 +3237,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @param value The bytes for consistency to set. - * @return This builder for chaining. */ public Builder setConsistencyBytes( com.google.protobuf.ByteString value) { @@ -3364,12 +3308,10 @@ public final class DaprProtos { /** * .google.protobuf.Any data = 1; - * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 1; - * @return The data. */ com.google.protobuf.Any getData(); /** @@ -3379,12 +3321,10 @@ public final class DaprProtos { /** * string etag = 2; - * @return The etag. */ java.lang.String getEtag(); /** * string etag = 2; - * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); @@ -3490,14 +3430,12 @@ public final class DaprProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 1; - * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 1; - * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -3513,7 +3451,6 @@ public final class DaprProtos { private volatile java.lang.Object etag_; /** * string etag = 2; - * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -3529,7 +3466,6 @@ public final class DaprProtos { } /** * string etag = 2; - * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -3882,14 +3818,12 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 1; - * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 1; - * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -3999,7 +3933,6 @@ public final class DaprProtos { private java.lang.Object etag_ = ""; /** * string etag = 2; - * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -4015,7 +3948,6 @@ public final class DaprProtos { } /** * string etag = 2; - * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -4032,8 +3964,6 @@ public final class DaprProtos { } /** * string etag = 2; - * @param value The etag to set. - * @return This builder for chaining. */ public Builder setEtag( java.lang.String value) { @@ -4047,7 +3977,6 @@ public final class DaprProtos { } /** * string etag = 2; - * @return This builder for chaining. */ public Builder clearEtag() { @@ -4057,8 +3986,6 @@ public final class DaprProtos { } /** * string etag = 2; - * @param value The bytes for etag to set. - * @return This builder for chaining. */ public Builder setEtagBytes( com.google.protobuf.ByteString value) { @@ -4130,24 +4057,20 @@ public final class DaprProtos { /** * string name = 1; - * @return The name. */ java.lang.String getName(); /** * string name = 1; - * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 2; - * @return The data. */ com.google.protobuf.Any getData(); /** @@ -4316,7 +4239,6 @@ public final class DaprProtos { private volatile java.lang.Object name_; /** * string name = 1; - * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -4332,7 +4254,6 @@ public final class DaprProtos { } /** * string name = 1; - * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -4352,14 +4273,12 @@ public final class DaprProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 2; - * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -4833,7 +4752,6 @@ public final class DaprProtos { private java.lang.Object name_ = ""; /** * string name = 1; - * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -4849,7 +4767,6 @@ public final class DaprProtos { } /** * string name = 1; - * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -4866,8 +4783,6 @@ public final class DaprProtos { } /** * string name = 1; - * @param value The name to set. - * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -4881,7 +4796,6 @@ public final class DaprProtos { } /** * string name = 1; - * @return This builder for chaining. */ public Builder clearName() { @@ -4891,8 +4805,6 @@ public final class DaprProtos { } /** * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -4911,14 +4823,12 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 2; - * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -5206,36 +5116,30 @@ public final class DaprProtos { /** * string id = 1; - * @return The id. */ java.lang.String getId(); /** * string id = 1; - * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string method = 2; - * @return The method. */ java.lang.String getMethod(); /** * string method = 2; - * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** * .google.protobuf.Any data = 3; - * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 3; - * @return The data. */ com.google.protobuf.Any getData(); /** @@ -5411,7 +5315,6 @@ public final class DaprProtos { private volatile java.lang.Object id_; /** * string id = 1; - * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; @@ -5427,7 +5330,6 @@ public final class DaprProtos { } /** * string id = 1; - * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { @@ -5447,7 +5349,6 @@ public final class DaprProtos { private volatile java.lang.Object method_; /** * string method = 2; - * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; @@ -5463,7 +5364,6 @@ public final class DaprProtos { } /** * string method = 2; - * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { @@ -5483,14 +5383,12 @@ public final class DaprProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 3; - * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 3; - * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -5981,7 +5879,6 @@ public final class DaprProtos { private java.lang.Object id_ = ""; /** * string id = 1; - * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; @@ -5997,7 +5894,6 @@ public final class DaprProtos { } /** * string id = 1; - * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { @@ -6014,8 +5910,6 @@ public final class DaprProtos { } /** * string id = 1; - * @param value The id to set. - * @return This builder for chaining. */ public Builder setId( java.lang.String value) { @@ -6029,7 +5923,6 @@ public final class DaprProtos { } /** * string id = 1; - * @return This builder for chaining. */ public Builder clearId() { @@ -6039,8 +5932,6 @@ public final class DaprProtos { } /** * string id = 1; - * @param value The bytes for id to set. - * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { @@ -6057,7 +5948,6 @@ public final class DaprProtos { private java.lang.Object method_ = ""; /** * string method = 2; - * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; @@ -6073,7 +5963,6 @@ public final class DaprProtos { } /** * string method = 2; - * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { @@ -6090,8 +5979,6 @@ public final class DaprProtos { } /** * string method = 2; - * @param value The method to set. - * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { @@ -6105,7 +5992,6 @@ public final class DaprProtos { } /** * string method = 2; - * @return This builder for chaining. */ public Builder clearMethod() { @@ -6115,8 +6001,6 @@ public final class DaprProtos { } /** * string method = 2; - * @param value The bytes for method to set. - * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { @@ -6135,14 +6019,12 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 3; - * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 3; - * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -6430,24 +6312,20 @@ public final class DaprProtos { /** * string topic = 1; - * @return The topic. */ java.lang.String getTopic(); /** * string topic = 1; - * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 2; - * @return The data. */ com.google.protobuf.Any getData(); /** @@ -6556,7 +6434,6 @@ public final class DaprProtos { private volatile java.lang.Object topic_; /** * string topic = 1; - * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -6572,7 +6449,6 @@ public final class DaprProtos { } /** * string topic = 1; - * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { @@ -6592,14 +6468,12 @@ public final class DaprProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 2; - * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -6946,7 +6820,6 @@ public final class DaprProtos { private java.lang.Object topic_ = ""; /** * string topic = 1; - * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -6962,7 +6835,6 @@ public final class DaprProtos { } /** * string topic = 1; - * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { @@ -6979,8 +6851,6 @@ public final class DaprProtos { } /** * string topic = 1; - * @param value The topic to set. - * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { @@ -6994,7 +6864,6 @@ public final class DaprProtos { } /** * string topic = 1; - * @return This builder for chaining. */ public Builder clearTopic() { @@ -7004,8 +6873,6 @@ public final class DaprProtos { } /** * string topic = 1; - * @param value The bytes for topic to set. - * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { @@ -7024,14 +6891,12 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 2; - * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 2; - * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -7196,24 +7061,20 @@ public final class DaprProtos { /** * string key = 1; - * @return The key. */ java.lang.String getKey(); /** * string key = 1; - * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * .google.protobuf.Any value = 2; - * @return Whether the value field is set. */ boolean hasValue(); /** * .google.protobuf.Any value = 2; - * @return The value. */ com.google.protobuf.Any getValue(); /** @@ -7223,12 +7084,10 @@ public final class DaprProtos { /** * string etag = 3; - * @return The etag. */ java.lang.String getEtag(); /** * string etag = 3; - * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); @@ -7269,12 +7128,10 @@ public final class DaprProtos { /** * .dapr.StateOptions options = 5; - * @return Whether the options field is set. */ boolean hasOptions(); /** * .dapr.StateOptions options = 5; - * @return The options. */ io.dapr.DaprProtos.StateOptions getOptions(); /** @@ -7429,7 +7286,6 @@ public final class DaprProtos { private volatile java.lang.Object key_; /** * string key = 1; - * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -7445,7 +7301,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -7465,14 +7320,12 @@ public final class DaprProtos { private com.google.protobuf.Any value_; /** * .google.protobuf.Any value = 2; - * @return Whether the value field is set. */ public boolean hasValue() { return value_ != null; } /** * .google.protobuf.Any value = 2; - * @return The value. */ public com.google.protobuf.Any getValue() { return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; @@ -7488,7 +7341,6 @@ public final class DaprProtos { private volatile java.lang.Object etag_; /** * string etag = 3; - * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -7504,7 +7356,6 @@ public final class DaprProtos { } /** * string etag = 3; - * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -7600,14 +7451,12 @@ public final class DaprProtos { private io.dapr.DaprProtos.StateOptions options_; /** * .dapr.StateOptions options = 5; - * @return Whether the options field is set. */ public boolean hasOptions() { return options_ != null; } /** * .dapr.StateOptions options = 5; - * @return The options. */ public io.dapr.DaprProtos.StateOptions getOptions() { return options_ == null ? io.dapr.DaprProtos.StateOptions.getDefaultInstance() : options_; @@ -8052,7 +7901,6 @@ public final class DaprProtos { private java.lang.Object key_ = ""; /** * string key = 1; - * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -8068,7 +7916,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -8085,8 +7932,6 @@ public final class DaprProtos { } /** * string key = 1; - * @param value The key to set. - * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { @@ -8100,7 +7945,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return This builder for chaining. */ public Builder clearKey() { @@ -8110,8 +7954,6 @@ public final class DaprProtos { } /** * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -8130,14 +7972,12 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_; /** * .google.protobuf.Any value = 2; - * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .google.protobuf.Any value = 2; - * @return The value. */ public com.google.protobuf.Any getValue() { if (valueBuilder_ == null) { @@ -8247,7 +8087,6 @@ public final class DaprProtos { private java.lang.Object etag_ = ""; /** * string etag = 3; - * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -8263,7 +8102,6 @@ public final class DaprProtos { } /** * string etag = 3; - * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -8280,8 +8118,6 @@ public final class DaprProtos { } /** * string etag = 3; - * @param value The etag to set. - * @return This builder for chaining. */ public Builder setEtag( java.lang.String value) { @@ -8295,7 +8131,6 @@ public final class DaprProtos { } /** * string etag = 3; - * @return This builder for chaining. */ public Builder clearEtag() { @@ -8305,8 +8140,6 @@ public final class DaprProtos { } /** * string etag = 3; - * @param value The bytes for etag to set. - * @return This builder for chaining. */ public Builder setEtagBytes( com.google.protobuf.ByteString value) { @@ -8448,14 +8281,12 @@ public final class DaprProtos { io.dapr.DaprProtos.StateOptions, io.dapr.DaprProtos.StateOptions.Builder, io.dapr.DaprProtos.StateOptionsOrBuilder> optionsBuilder_; /** * .dapr.StateOptions options = 5; - * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * .dapr.StateOptions options = 5; - * @return The options. */ public io.dapr.DaprProtos.StateOptions getOptions() { if (optionsBuilder_ == null) { @@ -8620,36 +8451,30 @@ public final class DaprProtos { /** * string concurrency = 1; - * @return The concurrency. */ java.lang.String getConcurrency(); /** * string concurrency = 1; - * @return The bytes for concurrency. */ com.google.protobuf.ByteString getConcurrencyBytes(); /** * string consistency = 2; - * @return The consistency. */ java.lang.String getConsistency(); /** * string consistency = 2; - * @return The bytes for consistency. */ com.google.protobuf.ByteString getConsistencyBytes(); /** * .dapr.RetryPolicy retryPolicy = 3; - * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); /** * .dapr.RetryPolicy retryPolicy = 3; - * @return The retryPolicy. */ io.dapr.DaprProtos.RetryPolicy getRetryPolicy(); /** @@ -8765,7 +8590,6 @@ public final class DaprProtos { private volatile java.lang.Object concurrency_; /** * string concurrency = 1; - * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -8781,7 +8605,6 @@ public final class DaprProtos { } /** * string concurrency = 1; - * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -8801,7 +8624,6 @@ public final class DaprProtos { private volatile java.lang.Object consistency_; /** * string consistency = 2; - * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -8817,7 +8639,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -8837,14 +8658,12 @@ public final class DaprProtos { private io.dapr.DaprProtos.RetryPolicy retryPolicy_; /** * .dapr.RetryPolicy retryPolicy = 3; - * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicy_ != null; } /** * .dapr.RetryPolicy retryPolicy = 3; - * @return The retryPolicy. */ public io.dapr.DaprProtos.RetryPolicy getRetryPolicy() { return retryPolicy_ == null ? io.dapr.DaprProtos.RetryPolicy.getDefaultInstance() : retryPolicy_; @@ -9208,7 +9027,6 @@ public final class DaprProtos { private java.lang.Object concurrency_ = ""; /** * string concurrency = 1; - * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -9224,7 +9042,6 @@ public final class DaprProtos { } /** * string concurrency = 1; - * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -9241,8 +9058,6 @@ public final class DaprProtos { } /** * string concurrency = 1; - * @param value The concurrency to set. - * @return This builder for chaining. */ public Builder setConcurrency( java.lang.String value) { @@ -9256,7 +9071,6 @@ public final class DaprProtos { } /** * string concurrency = 1; - * @return This builder for chaining. */ public Builder clearConcurrency() { @@ -9266,8 +9080,6 @@ public final class DaprProtos { } /** * string concurrency = 1; - * @param value The bytes for concurrency to set. - * @return This builder for chaining. */ public Builder setConcurrencyBytes( com.google.protobuf.ByteString value) { @@ -9284,7 +9096,6 @@ public final class DaprProtos { private java.lang.Object consistency_ = ""; /** * string consistency = 2; - * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -9300,7 +9111,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -9317,8 +9127,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @param value The consistency to set. - * @return This builder for chaining. */ public Builder setConsistency( java.lang.String value) { @@ -9332,7 +9140,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @return This builder for chaining. */ public Builder clearConsistency() { @@ -9342,8 +9149,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @param value The bytes for consistency to set. - * @return This builder for chaining. */ public Builder setConsistencyBytes( com.google.protobuf.ByteString value) { @@ -9362,14 +9167,12 @@ public final class DaprProtos { io.dapr.DaprProtos.RetryPolicy, io.dapr.DaprProtos.RetryPolicy.Builder, io.dapr.DaprProtos.RetryPolicyOrBuilder> retryPolicyBuilder_; /** * .dapr.RetryPolicy retryPolicy = 3; - * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicyBuilder_ != null || retryPolicy_ != null; } /** * .dapr.RetryPolicy retryPolicy = 3; - * @return The retryPolicy. */ public io.dapr.DaprProtos.RetryPolicy getRetryPolicy() { if (retryPolicyBuilder_ == null) { @@ -9534,30 +9337,25 @@ public final class DaprProtos { /** * int32 threshold = 1; - * @return The threshold. */ int getThreshold(); /** * string pattern = 2; - * @return The pattern. */ java.lang.String getPattern(); /** * string pattern = 2; - * @return The bytes for pattern. */ com.google.protobuf.ByteString getPatternBytes(); /** * .google.protobuf.Duration interval = 3; - * @return Whether the interval field is set. */ boolean hasInterval(); /** * .google.protobuf.Duration interval = 3; - * @return The interval. */ com.google.protobuf.Duration getInterval(); /** @@ -9671,7 +9469,6 @@ public final class DaprProtos { private int threshold_; /** * int32 threshold = 1; - * @return The threshold. */ public int getThreshold() { return threshold_; @@ -9681,7 +9478,6 @@ public final class DaprProtos { private volatile java.lang.Object pattern_; /** * string pattern = 2; - * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -9697,7 +9493,6 @@ public final class DaprProtos { } /** * string pattern = 2; - * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -9717,14 +9512,12 @@ public final class DaprProtos { private com.google.protobuf.Duration interval_; /** * .google.protobuf.Duration interval = 3; - * @return Whether the interval field is set. */ public boolean hasInterval() { return interval_ != null; } /** * .google.protobuf.Duration interval = 3; - * @return The interval. */ public com.google.protobuf.Duration getInterval() { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; @@ -10088,15 +9881,12 @@ public final class DaprProtos { private int threshold_ ; /** * int32 threshold = 1; - * @return The threshold. */ public int getThreshold() { return threshold_; } /** * int32 threshold = 1; - * @param value The threshold to set. - * @return This builder for chaining. */ public Builder setThreshold(int value) { @@ -10106,7 +9896,6 @@ public final class DaprProtos { } /** * int32 threshold = 1; - * @return This builder for chaining. */ public Builder clearThreshold() { @@ -10118,7 +9907,6 @@ public final class DaprProtos { private java.lang.Object pattern_ = ""; /** * string pattern = 2; - * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -10134,7 +9922,6 @@ public final class DaprProtos { } /** * string pattern = 2; - * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -10151,8 +9938,6 @@ public final class DaprProtos { } /** * string pattern = 2; - * @param value The pattern to set. - * @return This builder for chaining. */ public Builder setPattern( java.lang.String value) { @@ -10166,7 +9951,6 @@ public final class DaprProtos { } /** * string pattern = 2; - * @return This builder for chaining. */ public Builder clearPattern() { @@ -10176,8 +9960,6 @@ public final class DaprProtos { } /** * string pattern = 2; - * @param value The bytes for pattern to set. - * @return This builder for chaining. */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { @@ -10196,14 +9978,12 @@ public final class DaprProtos { com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> intervalBuilder_; /** * .google.protobuf.Duration interval = 3; - * @return Whether the interval field is set. */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** * .google.protobuf.Duration interval = 3; - * @return The interval. */ public com.google.protobuf.Duration getInterval() { if (intervalBuilder_ == null) { @@ -10368,24 +10148,20 @@ public final class DaprProtos { /** * string key = 1; - * @return The key. */ java.lang.String getKey(); /** * string key = 1; - * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * .google.protobuf.Any value = 2; - * @return Whether the value field is set. */ boolean hasValue(); /** * .google.protobuf.Any value = 2; - * @return The value. */ com.google.protobuf.Any getValue(); /** @@ -10395,12 +10171,10 @@ public final class DaprProtos { /** * string etag = 3; - * @return The etag. */ java.lang.String getEtag(); /** * string etag = 3; - * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); @@ -10441,12 +10215,10 @@ public final class DaprProtos { /** * .dapr.StateRequestOptions options = 5; - * @return Whether the options field is set. */ boolean hasOptions(); /** * .dapr.StateRequestOptions options = 5; - * @return The options. */ io.dapr.DaprProtos.StateRequestOptions getOptions(); /** @@ -10601,7 +10373,6 @@ public final class DaprProtos { private volatile java.lang.Object key_; /** * string key = 1; - * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -10617,7 +10388,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -10637,14 +10407,12 @@ public final class DaprProtos { private com.google.protobuf.Any value_; /** * .google.protobuf.Any value = 2; - * @return Whether the value field is set. */ public boolean hasValue() { return value_ != null; } /** * .google.protobuf.Any value = 2; - * @return The value. */ public com.google.protobuf.Any getValue() { return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; @@ -10660,7 +10428,6 @@ public final class DaprProtos { private volatile java.lang.Object etag_; /** * string etag = 3; - * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -10676,7 +10443,6 @@ public final class DaprProtos { } /** * string etag = 3; - * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -10772,14 +10538,12 @@ public final class DaprProtos { private io.dapr.DaprProtos.StateRequestOptions options_; /** * .dapr.StateRequestOptions options = 5; - * @return Whether the options field is set. */ public boolean hasOptions() { return options_ != null; } /** * .dapr.StateRequestOptions options = 5; - * @return The options. */ public io.dapr.DaprProtos.StateRequestOptions getOptions() { return options_ == null ? io.dapr.DaprProtos.StateRequestOptions.getDefaultInstance() : options_; @@ -11224,7 +10988,6 @@ public final class DaprProtos { private java.lang.Object key_ = ""; /** * string key = 1; - * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -11240,7 +11003,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -11257,8 +11019,6 @@ public final class DaprProtos { } /** * string key = 1; - * @param value The key to set. - * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { @@ -11272,7 +11032,6 @@ public final class DaprProtos { } /** * string key = 1; - * @return This builder for chaining. */ public Builder clearKey() { @@ -11282,8 +11041,6 @@ public final class DaprProtos { } /** * string key = 1; - * @param value The bytes for key to set. - * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -11302,14 +11059,12 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_; /** * .google.protobuf.Any value = 2; - * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .google.protobuf.Any value = 2; - * @return The value. */ public com.google.protobuf.Any getValue() { if (valueBuilder_ == null) { @@ -11419,7 +11174,6 @@ public final class DaprProtos { private java.lang.Object etag_ = ""; /** * string etag = 3; - * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -11435,7 +11189,6 @@ public final class DaprProtos { } /** * string etag = 3; - * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -11452,8 +11205,6 @@ public final class DaprProtos { } /** * string etag = 3; - * @param value The etag to set. - * @return This builder for chaining. */ public Builder setEtag( java.lang.String value) { @@ -11467,7 +11218,6 @@ public final class DaprProtos { } /** * string etag = 3; - * @return This builder for chaining. */ public Builder clearEtag() { @@ -11477,8 +11227,6 @@ public final class DaprProtos { } /** * string etag = 3; - * @param value The bytes for etag to set. - * @return This builder for chaining. */ public Builder setEtagBytes( com.google.protobuf.ByteString value) { @@ -11620,14 +11368,12 @@ public final class DaprProtos { io.dapr.DaprProtos.StateRequestOptions, io.dapr.DaprProtos.StateRequestOptions.Builder, io.dapr.DaprProtos.StateRequestOptionsOrBuilder> optionsBuilder_; /** * .dapr.StateRequestOptions options = 5; - * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * .dapr.StateRequestOptions options = 5; - * @return The options. */ public io.dapr.DaprProtos.StateRequestOptions getOptions() { if (optionsBuilder_ == null) { @@ -11792,36 +11538,30 @@ public final class DaprProtos { /** * string concurrency = 1; - * @return The concurrency. */ java.lang.String getConcurrency(); /** * string concurrency = 1; - * @return The bytes for concurrency. */ com.google.protobuf.ByteString getConcurrencyBytes(); /** * string consistency = 2; - * @return The consistency. */ java.lang.String getConsistency(); /** * string consistency = 2; - * @return The bytes for consistency. */ com.google.protobuf.ByteString getConsistencyBytes(); /** * .dapr.StateRetryPolicy retryPolicy = 3; - * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); /** * .dapr.StateRetryPolicy retryPolicy = 3; - * @return The retryPolicy. */ io.dapr.DaprProtos.StateRetryPolicy getRetryPolicy(); /** @@ -11937,7 +11677,6 @@ public final class DaprProtos { private volatile java.lang.Object concurrency_; /** * string concurrency = 1; - * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -11953,7 +11692,6 @@ public final class DaprProtos { } /** * string concurrency = 1; - * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -11973,7 +11711,6 @@ public final class DaprProtos { private volatile java.lang.Object consistency_; /** * string consistency = 2; - * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -11989,7 +11726,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -12009,14 +11745,12 @@ public final class DaprProtos { private io.dapr.DaprProtos.StateRetryPolicy retryPolicy_; /** * .dapr.StateRetryPolicy retryPolicy = 3; - * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicy_ != null; } /** * .dapr.StateRetryPolicy retryPolicy = 3; - * @return The retryPolicy. */ public io.dapr.DaprProtos.StateRetryPolicy getRetryPolicy() { return retryPolicy_ == null ? io.dapr.DaprProtos.StateRetryPolicy.getDefaultInstance() : retryPolicy_; @@ -12380,7 +12114,6 @@ public final class DaprProtos { private java.lang.Object concurrency_ = ""; /** * string concurrency = 1; - * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -12396,7 +12129,6 @@ public final class DaprProtos { } /** * string concurrency = 1; - * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -12413,8 +12145,6 @@ public final class DaprProtos { } /** * string concurrency = 1; - * @param value The concurrency to set. - * @return This builder for chaining. */ public Builder setConcurrency( java.lang.String value) { @@ -12428,7 +12158,6 @@ public final class DaprProtos { } /** * string concurrency = 1; - * @return This builder for chaining. */ public Builder clearConcurrency() { @@ -12438,8 +12167,6 @@ public final class DaprProtos { } /** * string concurrency = 1; - * @param value The bytes for concurrency to set. - * @return This builder for chaining. */ public Builder setConcurrencyBytes( com.google.protobuf.ByteString value) { @@ -12456,7 +12183,6 @@ public final class DaprProtos { private java.lang.Object consistency_ = ""; /** * string consistency = 2; - * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -12472,7 +12198,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -12489,8 +12214,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @param value The consistency to set. - * @return This builder for chaining. */ public Builder setConsistency( java.lang.String value) { @@ -12504,7 +12227,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @return This builder for chaining. */ public Builder clearConsistency() { @@ -12514,8 +12236,6 @@ public final class DaprProtos { } /** * string consistency = 2; - * @param value The bytes for consistency to set. - * @return This builder for chaining. */ public Builder setConsistencyBytes( com.google.protobuf.ByteString value) { @@ -12534,14 +12254,12 @@ public final class DaprProtos { io.dapr.DaprProtos.StateRetryPolicy, io.dapr.DaprProtos.StateRetryPolicy.Builder, io.dapr.DaprProtos.StateRetryPolicyOrBuilder> retryPolicyBuilder_; /** * .dapr.StateRetryPolicy retryPolicy = 3; - * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicyBuilder_ != null || retryPolicy_ != null; } /** * .dapr.StateRetryPolicy retryPolicy = 3; - * @return The retryPolicy. */ public io.dapr.DaprProtos.StateRetryPolicy getRetryPolicy() { if (retryPolicyBuilder_ == null) { @@ -12706,30 +12424,25 @@ public final class DaprProtos { /** * int32 threshold = 1; - * @return The threshold. */ int getThreshold(); /** * string pattern = 2; - * @return The pattern. */ java.lang.String getPattern(); /** * string pattern = 2; - * @return The bytes for pattern. */ com.google.protobuf.ByteString getPatternBytes(); /** * .google.protobuf.Duration interval = 3; - * @return Whether the interval field is set. */ boolean hasInterval(); /** * .google.protobuf.Duration interval = 3; - * @return The interval. */ com.google.protobuf.Duration getInterval(); /** @@ -12843,7 +12556,6 @@ public final class DaprProtos { private int threshold_; /** * int32 threshold = 1; - * @return The threshold. */ public int getThreshold() { return threshold_; @@ -12853,7 +12565,6 @@ public final class DaprProtos { private volatile java.lang.Object pattern_; /** * string pattern = 2; - * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -12869,7 +12580,6 @@ public final class DaprProtos { } /** * string pattern = 2; - * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -12889,14 +12599,12 @@ public final class DaprProtos { private com.google.protobuf.Duration interval_; /** * .google.protobuf.Duration interval = 3; - * @return Whether the interval field is set. */ public boolean hasInterval() { return interval_ != null; } /** * .google.protobuf.Duration interval = 3; - * @return The interval. */ public com.google.protobuf.Duration getInterval() { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; @@ -13260,15 +12968,12 @@ public final class DaprProtos { private int threshold_ ; /** * int32 threshold = 1; - * @return The threshold. */ public int getThreshold() { return threshold_; } /** * int32 threshold = 1; - * @param value The threshold to set. - * @return This builder for chaining. */ public Builder setThreshold(int value) { @@ -13278,7 +12983,6 @@ public final class DaprProtos { } /** * int32 threshold = 1; - * @return This builder for chaining. */ public Builder clearThreshold() { @@ -13290,7 +12994,6 @@ public final class DaprProtos { private java.lang.Object pattern_ = ""; /** * string pattern = 2; - * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -13306,7 +13009,6 @@ public final class DaprProtos { } /** * string pattern = 2; - * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -13323,8 +13025,6 @@ public final class DaprProtos { } /** * string pattern = 2; - * @param value The pattern to set. - * @return This builder for chaining. */ public Builder setPattern( java.lang.String value) { @@ -13338,7 +13038,6 @@ public final class DaprProtos { } /** * string pattern = 2; - * @return This builder for chaining. */ public Builder clearPattern() { @@ -13348,8 +13047,6 @@ public final class DaprProtos { } /** * string pattern = 2; - * @param value The bytes for pattern to set. - * @return This builder for chaining. */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { @@ -13368,14 +13065,12 @@ public final class DaprProtos { com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> intervalBuilder_; /** * .google.protobuf.Duration interval = 3; - * @return Whether the interval field is set. */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** * .google.protobuf.Duration interval = 3; - * @return The interval. */ public com.google.protobuf.Duration getInterval() { if (intervalBuilder_ == null) { @@ -13638,65 +13333,65 @@ public final class DaprProtos { descriptor; static { java.lang.String[] descriptorData = { - "\n\017dapr/dapr.proto\022\004dapr\032\031google/protobuf" + - "/any.proto\032\033google/protobuf/empty.proto\032" + - "\036google/protobuf/duration.proto\"\271\001\n\035Invo" + - "keServiceResponseEnvelope\022\"\n\004data\030\001 \001(\0132" + - "\024.google.protobuf.Any\022C\n\010metadata\030\002 \003(\0132" + - "1.dapr.InvokeServiceResponseEnvelope.Met" + - "adataEntry\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t" + - "\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\023DeleteStateEnvelo" + - "pe\022\013\n\003key\030\001 \001(\t\022\014\n\004etag\030\002 \001(\t\022#\n\007options" + - "\030\003 \001(\0132\022.dapr.StateOptions\"9\n\021SaveStateE" + - "nvelope\022$\n\010requests\030\001 \003(\0132\022.dapr.StateRe" + - "quest\"4\n\020GetStateEnvelope\022\013\n\003key\030\001 \001(\t\022\023" + - "\n\013consistency\030\002 \001(\t\"L\n\030GetStateResponseE" + - "nvelope\022\"\n\004data\030\001 \001(\0132\024.google.protobuf." + - "Any\022\014\n\004etag\030\002 \001(\t\"\267\001\n\025InvokeBindingEnvel" + - "ope\022\014\n\004name\030\001 \001(\t\022\"\n\004data\030\002 \001(\0132\024.google" + - ".protobuf.Any\022;\n\010metadata\030\003 \003(\0132).dapr.I" + - "nvokeBindingEnvelope.MetadataEntry\032/\n\rMe" + - "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + - "\0028\001\"\305\001\n\025InvokeServiceEnvelope\022\n\n\002id\030\001 \001(" + - "\t\022\016\n\006method\030\002 \001(\t\022\"\n\004data\030\003 \001(\0132\024.google" + - ".protobuf.Any\022;\n\010metadata\030\004 \003(\0132).dapr.I" + - "nvokeServiceEnvelope.MetadataEntry\032/\n\rMe" + - "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + - "\0028\001\"I\n\024PublishEventEnvelope\022\r\n\005topic\030\001 \001" + - "(\t\022\"\n\004data\030\002 \001(\0132\024.google.protobuf.Any\"\312" + - "\001\n\005State\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.g" + - "oogle.protobuf.Any\022\014\n\004etag\030\003 \001(\t\022+\n\010meta" + - "data\030\004 \003(\0132\031.dapr.State.MetadataEntry\022#\n" + - "\007options\030\005 \001(\0132\022.dapr.StateOptions\032/\n\rMe" + - "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + - "\0028\001\"`\n\014StateOptions\022\023\n\013concurrency\030\001 \001(\t" + - "\022\023\n\013consistency\030\002 \001(\t\022&\n\013retryPolicy\030\003 \001" + - "(\0132\021.dapr.RetryPolicy\"^\n\013RetryPolicy\022\021\n\t" + - "threshold\030\001 \001(\005\022\017\n\007pattern\030\002 \001(\t\022+\n\010inte" + - "rval\030\003 \001(\0132\031.google.protobuf.Duration\"\337\001" + - "\n\014StateRequest\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001" + - "(\0132\024.google.protobuf.Any\022\014\n\004etag\030\003 \001(\t\0222" + - "\n\010metadata\030\004 \003(\0132 .dapr.StateRequest.Met" + - "adataEntry\022*\n\007options\030\005 \001(\0132\031.dapr.State" + - "RequestOptions\032/\n\rMetadataEntry\022\013\n\003key\030\001" + - " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"l\n\023StateRequestO" + - "ptions\022\023\n\013concurrency\030\001 \001(\t\022\023\n\013consisten" + - "cy\030\002 \001(\t\022+\n\013retryPolicy\030\003 \001(\0132\026.dapr.Sta" + - "teRetryPolicy\"c\n\020StateRetryPolicy\022\021\n\tthr" + - "eshold\030\001 \001(\005\022\017\n\007pattern\030\002 \001(\t\022+\n\010interva" + - "l\030\003 \001(\0132\031.google.protobuf.Duration2\263\003\n\004D" + - "apr\022D\n\014PublishEvent\022\032.dapr.PublishEventE" + - "nvelope\032\026.google.protobuf.Empty\"\000\022S\n\rInv" + - "okeService\022\033.dapr.InvokeServiceEnvelope\032" + - "#.dapr.InvokeServiceResponseEnvelope\"\000\022F" + - "\n\rInvokeBinding\022\033.dapr.InvokeBindingEnve" + - "lope\032\026.google.protobuf.Empty\"\000\022D\n\010GetSta" + - "te\022\026.dapr.GetStateEnvelope\032\036.dapr.GetSta" + - "teResponseEnvelope\"\000\022>\n\tSaveState\022\027.dapr" + - ".SaveStateEnvelope\032\026.google.protobuf.Emp" + - "ty\"\000\022B\n\013DeleteState\022\031.dapr.DeleteStateEn" + - "velope\032\026.google.protobuf.Empty\"\000B\025\n\007io.d" + - "aprB\nDaprProtosb\006proto3" + "\n\ndapr.proto\022\004dapr\032\031google/protobuf/any." + + "proto\032\033google/protobuf/empty.proto\032\036goog" + + "le/protobuf/duration.proto\"\271\001\n\035InvokeSer" + + "viceResponseEnvelope\022\"\n\004data\030\001 \001(\0132\024.goo" + + "gle.protobuf.Any\022C\n\010metadata\030\002 \003(\01321.dap" + + "r.InvokeServiceResponseEnvelope.Metadata" + + "Entry\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + + "alue\030\002 \001(\t:\0028\001\"U\n\023DeleteStateEnvelope\022\013\n" + + "\003key\030\001 \001(\t\022\014\n\004etag\030\002 \001(\t\022#\n\007options\030\003 \001(" + + "\0132\022.dapr.StateOptions\"9\n\021SaveStateEnvelo" + + "pe\022$\n\010requests\030\001 \003(\0132\022.dapr.StateRequest" + + "\"4\n\020GetStateEnvelope\022\013\n\003key\030\001 \001(\t\022\023\n\013con" + + "sistency\030\002 \001(\t\"L\n\030GetStateResponseEnvelo" + + "pe\022\"\n\004data\030\001 \001(\0132\024.google.protobuf.Any\022\014" + + "\n\004etag\030\002 \001(\t\"\267\001\n\025InvokeBindingEnvelope\022\014" + + "\n\004name\030\001 \001(\t\022\"\n\004data\030\002 \001(\0132\024.google.prot" + + "obuf.Any\022;\n\010metadata\030\003 \003(\0132).dapr.Invoke" + + "BindingEnvelope.MetadataEntry\032/\n\rMetadat" + + "aEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"\305" + + "\001\n\025InvokeServiceEnvelope\022\n\n\002id\030\001 \001(\t\022\016\n\006" + + "method\030\002 \001(\t\022\"\n\004data\030\003 \001(\0132\024.google.prot" + + "obuf.Any\022;\n\010metadata\030\004 \003(\0132).dapr.Invoke" + + "ServiceEnvelope.MetadataEntry\032/\n\rMetadat" + + "aEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"I" + + "\n\024PublishEventEnvelope\022\r\n\005topic\030\001 \001(\t\022\"\n" + + "\004data\030\002 \001(\0132\024.google.protobuf.Any\"\312\001\n\005St" + + "ate\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.google" + + ".protobuf.Any\022\014\n\004etag\030\003 \001(\t\022+\n\010metadata\030" + + "\004 \003(\0132\031.dapr.State.MetadataEntry\022#\n\007opti" + + "ons\030\005 \001(\0132\022.dapr.StateOptions\032/\n\rMetadat" + + "aEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"`" + + "\n\014StateOptions\022\023\n\013concurrency\030\001 \001(\t\022\023\n\013c" + + "onsistency\030\002 \001(\t\022&\n\013retryPolicy\030\003 \001(\0132\021." + + "dapr.RetryPolicy\"^\n\013RetryPolicy\022\021\n\tthres" + + "hold\030\001 \001(\005\022\017\n\007pattern\030\002 \001(\t\022+\n\010interval\030" + + "\003 \001(\0132\031.google.protobuf.Duration\"\337\001\n\014Sta" + + "teRequest\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024." + + "google.protobuf.Any\022\014\n\004etag\030\003 \001(\t\0222\n\010met" + + "adata\030\004 \003(\0132 .dapr.StateRequest.Metadata" + + "Entry\022*\n\007options\030\005 \001(\0132\031.dapr.StateReque" + + "stOptions\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t\022" + + "\r\n\005value\030\002 \001(\t:\0028\001\"l\n\023StateRequestOption" + + "s\022\023\n\013concurrency\030\001 \001(\t\022\023\n\013consistency\030\002 " + + "\001(\t\022+\n\013retryPolicy\030\003 \001(\0132\026.dapr.StateRet" + + "ryPolicy\"c\n\020StateRetryPolicy\022\021\n\tthreshol" + + "d\030\001 \001(\005\022\017\n\007pattern\030\002 \001(\t\022+\n\010interval\030\003 \001" + + "(\0132\031.google.protobuf.Duration2\263\003\n\004Dapr\022D" + + "\n\014PublishEvent\022\032.dapr.PublishEventEnvelo" + + "pe\032\026.google.protobuf.Empty\"\000\022S\n\rInvokeSe" + + "rvice\022\033.dapr.InvokeServiceEnvelope\032#.dap" + + "r.InvokeServiceResponseEnvelope\"\000\022F\n\rInv" + + "okeBinding\022\033.dapr.InvokeBindingEnvelope\032" + + "\026.google.protobuf.Empty\"\000\022D\n\010GetState\022\026." + + "dapr.GetStateEnvelope\032\036.dapr.GetStateRes" + + "ponseEnvelope\"\000\022>\n\tSaveState\022\027.dapr.Save" + + "StateEnvelope\032\026.google.protobuf.Empty\"\000\022" + + "B\n\013DeleteState\022\031.dapr.DeleteStateEnvelop" + + "e\032\026.google.protobuf.Empty\"\000B(\n\007io.daprB\n" + + "DaprProtos\252\002\020Dapr.Client.Grpcb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/examples/pom.xml b/examples/pom.xml index ee20bd05e..7e12ba45b 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -1,65 +1,26 @@ - + 4.0.0 - io.dapr + + + io.dapr + client-parent + 0.1.0-preview02 + + examples jar - 0.1.0-preview01 - dapr-client - https://dapr.io - - - UTF-8 - 1.24.0 - 3.10.0 - 3.10.0 - 1.7 - 1.7 - - - - - - io.grpc - grpc-bom - ${grpc.version} - pom - import - - - + 0.1.0-preview02 + dapr-client-examples io.dapr client - 0.1.0-preview01 - - - io.grpc - grpc-protobuf - - - io.grpc - grpc-stub - - - javax.annotation - javax.annotation-api - 1.2 - provided - - - com.google.protobuf - protobuf-java-util - ${protobuf.version} + 0.1.0-preview02 - - - - - - diff --git a/pom.xml b/pom.xml index bc942826b..bc69cc270 100644 --- a/pom.xml +++ b/pom.xml @@ -1,14 +1,59 @@ - + 4.0.0 + io.dapr - client - jar - 0.1.0-preview01 - dapr-client + client-parent + pom + 0.1.0-preview02 + dapr-client-parent gRPC client for Dapr. https://dapr.io + + UTF-8 + 1.25.0 + 3.11.0 + 3.10.0 + 1.6.2 + 3.1.1 + 1.8 + 11 + 11 + + + + + + io.grpc + grpc-bom + ${grpc.version} + pom + import + + + javax.annotation + javax.annotation-api + 1.3.2 + provided + + + junit + junit + 4.12 + test + + + org.mockito + mockito-core + 3.2.0 + test + + + + MIT License @@ -31,101 +76,9 @@ http://github.com/dapr/java-sdk - - UTF-8 - 1.24.0 - 3.10.0 - 3.10.0 - 1.7 - 1.7 - + + client + examples + - - - - io.grpc - grpc-bom - ${grpc.version} - pom - import - - - - - - - io.grpc - grpc-netty-shaded - runtime - - - io.grpc - grpc-protobuf - - - io.grpc - grpc-stub - - - javax.annotation - javax.annotation-api - 1.2 - provided - - - io.grpc - grpc-testing - test - - - com.google.protobuf - protobuf-java-util - ${protobuf.version} - - - junit - junit - 4.12 - test - - - org.mockito - mockito-core - 2.25.1 - test - - - - - - - - - org.apache.maven.plugins - maven-source-plugin - 2.2.1 - - - attach-sources - - jar-no-fork - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.0 - - - attach-javadocs - - jar - - - - - - From 3d41d54c73c40133fce327ac7f3a99fcc6df5529 Mon Sep 17 00:00:00 2001 From: Bruno Borges Date: Sat, 30 Nov 2019 02:01:10 -0800 Subject: [PATCH 3/9] new example --- client/pom.xml | 13 +- .../src/main/java/io/dapr/DaprClientGrpc.java | 6 +- client/src/main/java/io/dapr/DaprGrpc.java | 4 +- examples/pom.xml | 5 + .../java/io/dapr/examples/OrderManager.java | 112 ++++++++++++++++++ 5 files changed, 133 insertions(+), 7 deletions(-) create mode 100644 examples/src/main/java/io/dapr/examples/OrderManager.java diff --git a/client/pom.xml b/client/pom.xml index 63472ee28..b778e192e 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -82,8 +82,17 @@ ${protobuf.input.directory}/dapr ${protobuf.input.directory}/daprclient - ${project.build.sourceDirectory} - io.grpc:protoc-gen-grpc-java:${grpc.version} + + + java + ${project.build.sourceDirectory} + + + grpc-java + ${project.build.sourceDirectory} + io.grpc:protoc-gen-grpc-java:${grpc.version} + + diff --git a/client/src/main/java/io/dapr/DaprClientGrpc.java b/client/src/main/java/io/dapr/DaprClientGrpc.java index 5cea623c5..147e13eae 100644 --- a/client/src/main/java/io/dapr/DaprClientGrpc.java +++ b/client/src/main/java/io/dapr/DaprClientGrpc.java @@ -17,12 +17,12 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** *
- * User Code definitions by BRUNO
+ * User Code definitions
  * 
*/ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.24.0)", - comments = "Source: daprclient/daprclient.proto") + value = "by gRPC proto compiler (version 1.25.0)", + comments = "Source: daprclient.proto") public final class DaprClientGrpc { private DaprClientGrpc() {} diff --git a/client/src/main/java/io/dapr/DaprGrpc.java b/client/src/main/java/io/dapr/DaprGrpc.java index cab4028f5..78c3cc2fd 100644 --- a/client/src/main/java/io/dapr/DaprGrpc.java +++ b/client/src/main/java/io/dapr/DaprGrpc.java @@ -21,8 +21,8 @@ import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; * */ @javax.annotation.Generated( - value = "by gRPC proto compiler (version 1.24.0)", - comments = "Source: dapr/dapr.proto") + value = "by gRPC proto compiler (version 1.25.0)", + comments = "Source: dapr.proto") public final class DaprGrpc { private DaprGrpc() {} diff --git a/examples/pom.xml b/examples/pom.xml index 7e12ba45b..f5cdeb91e 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -16,6 +16,11 @@ dapr-client-examples + + org.json + json + 20190722 + io.dapr client diff --git a/examples/src/main/java/io/dapr/examples/OrderManager.java b/examples/src/main/java/io/dapr/examples/OrderManager.java new file mode 100644 index 000000000..5397e82ea --- /dev/null +++ b/examples/src/main/java/io/dapr/examples/OrderManager.java @@ -0,0 +1,112 @@ +package io.dapr.examples; + +import java.net.InetSocketAddress; +import java.net.URI; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.net.http.HttpClient.Redirect; +import java.net.http.HttpClient.Version; +import java.net.http.HttpRequest.BodyPublishers; +import java.net.http.HttpResponse.BodyHandlers; +import java.nio.charset.Charset; +import java.time.Duration; +import java.util.Optional; +import java.util.concurrent.CompletableFuture; +import static java.lang.System.out; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; + +import org.json.JSONObject; + +import com.sun.net.httpserver.HttpServer; +import com.sun.net.httpserver.HttpExchange; + +/** + * OrderManager + */ +public class OrderManager { + + static HttpClient httpClient; + + public static void main(String[] args) throws IOException { + var httpPort = 8080; + var daprPort = Optional.ofNullable(System.getenv("DAPR_HTTP_PORT")).orElse("3500"); + var stateUrl = String.format("http://localhost:%s/v1.0/state", daprPort); + var httpServer = HttpServer.create(new InetSocketAddress(httpPort), 0); + + httpClient = HttpClient.newBuilder().version(Version.HTTP_1_1).followRedirects(Redirect.NORMAL) + .connectTimeout(Duration.ofSeconds(2)).build(); + + httpServer.createContext("/order").setHandler(e -> { + fetch(stateUrl + "/order").thenAccept(response -> { + var resCode = response.statusCode() == 200 ? 200 : 500; + var body = response.statusCode() == 200 ? response.body() : "Could not get state."; + + try { + e.sendResponseHeaders(resCode, body.getBytes().length); + try (var os = e.getResponseBody()) { + os.write(body.getBytes()); + } + } catch (IOException ioerror) { + out.println(ioerror); + } + }); + }); + + httpServer.createContext("/neworder").setHandler(e -> { + var json = readBody(e); + var jsonObject = new JSONObject(json); + var orderId = jsonObject.getString("orderId"); + out.printf("Got a new order! Order ID: %s", orderId); + + var state = new JSONObject(); + state.put("key", "order"); + state.put("value", jsonObject); + + post(stateUrl + "/neworder", state.toString()).thenAccept(response -> { + var resCode = response.statusCode() == 200 ? 200 : 500; + var body = response.statusCode() == 200 ? "" : "Failed to persist state."; + try { + e.sendResponseHeaders(resCode, body.getBytes().length); + try (var os = e.getResponseBody()) { + os.write(body.getBytes()); + } + } catch (IOException ioerror) { + out.println(ioerror); + } + }); + }); + + httpServer.start(); + out.printf("Java App listening on port %s.", httpPort); + } + + private static CompletableFuture> fetch(String url) { + var request = HttpRequest.newBuilder().uri(URI.create(url)).build(); + return httpClient.sendAsync(request, BodyHandlers.ofString()); + } + + private static CompletableFuture> post(String url, String body) { + var request = HttpRequest.newBuilder().uri(URI.create(url)) + .header("Content-Type", "application/json; charset=UTF-8").POST(BodyPublishers.ofString(body)).build(); + + return httpClient.sendAsync(request, BodyHandlers.ofString()); + } + + private static String readBody(HttpExchange t) { + // retrieve the request json data + var is = t.getRequestBody(); + var bos = new ByteArrayOutputStream(); + byte[] buffer = new byte[1024]; + int len; + try (bos) { + while ((len = is.read(buffer)) > 0) + bos.write(buffer, 0, len); + } catch (IOException e) { + e.printStackTrace(); + } + return new String(bos.toByteArray(), Charset.forName("UTF-8")); + } +} From 37fa7d9542921cc9f7a227a42e24cc6c02d85c5f Mon Sep 17 00:00:00 2001 From: Bruno Borges Date: Sat, 30 Nov 2019 02:04:58 -0800 Subject: [PATCH 4/9] fix formatting javadoc --- .../main/java/io/dapr/examples/Example.java | 34 ++++++++----------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/examples/src/main/java/io/dapr/examples/Example.java b/examples/src/main/java/io/dapr/examples/Example.java index 7f68533ef..dde4dc2c7 100644 --- a/examples/src/main/java/io/dapr/examples/Example.java +++ b/examples/src/main/java/io/dapr/examples/Example.java @@ -4,46 +4,42 @@ import com.google.protobuf.Any; import com.google.protobuf.ByteString; import io.dapr.DaprGrpc; -import io.dapr.DaprGrpc.DaprBlockingStub; import io.dapr.DaprProtos.DeleteStateEnvelope; import io.dapr.DaprProtos.GetStateEnvelope; -import io.dapr.DaprProtos.GetStateResponseEnvelope; import io.dapr.DaprProtos.PublishEventEnvelope; import io.dapr.DaprProtos.SaveStateEnvelope; import io.dapr.DaprProtos.StateRequest; -import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; /** * Simple example, to run: - * mvn compile - * dapr run --grpc-port 50001 -- mvn exec:java -Dexec.mainClass=io.dapr.examples.Example + * + * + * mvn compile + * dapr run --grpc-port 50001 -- mvn + * exec:java -Dexec.mainClass=io.dapr.examples.Example + * */ public class Example { public static void main(String[] args) { - ManagedChannel channel = - ManagedChannelBuilder.forAddress("localhost", 50001).usePlaintext().build(); - DaprBlockingStub client = DaprGrpc.newBlockingStub(channel); + var channel = ManagedChannelBuilder.forAddress("localhost", 50001).usePlaintext().build(); + var client = DaprGrpc.newBlockingStub(channel); - Any data = Any.newBuilder().setValue(ByteString.copyFromUtf8("foo")).build(); + var data = Any.newBuilder().setValue(ByteString.copyFromUtf8("foo")).build(); client.publishEvent(PublishEventEnvelope.newBuilder().setTopic("foo").setData(data).build()); System.out.println("Published!"); - String key = "mykey"; - StateRequest req = StateRequest.newBuilder() - .setKey(key) - .setValue(Any.newBuilder().setValue(ByteString.copyFromUtf8("my value")).build()) - .build(); - SaveStateEnvelope state = SaveStateEnvelope.newBuilder() - .addRequests(req) - .build(); + var key = "mykey"; + var req = StateRequest.newBuilder().setKey(key) + .setValue(Any.newBuilder().setValue(ByteString.copyFromUtf8("my value")).build()).build(); + var state = SaveStateEnvelope.newBuilder().addRequests(req).build(); client.saveState(state); System.out.println("Saved!"); - GetStateResponseEnvelope get = client.getState(GetStateEnvelope.newBuilder().setKey(key).build()); + var get = client.getState(GetStateEnvelope.newBuilder().setKey(key).build()); System.out.println("Got: " + get.getData().getValue().toStringUtf8()); client.deleteState(DeleteStateEnvelope.newBuilder().setKey(key).build()); System.out.println("Deleted!"); } -} \ No newline at end of file +} From 06116e223d9821ea74c08f5934269bf315565ec7 Mon Sep 17 00:00:00 2001 From: Bruno Borges Date: Sat, 30 Nov 2019 02:12:12 -0800 Subject: [PATCH 5/9] fix readme --- README.md | 16 +++++++++++++--- .../src/main/java/io/dapr/examples/Example.java | 10 ++++++---- .../main/java/io/dapr/examples/OrderManager.java | 4 +++- 3 files changed, 22 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0b66de67c..cc95bea7d 100644 --- a/README.md +++ b/README.md @@ -5,15 +5,25 @@ This is the Dapr SDK for Java, based on the auto-generated proto client.
For more info on Dapr and gRPC, visit [this link](https://github.com/dapr/docs/tree/master/howto/create-grpc-app). ### Installing + +The client will generate gRPC Client and Protobuf classes during build. + +Make sure to clone this repository including the submodules: + +```sh +git clone --recurse-submodules https://github.com/dapr/java-sdk.git +``` + +Then head over to build the Maven project: + ```sh # make sure you are in the `java-sdk` directory. -mvn package install +mvn install ``` ### Running an example ```sh cd examples/ -mvn compile dapr run --protocol grpc --grpc-port 50001 -- mvn exec:java -Dexec.mainClass=io.dapr.examples.Example ``` @@ -30,7 +40,7 @@ https://maven.apache.org/plugins/maven-deploy-plugin https://help.sonatype.com/repomanager3/user-interface/uploading-components -### Releasing with Maven +### Maven Module version management To increase the version of all modules and pom files, run the following commands: ```sh diff --git a/examples/src/main/java/io/dapr/examples/Example.java b/examples/src/main/java/io/dapr/examples/Example.java index dde4dc2c7..244fc8c46 100644 --- a/examples/src/main/java/io/dapr/examples/Example.java +++ b/examples/src/main/java/io/dapr/examples/Example.java @@ -1,5 +1,7 @@ package io.dapr.examples; +import static java.lang.System.out; + import com.google.protobuf.Any; import com.google.protobuf.ByteString; @@ -27,19 +29,19 @@ public class Example { var data = Any.newBuilder().setValue(ByteString.copyFromUtf8("foo")).build(); client.publishEvent(PublishEventEnvelope.newBuilder().setTopic("foo").setData(data).build()); - System.out.println("Published!"); + out.println("Published!"); var key = "mykey"; var req = StateRequest.newBuilder().setKey(key) .setValue(Any.newBuilder().setValue(ByteString.copyFromUtf8("my value")).build()).build(); var state = SaveStateEnvelope.newBuilder().addRequests(req).build(); client.saveState(state); - System.out.println("Saved!"); + out.println("Saved!"); var get = client.getState(GetStateEnvelope.newBuilder().setKey(key).build()); - System.out.println("Got: " + get.getData().getValue().toStringUtf8()); + out.println("Got: " + get.getData().getValue().toStringUtf8()); client.deleteState(DeleteStateEnvelope.newBuilder().setKey(key).build()); - System.out.println("Deleted!"); + out.println("Deleted!"); } } diff --git a/examples/src/main/java/io/dapr/examples/OrderManager.java b/examples/src/main/java/io/dapr/examples/OrderManager.java index 5397e82ea..662c84bc8 100644 --- a/examples/src/main/java/io/dapr/examples/OrderManager.java +++ b/examples/src/main/java/io/dapr/examples/OrderManager.java @@ -24,7 +24,9 @@ import com.sun.net.httpserver.HttpServer; import com.sun.net.httpserver.HttpExchange; /** - * OrderManager + * OrderManager web app. + * + * Based on the helloworld Node.js example in https://github.com/dapr/samples/blob/master/1.hello-world/app.js */ public class OrderManager { From b10a6fd039f6bad3521123960211cf122ad3a229 Mon Sep 17 00:00:00 2001 From: Artur Souza Date: Thu, 5 Dec 2019 18:30:13 -0800 Subject: [PATCH 6/9] Renames project to . Fixes examples. Adds proto files from release-0.3. --- .gitignore | 13 + .gitmodules | 3 - dapr | 1 - examples/pom.xml | 14 +- .../main/java/io/dapr/examples/Example.java | 50 +- .../java/io/dapr/examples/OrderManager.java | 111 +- pom.xml | 14 +- proto/dapr/dapr.pb.go | 1102 +++++++++++++++++ proto/dapr/dapr.proto | 106 ++ proto/daprclient/daprclient.pb.go | 818 ++++++++++++ proto/daprclient/daprclient.proto | 76 ++ {client => sdk}/pom.xml | 22 +- .../src/main/java/io/dapr/DaprClientGrpc.java | 0 .../main/java/io/dapr/DaprClientProtos.java | 292 +++++ .../src/main/java/io/dapr/DaprGrpc.java | 0 .../src/main/java/io/dapr/DaprProtos.java | 305 +++++ 16 files changed, 2833 insertions(+), 94 deletions(-) delete mode 160000 dapr create mode 100644 proto/dapr/dapr.pb.go create mode 100644 proto/dapr/dapr.proto create mode 100644 proto/daprclient/daprclient.pb.go create mode 100644 proto/daprclient/daprclient.proto rename {client => sdk}/pom.xml (86%) rename {client => sdk}/src/main/java/io/dapr/DaprClientGrpc.java (100%) rename {client => sdk}/src/main/java/io/dapr/DaprClientProtos.java (96%) rename {client => sdk}/src/main/java/io/dapr/DaprGrpc.java (100%) rename {client => sdk}/src/main/java/io/dapr/DaprProtos.java (97%) diff --git a/.gitignore b/.gitignore index a1c2a238a..e4b7f0fd4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,16 @@ +# IDE generated files and directories +*.iml +.idea/ + +# Output folders +**/target/ + # Compiled class file *.class +# Proto meta +*.pb.meta + # Log file *.log @@ -21,3 +31,6 @@ # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* + +# Some other generated folders/files +components/ diff --git a/.gitmodules b/.gitmodules index e917142a3..e69de29bb 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +0,0 @@ -[submodule "dapr"] - path = dapr - url = https://github.com/dapr/dapr.git diff --git a/dapr b/dapr deleted file mode 160000 index b0d582f1f..000000000 --- a/dapr +++ /dev/null @@ -1 +0,0 @@ -Subproject commit b0d582f1f1cece9100f80acb93bfca9e82c16aea diff --git a/examples/pom.xml b/examples/pom.xml index f5cdeb91e..4e8fb7d59 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -6,14 +6,14 @@ io.dapr - client-parent - 0.1.0-preview02 + dapr-sdk-parent + 0.3.0-alpha - examples + dapr-sdk-examples jar - 0.1.0-preview02 - dapr-client-examples + 0.3.0-alpha + dapr-sdk-examples @@ -23,8 +23,8 @@ io.dapr - client - 0.1.0-preview02 + dapr-sdk + 0.3.0-alpha diff --git a/examples/src/main/java/io/dapr/examples/Example.java b/examples/src/main/java/io/dapr/examples/Example.java index 244fc8c46..8b5e8a7f9 100644 --- a/examples/src/main/java/io/dapr/examples/Example.java +++ b/examples/src/main/java/io/dapr/examples/Example.java @@ -1,47 +1,43 @@ package io.dapr.examples; -import static java.lang.System.out; - import com.google.protobuf.Any; import com.google.protobuf.ByteString; - import io.dapr.DaprGrpc; -import io.dapr.DaprProtos.DeleteStateEnvelope; -import io.dapr.DaprProtos.GetStateEnvelope; -import io.dapr.DaprProtos.PublishEventEnvelope; -import io.dapr.DaprProtos.SaveStateEnvelope; -import io.dapr.DaprProtos.StateRequest; +import io.dapr.DaprGrpc.DaprBlockingStub; +import io.dapr.DaprProtos.*; +import io.grpc.ManagedChannel; import io.grpc.ManagedChannelBuilder; /** * Simple example, to run: - * - * - * mvn compile - * dapr run --grpc-port 50001 -- mvn - * exec:java -Dexec.mainClass=io.dapr.examples.Example - * + * mvn clean install + * dapr run --grpc-port 3000 -- mvn exec:java -pl=examples -Dexec.mainClass=io.dapr.examples.Example */ public class Example { public static void main(String[] args) { - var channel = ManagedChannelBuilder.forAddress("localhost", 50001).usePlaintext().build(); - var client = DaprGrpc.newBlockingStub(channel); + ManagedChannel channel = + ManagedChannelBuilder.forAddress("localhost", 3000).usePlaintext().build(); + DaprBlockingStub client = DaprGrpc.newBlockingStub(channel); - var data = Any.newBuilder().setValue(ByteString.copyFromUtf8("foo")).build(); + Any data = Any.newBuilder().setValue(ByteString.copyFromUtf8("foo")).build(); client.publishEvent(PublishEventEnvelope.newBuilder().setTopic("foo").setData(data).build()); - out.println("Published!"); + System.out.println("Published!"); - var key = "mykey"; - var req = StateRequest.newBuilder().setKey(key) - .setValue(Any.newBuilder().setValue(ByteString.copyFromUtf8("my value")).build()).build(); - var state = SaveStateEnvelope.newBuilder().addRequests(req).build(); + String key = "mykey"; + StateRequest req = StateRequest.newBuilder() + .setKey(key) + .setValue(Any.newBuilder().setValue(ByteString.copyFromUtf8("my value")).build()) + .build(); + SaveStateEnvelope state = SaveStateEnvelope.newBuilder() + .addRequests(req) + .build(); client.saveState(state); - out.println("Saved!"); + System.out.println("Saved!"); - var get = client.getState(GetStateEnvelope.newBuilder().setKey(key).build()); - out.println("Got: " + get.getData().getValue().toStringUtf8()); + GetStateResponseEnvelope get = client.getState(GetStateEnvelope.newBuilder().setKey(key).build()); + System.out.println("Got: " + get.getData().getValue().toStringUtf8()); client.deleteState(DeleteStateEnvelope.newBuilder().setKey(key).build()); - out.println("Deleted!"); + System.out.println("Deleted!"); } -} +} \ No newline at end of file diff --git a/examples/src/main/java/io/dapr/examples/OrderManager.java b/examples/src/main/java/io/dapr/examples/OrderManager.java index 662c84bc8..c54271093 100644 --- a/examples/src/main/java/io/dapr/examples/OrderManager.java +++ b/examples/src/main/java/io/dapr/examples/OrderManager.java @@ -1,55 +1,70 @@ package io.dapr.examples; +import com.sun.net.httpserver.HttpExchange; +import com.sun.net.httpserver.HttpServer; +import org.json.JSONArray; +import org.json.JSONObject; + +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; import java.net.InetSocketAddress; import java.net.URI; import java.net.http.HttpClient; -import java.net.http.HttpRequest; -import java.net.http.HttpResponse; import java.net.http.HttpClient.Redirect; import java.net.http.HttpClient.Version; +import java.net.http.HttpRequest; import java.net.http.HttpRequest.BodyPublishers; +import java.net.http.HttpResponse; import java.net.http.HttpResponse.BodyHandlers; import java.nio.charset.Charset; import java.time.Duration; import java.util.Optional; import java.util.concurrent.CompletableFuture; + import static java.lang.System.out; -import java.io.ByteArrayOutputStream; -import java.io.IOException; - -import org.json.JSONObject; - -import com.sun.net.httpserver.HttpServer; -import com.sun.net.httpserver.HttpExchange; - /** * OrderManager web app. * * Based on the helloworld Node.js example in https://github.com/dapr/samples/blob/master/1.hello-world/app.js + * + * To install jars into your local maven repo: + * mvn clean install + * + * To run (after step above): + * dapr run --app-id orderapp --app-port 3000 --port 3500 -- mvn exec:java -pl=examples -Dexec.mainClass=io.dapr.examples.OrderManager + * + * If this class changes, run this before running it again: + * mvn compile */ public class OrderManager { static HttpClient httpClient; public static void main(String[] args) throws IOException { - var httpPort = 8080; - var daprPort = Optional.ofNullable(System.getenv("DAPR_HTTP_PORT")).orElse("3500"); - var stateUrl = String.format("http://localhost:%s/v1.0/state", daprPort); - var httpServer = HttpServer.create(new InetSocketAddress(httpPort), 0); + int httpPort = 3000; + String daprPort = Optional.ofNullable(System.getenv("DAPR_HTTP_PORT")).orElse("3500"); + String stateUrl = String.format("http://localhost:%s/v1.0/state", daprPort); + HttpServer httpServer = HttpServer.create(new InetSocketAddress(httpPort), 0); httpClient = HttpClient.newBuilder().version(Version.HTTP_1_1).followRedirects(Redirect.NORMAL) .connectTimeout(Duration.ofSeconds(2)).build(); httpServer.createContext("/order").setHandler(e -> { + out.println("Fetching order!"); fetch(stateUrl + "/order").thenAccept(response -> { - var resCode = response.statusCode() == 200 ? 200 : 500; - var body = response.statusCode() == 200 ? response.body() : "Could not get state."; + int resCode = response.statusCode() == 200 ? 200 : 500; + String body = response.statusCode() == 200 ? response.body() : "Could not get state."; try { e.sendResponseHeaders(resCode, body.getBytes().length); - try (var os = e.getResponseBody()) { + OutputStream os = e.getResponseBody(); + try { os.write(body.getBytes()); + } finally { + os.close(); } } catch (IOException ioerror) { out.println(ioerror); @@ -58,27 +73,39 @@ public class OrderManager { }); httpServer.createContext("/neworder").setHandler(e -> { - var json = readBody(e); - var jsonObject = new JSONObject(json); - var orderId = jsonObject.getString("orderId"); - out.printf("Got a new order! Order ID: %s", orderId); + try { + out.println("Received new order ..."); + String json = readBody(e); + JSONObject jsonObject = new JSONObject(json); + JSONObject data = jsonObject.getJSONObject("data"); + String orderId = data.getString("orderId"); + out.printf("Got a new order! Order ID: %s\n", orderId); - var state = new JSONObject(); - state.put("key", "order"); - state.put("value", jsonObject); + JSONObject item = new JSONObject(); + item.put("key", "order"); + item.put("value", data); + JSONArray state = new JSONArray(); + state.put(item); + out.printf("Writing to state: %s\n", state.toString()); - post(stateUrl + "/neworder", state.toString()).thenAccept(response -> { - var resCode = response.statusCode() == 200 ? 200 : 500; - var body = response.statusCode() == 200 ? "" : "Failed to persist state."; - try { - e.sendResponseHeaders(resCode, body.getBytes().length); - try (var os = e.getResponseBody()) { - os.write(body.getBytes()); + post(stateUrl, state.toString()).thenAccept(response -> { + int resCode = response.statusCode() == 200 ? 200 : 500; + String body = response.body(); + try { + e.sendResponseHeaders(resCode, body.getBytes().length); + OutputStream os = e.getResponseBody(); + try { + os.write(body.getBytes()); + } finally { + os.close(); + } + } catch (IOException ioerror) { + out.println(ioerror); } - } catch (IOException ioerror) { - out.println(ioerror); - } - }); + }); + } catch (IOException ioerror) { + out.println(ioerror); + } }); httpServer.start(); @@ -86,28 +113,30 @@ public class OrderManager { } private static CompletableFuture> fetch(String url) { - var request = HttpRequest.newBuilder().uri(URI.create(url)).build(); + HttpRequest request = HttpRequest.newBuilder().uri(URI.create(url)).build(); return httpClient.sendAsync(request, BodyHandlers.ofString()); } private static CompletableFuture> post(String url, String body) { - var request = HttpRequest.newBuilder().uri(URI.create(url)) + HttpRequest request = HttpRequest.newBuilder().uri(URI.create(url)) .header("Content-Type", "application/json; charset=UTF-8").POST(BodyPublishers.ofString(body)).build(); return httpClient.sendAsync(request, BodyHandlers.ofString()); } - private static String readBody(HttpExchange t) { + private static String readBody(HttpExchange t) throws IOException { // retrieve the request json data - var is = t.getRequestBody(); - var bos = new ByteArrayOutputStream(); + InputStream is = t.getRequestBody(); + ByteArrayOutputStream bos = new ByteArrayOutputStream(); byte[] buffer = new byte[1024]; int len; - try (bos) { + try { while ((len = is.read(buffer)) > 0) bos.write(buffer, 0, len); } catch (IOException e) { e.printStackTrace(); + } finally { + bos.close(); } return new String(bos.toByteArray(), Charset.forName("UTF-8")); } diff --git a/pom.xml b/pom.xml index bc69cc270..fe5af2040 100644 --- a/pom.xml +++ b/pom.xml @@ -5,11 +5,11 @@ 4.0.0 io.dapr - client-parent + dapr-sdk-parent pom - 0.1.0-preview02 - dapr-client-parent - gRPC client for Dapr. + 0.3.0-alpha + dapr-sdk-parent + SDK for Dapr. https://dapr.io @@ -20,8 +20,8 @@ 1.6.2 3.1.1 1.8 - 11 - 11 + 8 + 8 @@ -77,7 +77,7 @@ - client + sdk examples diff --git a/proto/dapr/dapr.pb.go b/proto/dapr/dapr.pb.go new file mode 100644 index 000000000..3a118c6b6 --- /dev/null +++ b/proto/dapr/dapr.pb.go @@ -0,0 +1,1102 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: dapr.proto + +package dapr + +import ( + context "context" + fmt "fmt" + math "math" + + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type InvokeServiceResponseEnvelope struct { + Data *any.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InvokeServiceResponseEnvelope) Reset() { *m = InvokeServiceResponseEnvelope{} } +func (m *InvokeServiceResponseEnvelope) String() string { return proto.CompactTextString(m) } +func (*InvokeServiceResponseEnvelope) ProtoMessage() {} +func (*InvokeServiceResponseEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{0} +} + +func (m *InvokeServiceResponseEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InvokeServiceResponseEnvelope.Unmarshal(m, b) +} +func (m *InvokeServiceResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InvokeServiceResponseEnvelope.Marshal(b, m, deterministic) +} +func (m *InvokeServiceResponseEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_InvokeServiceResponseEnvelope.Merge(m, src) +} +func (m *InvokeServiceResponseEnvelope) XXX_Size() int { + return xxx_messageInfo_InvokeServiceResponseEnvelope.Size(m) +} +func (m *InvokeServiceResponseEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_InvokeServiceResponseEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_InvokeServiceResponseEnvelope proto.InternalMessageInfo + +func (m *InvokeServiceResponseEnvelope) GetData() *any.Any { + if m != nil { + return m.Data + } + return nil +} + +func (m *InvokeServiceResponseEnvelope) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +type DeleteStateEnvelope struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` + Options *StateOptions `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *DeleteStateEnvelope) Reset() { *m = DeleteStateEnvelope{} } +func (m *DeleteStateEnvelope) String() string { return proto.CompactTextString(m) } +func (*DeleteStateEnvelope) ProtoMessage() {} +func (*DeleteStateEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{1} +} + +func (m *DeleteStateEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DeleteStateEnvelope.Unmarshal(m, b) +} +func (m *DeleteStateEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DeleteStateEnvelope.Marshal(b, m, deterministic) +} +func (m *DeleteStateEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_DeleteStateEnvelope.Merge(m, src) +} +func (m *DeleteStateEnvelope) XXX_Size() int { + return xxx_messageInfo_DeleteStateEnvelope.Size(m) +} +func (m *DeleteStateEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_DeleteStateEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_DeleteStateEnvelope proto.InternalMessageInfo + +func (m *DeleteStateEnvelope) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *DeleteStateEnvelope) GetEtag() string { + if m != nil { + return m.Etag + } + return "" +} + +func (m *DeleteStateEnvelope) GetOptions() *StateOptions { + if m != nil { + return m.Options + } + return nil +} + +type SaveStateEnvelope struct { + Requests []*StateRequest `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *SaveStateEnvelope) Reset() { *m = SaveStateEnvelope{} } +func (m *SaveStateEnvelope) String() string { return proto.CompactTextString(m) } +func (*SaveStateEnvelope) ProtoMessage() {} +func (*SaveStateEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{2} +} + +func (m *SaveStateEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_SaveStateEnvelope.Unmarshal(m, b) +} +func (m *SaveStateEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_SaveStateEnvelope.Marshal(b, m, deterministic) +} +func (m *SaveStateEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_SaveStateEnvelope.Merge(m, src) +} +func (m *SaveStateEnvelope) XXX_Size() int { + return xxx_messageInfo_SaveStateEnvelope.Size(m) +} +func (m *SaveStateEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_SaveStateEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_SaveStateEnvelope proto.InternalMessageInfo + +func (m *SaveStateEnvelope) GetRequests() []*StateRequest { + if m != nil { + return m.Requests + } + return nil +} + +type GetStateEnvelope struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Consistency string `protobuf:"bytes,2,opt,name=consistency,proto3" json:"consistency,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetStateEnvelope) Reset() { *m = GetStateEnvelope{} } +func (m *GetStateEnvelope) String() string { return proto.CompactTextString(m) } +func (*GetStateEnvelope) ProtoMessage() {} +func (*GetStateEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{3} +} + +func (m *GetStateEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetStateEnvelope.Unmarshal(m, b) +} +func (m *GetStateEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetStateEnvelope.Marshal(b, m, deterministic) +} +func (m *GetStateEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStateEnvelope.Merge(m, src) +} +func (m *GetStateEnvelope) XXX_Size() int { + return xxx_messageInfo_GetStateEnvelope.Size(m) +} +func (m *GetStateEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_GetStateEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStateEnvelope proto.InternalMessageInfo + +func (m *GetStateEnvelope) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *GetStateEnvelope) GetConsistency() string { + if m != nil { + return m.Consistency + } + return "" +} + +type GetStateResponseEnvelope struct { + Data *any.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetStateResponseEnvelope) Reset() { *m = GetStateResponseEnvelope{} } +func (m *GetStateResponseEnvelope) String() string { return proto.CompactTextString(m) } +func (*GetStateResponseEnvelope) ProtoMessage() {} +func (*GetStateResponseEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{4} +} + +func (m *GetStateResponseEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetStateResponseEnvelope.Unmarshal(m, b) +} +func (m *GetStateResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetStateResponseEnvelope.Marshal(b, m, deterministic) +} +func (m *GetStateResponseEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetStateResponseEnvelope.Merge(m, src) +} +func (m *GetStateResponseEnvelope) XXX_Size() int { + return xxx_messageInfo_GetStateResponseEnvelope.Size(m) +} +func (m *GetStateResponseEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_GetStateResponseEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_GetStateResponseEnvelope proto.InternalMessageInfo + +func (m *GetStateResponseEnvelope) GetData() *any.Any { + if m != nil { + return m.Data + } + return nil +} + +func (m *GetStateResponseEnvelope) GetEtag() string { + if m != nil { + return m.Etag + } + return "" +} + +type InvokeBindingEnvelope struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Data *any.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InvokeBindingEnvelope) Reset() { *m = InvokeBindingEnvelope{} } +func (m *InvokeBindingEnvelope) String() string { return proto.CompactTextString(m) } +func (*InvokeBindingEnvelope) ProtoMessage() {} +func (*InvokeBindingEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{5} +} + +func (m *InvokeBindingEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InvokeBindingEnvelope.Unmarshal(m, b) +} +func (m *InvokeBindingEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InvokeBindingEnvelope.Marshal(b, m, deterministic) +} +func (m *InvokeBindingEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_InvokeBindingEnvelope.Merge(m, src) +} +func (m *InvokeBindingEnvelope) XXX_Size() int { + return xxx_messageInfo_InvokeBindingEnvelope.Size(m) +} +func (m *InvokeBindingEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_InvokeBindingEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_InvokeBindingEnvelope proto.InternalMessageInfo + +func (m *InvokeBindingEnvelope) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *InvokeBindingEnvelope) GetData() *any.Any { + if m != nil { + return m.Data + } + return nil +} + +func (m *InvokeBindingEnvelope) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +type InvokeServiceEnvelope struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Method string `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"` + Data *any.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` + Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InvokeServiceEnvelope) Reset() { *m = InvokeServiceEnvelope{} } +func (m *InvokeServiceEnvelope) String() string { return proto.CompactTextString(m) } +func (*InvokeServiceEnvelope) ProtoMessage() {} +func (*InvokeServiceEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{6} +} + +func (m *InvokeServiceEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InvokeServiceEnvelope.Unmarshal(m, b) +} +func (m *InvokeServiceEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InvokeServiceEnvelope.Marshal(b, m, deterministic) +} +func (m *InvokeServiceEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_InvokeServiceEnvelope.Merge(m, src) +} +func (m *InvokeServiceEnvelope) XXX_Size() int { + return xxx_messageInfo_InvokeServiceEnvelope.Size(m) +} +func (m *InvokeServiceEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_InvokeServiceEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_InvokeServiceEnvelope proto.InternalMessageInfo + +func (m *InvokeServiceEnvelope) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *InvokeServiceEnvelope) GetMethod() string { + if m != nil { + return m.Method + } + return "" +} + +func (m *InvokeServiceEnvelope) GetData() *any.Any { + if m != nil { + return m.Data + } + return nil +} + +func (m *InvokeServiceEnvelope) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +type PublishEventEnvelope struct { + Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` + Data *any.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *PublishEventEnvelope) Reset() { *m = PublishEventEnvelope{} } +func (m *PublishEventEnvelope) String() string { return proto.CompactTextString(m) } +func (*PublishEventEnvelope) ProtoMessage() {} +func (*PublishEventEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{7} +} + +func (m *PublishEventEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_PublishEventEnvelope.Unmarshal(m, b) +} +func (m *PublishEventEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_PublishEventEnvelope.Marshal(b, m, deterministic) +} +func (m *PublishEventEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_PublishEventEnvelope.Merge(m, src) +} +func (m *PublishEventEnvelope) XXX_Size() int { + return xxx_messageInfo_PublishEventEnvelope.Size(m) +} +func (m *PublishEventEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_PublishEventEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_PublishEventEnvelope proto.InternalMessageInfo + +func (m *PublishEventEnvelope) GetTopic() string { + if m != nil { + return m.Topic + } + return "" +} + +func (m *PublishEventEnvelope) GetData() *any.Any { + if m != nil { + return m.Data + } + return nil +} + +type State struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value *any.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` + Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Options *StateOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *State) Reset() { *m = State{} } +func (m *State) String() string { return proto.CompactTextString(m) } +func (*State) ProtoMessage() {} +func (*State) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{8} +} + +func (m *State) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_State.Unmarshal(m, b) +} +func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_State.Marshal(b, m, deterministic) +} +func (m *State) XXX_Merge(src proto.Message) { + xxx_messageInfo_State.Merge(m, src) +} +func (m *State) XXX_Size() int { + return xxx_messageInfo_State.Size(m) +} +func (m *State) XXX_DiscardUnknown() { + xxx_messageInfo_State.DiscardUnknown(m) +} + +var xxx_messageInfo_State proto.InternalMessageInfo + +func (m *State) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *State) GetValue() *any.Any { + if m != nil { + return m.Value + } + return nil +} + +func (m *State) GetEtag() string { + if m != nil { + return m.Etag + } + return "" +} + +func (m *State) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *State) GetOptions() *StateOptions { + if m != nil { + return m.Options + } + return nil +} + +type StateOptions struct { + Concurrency string `protobuf:"bytes,1,opt,name=concurrency,proto3" json:"concurrency,omitempty"` + Consistency string `protobuf:"bytes,2,opt,name=consistency,proto3" json:"consistency,omitempty"` + RetryPolicy *RetryPolicy `protobuf:"bytes,3,opt,name=retryPolicy,proto3" json:"retryPolicy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StateOptions) Reset() { *m = StateOptions{} } +func (m *StateOptions) String() string { return proto.CompactTextString(m) } +func (*StateOptions) ProtoMessage() {} +func (*StateOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{9} +} + +func (m *StateOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StateOptions.Unmarshal(m, b) +} +func (m *StateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StateOptions.Marshal(b, m, deterministic) +} +func (m *StateOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateOptions.Merge(m, src) +} +func (m *StateOptions) XXX_Size() int { + return xxx_messageInfo_StateOptions.Size(m) +} +func (m *StateOptions) XXX_DiscardUnknown() { + xxx_messageInfo_StateOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_StateOptions proto.InternalMessageInfo + +func (m *StateOptions) GetConcurrency() string { + if m != nil { + return m.Concurrency + } + return "" +} + +func (m *StateOptions) GetConsistency() string { + if m != nil { + return m.Consistency + } + return "" +} + +func (m *StateOptions) GetRetryPolicy() *RetryPolicy { + if m != nil { + return m.RetryPolicy + } + return nil +} + +type RetryPolicy struct { + Threshold int32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` + Pattern string `protobuf:"bytes,2,opt,name=pattern,proto3" json:"pattern,omitempty"` + Interval *duration.Duration `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RetryPolicy) Reset() { *m = RetryPolicy{} } +func (m *RetryPolicy) String() string { return proto.CompactTextString(m) } +func (*RetryPolicy) ProtoMessage() {} +func (*RetryPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{10} +} + +func (m *RetryPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetryPolicy.Unmarshal(m, b) +} +func (m *RetryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetryPolicy.Marshal(b, m, deterministic) +} +func (m *RetryPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetryPolicy.Merge(m, src) +} +func (m *RetryPolicy) XXX_Size() int { + return xxx_messageInfo_RetryPolicy.Size(m) +} +func (m *RetryPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_RetryPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_RetryPolicy proto.InternalMessageInfo + +func (m *RetryPolicy) GetThreshold() int32 { + if m != nil { + return m.Threshold + } + return 0 +} + +func (m *RetryPolicy) GetPattern() string { + if m != nil { + return m.Pattern + } + return "" +} + +func (m *RetryPolicy) GetInterval() *duration.Duration { + if m != nil { + return m.Interval + } + return nil +} + +type StateRequest struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value *any.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` + Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Options *StateRequestOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StateRequest) Reset() { *m = StateRequest{} } +func (m *StateRequest) String() string { return proto.CompactTextString(m) } +func (*StateRequest) ProtoMessage() {} +func (*StateRequest) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{11} +} + +func (m *StateRequest) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StateRequest.Unmarshal(m, b) +} +func (m *StateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StateRequest.Marshal(b, m, deterministic) +} +func (m *StateRequest) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateRequest.Merge(m, src) +} +func (m *StateRequest) XXX_Size() int { + return xxx_messageInfo_StateRequest.Size(m) +} +func (m *StateRequest) XXX_DiscardUnknown() { + xxx_messageInfo_StateRequest.DiscardUnknown(m) +} + +var xxx_messageInfo_StateRequest proto.InternalMessageInfo + +func (m *StateRequest) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *StateRequest) GetValue() *any.Any { + if m != nil { + return m.Value + } + return nil +} + +func (m *StateRequest) GetEtag() string { + if m != nil { + return m.Etag + } + return "" +} + +func (m *StateRequest) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *StateRequest) GetOptions() *StateRequestOptions { + if m != nil { + return m.Options + } + return nil +} + +type StateRequestOptions struct { + Concurrency string `protobuf:"bytes,1,opt,name=concurrency,proto3" json:"concurrency,omitempty"` + Consistency string `protobuf:"bytes,2,opt,name=consistency,proto3" json:"consistency,omitempty"` + RetryPolicy *StateRetryPolicy `protobuf:"bytes,3,opt,name=retryPolicy,proto3" json:"retryPolicy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StateRequestOptions) Reset() { *m = StateRequestOptions{} } +func (m *StateRequestOptions) String() string { return proto.CompactTextString(m) } +func (*StateRequestOptions) ProtoMessage() {} +func (*StateRequestOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{12} +} + +func (m *StateRequestOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StateRequestOptions.Unmarshal(m, b) +} +func (m *StateRequestOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StateRequestOptions.Marshal(b, m, deterministic) +} +func (m *StateRequestOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateRequestOptions.Merge(m, src) +} +func (m *StateRequestOptions) XXX_Size() int { + return xxx_messageInfo_StateRequestOptions.Size(m) +} +func (m *StateRequestOptions) XXX_DiscardUnknown() { + xxx_messageInfo_StateRequestOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_StateRequestOptions proto.InternalMessageInfo + +func (m *StateRequestOptions) GetConcurrency() string { + if m != nil { + return m.Concurrency + } + return "" +} + +func (m *StateRequestOptions) GetConsistency() string { + if m != nil { + return m.Consistency + } + return "" +} + +func (m *StateRequestOptions) GetRetryPolicy() *StateRetryPolicy { + if m != nil { + return m.RetryPolicy + } + return nil +} + +type StateRetryPolicy struct { + Threshold int32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` + Pattern string `protobuf:"bytes,2,opt,name=pattern,proto3" json:"pattern,omitempty"` + Interval *duration.Duration `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StateRetryPolicy) Reset() { *m = StateRetryPolicy{} } +func (m *StateRetryPolicy) String() string { return proto.CompactTextString(m) } +func (*StateRetryPolicy) ProtoMessage() {} +func (*StateRetryPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_0b1c5554fb3d73bc, []int{13} +} + +func (m *StateRetryPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StateRetryPolicy.Unmarshal(m, b) +} +func (m *StateRetryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StateRetryPolicy.Marshal(b, m, deterministic) +} +func (m *StateRetryPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateRetryPolicy.Merge(m, src) +} +func (m *StateRetryPolicy) XXX_Size() int { + return xxx_messageInfo_StateRetryPolicy.Size(m) +} +func (m *StateRetryPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_StateRetryPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_StateRetryPolicy proto.InternalMessageInfo + +func (m *StateRetryPolicy) GetThreshold() int32 { + if m != nil { + return m.Threshold + } + return 0 +} + +func (m *StateRetryPolicy) GetPattern() string { + if m != nil { + return m.Pattern + } + return "" +} + +func (m *StateRetryPolicy) GetInterval() *duration.Duration { + if m != nil { + return m.Interval + } + return nil +} + +func init() { + proto.RegisterType((*InvokeServiceResponseEnvelope)(nil), "dapr.InvokeServiceResponseEnvelope") + proto.RegisterMapType((map[string]string)(nil), "dapr.InvokeServiceResponseEnvelope.MetadataEntry") + proto.RegisterType((*DeleteStateEnvelope)(nil), "dapr.DeleteStateEnvelope") + proto.RegisterType((*SaveStateEnvelope)(nil), "dapr.SaveStateEnvelope") + proto.RegisterType((*GetStateEnvelope)(nil), "dapr.GetStateEnvelope") + proto.RegisterType((*GetStateResponseEnvelope)(nil), "dapr.GetStateResponseEnvelope") + proto.RegisterType((*InvokeBindingEnvelope)(nil), "dapr.InvokeBindingEnvelope") + proto.RegisterMapType((map[string]string)(nil), "dapr.InvokeBindingEnvelope.MetadataEntry") + proto.RegisterType((*InvokeServiceEnvelope)(nil), "dapr.InvokeServiceEnvelope") + proto.RegisterMapType((map[string]string)(nil), "dapr.InvokeServiceEnvelope.MetadataEntry") + proto.RegisterType((*PublishEventEnvelope)(nil), "dapr.PublishEventEnvelope") + proto.RegisterType((*State)(nil), "dapr.State") + proto.RegisterMapType((map[string]string)(nil), "dapr.State.MetadataEntry") + proto.RegisterType((*StateOptions)(nil), "dapr.StateOptions") + proto.RegisterType((*RetryPolicy)(nil), "dapr.RetryPolicy") + proto.RegisterType((*StateRequest)(nil), "dapr.StateRequest") + proto.RegisterMapType((map[string]string)(nil), "dapr.StateRequest.MetadataEntry") + proto.RegisterType((*StateRequestOptions)(nil), "dapr.StateRequestOptions") + proto.RegisterType((*StateRetryPolicy)(nil), "dapr.StateRetryPolicy") +} + +func init() { proto.RegisterFile("dapr.proto", fileDescriptor_0b1c5554fb3d73bc) } + +var fileDescriptor_0b1c5554fb3d73bc = []byte{ + // 755 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0x4f, 0x6f, 0xd3, 0x4a, + 0x10, 0xaf, 0xe3, 0xa4, 0x7f, 0x26, 0xed, 0x53, 0xbb, 0xcd, 0xeb, 0x4b, 0xdc, 0xf7, 0xaa, 0xc8, + 0xef, 0x52, 0x10, 0x72, 0x45, 0x2b, 0xa4, 0x0a, 0x10, 0x12, 0x25, 0x29, 0xe2, 0x50, 0x51, 0x39, + 0x12, 0xe2, 0xba, 0x8d, 0x97, 0xc4, 0xaa, 0xb3, 0x6b, 0xd6, 0x1b, 0x4b, 0x96, 0xb8, 0x70, 0xe2, + 0x8a, 0xc4, 0x47, 0xe1, 0xb3, 0x70, 0xe0, 0x43, 0xf0, 0x09, 0xb8, 0xa0, 0xac, 0xd7, 0xae, 0x63, + 0x3b, 0x49, 0x51, 0x5b, 0x6e, 0xde, 0x99, 0xf1, 0x6f, 0xe6, 0x37, 0xfb, 0x9b, 0xdd, 0x05, 0x70, + 0xb0, 0xcf, 0x2d, 0x9f, 0x33, 0xc1, 0x50, 0x75, 0xf2, 0x6d, 0xb4, 0x06, 0x8c, 0x0d, 0x3c, 0x72, + 0x20, 0x6d, 0x17, 0xe3, 0x77, 0x07, 0x98, 0x46, 0x71, 0x80, 0xb1, 0x9b, 0x77, 0x91, 0x91, 0x2f, + 0x12, 0xe7, 0x5e, 0xde, 0xe9, 0x8c, 0x39, 0x16, 0x2e, 0xa3, 0xb1, 0xdf, 0xfc, 0xa6, 0xc1, 0x7f, + 0xaf, 0x68, 0xc8, 0x2e, 0x49, 0x8f, 0xf0, 0xd0, 0xed, 0x13, 0x9b, 0x04, 0x3e, 0xa3, 0x01, 0xe9, + 0xd2, 0x90, 0x78, 0xcc, 0x27, 0x68, 0x1f, 0xaa, 0x0e, 0x16, 0xb8, 0xa9, 0xb5, 0xb5, 0xfd, 0xfa, + 0x61, 0xc3, 0x8a, 0x01, 0xad, 0x04, 0xd0, 0x7a, 0x4e, 0x23, 0x5b, 0x46, 0xa0, 0x33, 0x58, 0x1d, + 0x11, 0x81, 0x65, 0x74, 0xa5, 0xad, 0xef, 0xd7, 0x0f, 0x1f, 0x5a, 0x92, 0xc8, 0xdc, 0x04, 0xd6, + 0x99, 0xfa, 0xa7, 0x4b, 0x05, 0x8f, 0xec, 0x14, 0xc2, 0x78, 0x02, 0x1b, 0x53, 0x2e, 0xb4, 0x09, + 0xfa, 0x25, 0x89, 0x64, 0x21, 0x6b, 0xf6, 0xe4, 0x13, 0x35, 0xa0, 0x16, 0x62, 0x6f, 0x4c, 0x9a, + 0x15, 0x69, 0x8b, 0x17, 0x8f, 0x2b, 0xc7, 0x9a, 0xe9, 0xc2, 0x76, 0x87, 0x78, 0x44, 0x90, 0x9e, + 0xc0, 0xe2, 0x8a, 0x4c, 0x11, 0x02, 0x41, 0x95, 0x08, 0x3c, 0x50, 0x08, 0xf2, 0x1b, 0x3d, 0x80, + 0x15, 0xe6, 0x4f, 0x9a, 0x14, 0x34, 0x75, 0xc9, 0x1a, 0xc5, 0x3c, 0x24, 0xd6, 0xeb, 0xd8, 0x63, + 0x27, 0x21, 0xe6, 0x0b, 0xd8, 0xea, 0xe1, 0x30, 0x97, 0xc8, 0x82, 0x55, 0x4e, 0xde, 0x8f, 0x49, + 0x20, 0x82, 0xa6, 0x26, 0x7b, 0x91, 0xc5, 0xb0, 0x63, 0x97, 0x9d, 0xc6, 0x98, 0xa7, 0xb0, 0xf9, + 0x92, 0x88, 0x45, 0xc5, 0xb6, 0xa1, 0xde, 0x67, 0x34, 0x70, 0x03, 0x41, 0x68, 0x3f, 0x52, 0x35, + 0x67, 0x4d, 0xe6, 0x5b, 0x68, 0x26, 0x38, 0x37, 0xd8, 0xc9, 0x92, 0xa6, 0x98, 0xdf, 0x35, 0xf8, + 0x3b, 0xde, 0xc8, 0x13, 0x97, 0x3a, 0x2e, 0x1d, 0xa4, 0xb8, 0x08, 0xaa, 0x14, 0x8f, 0x88, 0x2a, + 0x54, 0x7e, 0xa7, 0xb9, 0x2a, 0x0b, 0x73, 0x75, 0x33, 0xaa, 0xd1, 0x65, 0xa7, 0xee, 0x65, 0x55, + 0x93, 0x4b, 0x76, 0x37, 0x6a, 0xf9, 0x91, 0x72, 0x53, 0x22, 0x4d, 0xb9, 0xfd, 0x05, 0x15, 0xd7, + 0x51, 0x20, 0x15, 0xd7, 0x41, 0x3b, 0xb0, 0x3c, 0x22, 0x62, 0xc8, 0x1c, 0x05, 0xa2, 0x56, 0x29, + 0x5f, 0xfd, 0xb7, 0xf8, 0x56, 0x8b, 0x7c, 0x73, 0x05, 0xdc, 0x0d, 0xdf, 0x37, 0xd0, 0x38, 0x1f, + 0x5f, 0x78, 0x6e, 0x30, 0xec, 0x86, 0x84, 0x8a, 0x94, 0x6d, 0x03, 0x6a, 0x82, 0xf9, 0x6e, 0x5f, + 0xa1, 0xc4, 0x8b, 0xeb, 0xef, 0xa5, 0xf9, 0x53, 0x83, 0x9a, 0xd4, 0x5e, 0x49, 0x35, 0xf7, 0xb3, + 0xd5, 0xcc, 0x82, 0x89, 0x43, 0x52, 0xfd, 0xe9, 0x99, 0xa1, 0x7c, 0x54, 0xe8, 0x5b, 0x2b, 0x33, + 0x51, 0xb3, 0xfa, 0x94, 0x9d, 0xe5, 0xda, 0xc2, 0x59, 0xbe, 0x59, 0x57, 0x3f, 0x69, 0xb0, 0x9e, + 0x85, 0x55, 0xe3, 0xda, 0x1f, 0x73, 0x2e, 0xc7, 0x55, 0x4b, 0xc7, 0x35, 0x31, 0x2d, 0x1e, 0x68, + 0x74, 0x04, 0x75, 0x4e, 0x04, 0x8f, 0xce, 0x99, 0xe7, 0xf6, 0x23, 0xa5, 0xaf, 0xad, 0x98, 0x83, + 0x7d, 0xe5, 0xb0, 0xb3, 0x51, 0xe6, 0x07, 0xa8, 0x67, 0x7c, 0xe8, 0x5f, 0x58, 0x13, 0x43, 0x4e, + 0x82, 0x21, 0xf3, 0x62, 0x2d, 0xd7, 0xec, 0x2b, 0x03, 0x6a, 0xc2, 0x8a, 0x8f, 0x85, 0x20, 0x9c, + 0xaa, 0xfc, 0xc9, 0x72, 0xd2, 0x72, 0x97, 0x0a, 0xc2, 0x43, 0xec, 0xa9, 0xc4, 0xad, 0xc2, 0xae, + 0x75, 0xd4, 0x7d, 0x62, 0xa7, 0xa1, 0xe6, 0xe7, 0x8a, 0xea, 0x83, 0x3a, 0xe6, 0xee, 0x40, 0x0c, + 0x4f, 0x0b, 0x62, 0x68, 0x17, 0x8f, 0xd7, 0x99, 0x9a, 0x38, 0xca, 0x6b, 0xa2, 0x55, 0xfc, 0xf9, + 0x76, 0xa5, 0xf1, 0x45, 0x83, 0xed, 0x12, 0xf4, 0x5b, 0x51, 0xc8, 0x71, 0x99, 0x42, 0x76, 0xa6, + 0x18, 0xcd, 0x90, 0xc9, 0x47, 0x0d, 0x36, 0xf3, 0x11, 0x7f, 0x58, 0x2c, 0x87, 0x5f, 0x75, 0xa8, + 0x76, 0xb0, 0xcf, 0x51, 0x07, 0xd6, 0xb3, 0x67, 0x12, 0x32, 0x62, 0x06, 0x65, 0xe7, 0x94, 0xb1, + 0x53, 0x40, 0xee, 0x4e, 0xde, 0x3c, 0xe6, 0x12, 0xea, 0xc1, 0xc6, 0xd4, 0x39, 0x8a, 0x76, 0xe7, + 0x1c, 0xae, 0xc6, 0xff, 0xd7, 0x78, 0x9f, 0x98, 0x4b, 0xe8, 0x34, 0x01, 0x55, 0x97, 0xd1, 0x34, + 0x68, 0xee, 0x86, 0x9a, 0x53, 0x5c, 0x07, 0x56, 0x93, 0xcb, 0x19, 0xa9, 0x0d, 0xca, 0x5f, 0xfa, + 0xc6, 0xde, 0xb4, 0xbd, 0xa4, 0x9a, 0x67, 0xb0, 0x96, 0xbe, 0x37, 0xd0, 0x3f, 0x6a, 0x9f, 0xf3, + 0x0f, 0x90, 0x39, 0x55, 0x9c, 0x40, 0x3d, 0xf3, 0x34, 0x42, 0x4a, 0xfb, 0x25, 0xaf, 0xa5, 0xd9, + 0x18, 0x17, 0xcb, 0xd2, 0x72, 0xf4, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x72, 0x4a, 0x56, 0x93, 0xa9, + 0x0a, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// DaprClient is the client API for Dapr service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type DaprClient interface { + PublishEvent(ctx context.Context, in *PublishEventEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) + InvokeService(ctx context.Context, in *InvokeServiceEnvelope, opts ...grpc.CallOption) (*InvokeServiceResponseEnvelope, error) + InvokeBinding(ctx context.Context, in *InvokeBindingEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) + GetState(ctx context.Context, in *GetStateEnvelope, opts ...grpc.CallOption) (*GetStateResponseEnvelope, error) + SaveState(ctx context.Context, in *SaveStateEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) + DeleteState(ctx context.Context, in *DeleteStateEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) +} + +type daprClient struct { + cc *grpc.ClientConn +} + +func NewDaprClient(cc *grpc.ClientConn) DaprClient { + return &daprClient{cc} +} + +func (c *daprClient) PublishEvent(ctx context.Context, in *PublishEventEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/dapr.Dapr/PublishEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClient) InvokeService(ctx context.Context, in *InvokeServiceEnvelope, opts ...grpc.CallOption) (*InvokeServiceResponseEnvelope, error) { + out := new(InvokeServiceResponseEnvelope) + err := c.cc.Invoke(ctx, "/dapr.Dapr/InvokeService", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClient) InvokeBinding(ctx context.Context, in *InvokeBindingEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/dapr.Dapr/InvokeBinding", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClient) GetState(ctx context.Context, in *GetStateEnvelope, opts ...grpc.CallOption) (*GetStateResponseEnvelope, error) { + out := new(GetStateResponseEnvelope) + err := c.cc.Invoke(ctx, "/dapr.Dapr/GetState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClient) SaveState(ctx context.Context, in *SaveStateEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/dapr.Dapr/SaveState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClient) DeleteState(ctx context.Context, in *DeleteStateEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/dapr.Dapr/DeleteState", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DaprServer is the server API for Dapr service. +type DaprServer interface { + PublishEvent(context.Context, *PublishEventEnvelope) (*empty.Empty, error) + InvokeService(context.Context, *InvokeServiceEnvelope) (*InvokeServiceResponseEnvelope, error) + InvokeBinding(context.Context, *InvokeBindingEnvelope) (*empty.Empty, error) + GetState(context.Context, *GetStateEnvelope) (*GetStateResponseEnvelope, error) + SaveState(context.Context, *SaveStateEnvelope) (*empty.Empty, error) + DeleteState(context.Context, *DeleteStateEnvelope) (*empty.Empty, error) +} + +func RegisterDaprServer(s *grpc.Server, srv DaprServer) { + s.RegisterService(&_Dapr_serviceDesc, srv) +} + +func _Dapr_PublishEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(PublishEventEnvelope) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).PublishEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.Dapr/PublishEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).PublishEvent(ctx, req.(*PublishEventEnvelope)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dapr_InvokeService_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvokeServiceEnvelope) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).InvokeService(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.Dapr/InvokeService", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).InvokeService(ctx, req.(*InvokeServiceEnvelope)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dapr_InvokeBinding_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvokeBindingEnvelope) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).InvokeBinding(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.Dapr/InvokeBinding", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).InvokeBinding(ctx, req.(*InvokeBindingEnvelope)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dapr_GetState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetStateEnvelope) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).GetState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.Dapr/GetState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).GetState(ctx, req.(*GetStateEnvelope)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dapr_SaveState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(SaveStateEnvelope) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).SaveState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.Dapr/SaveState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).SaveState(ctx, req.(*SaveStateEnvelope)) + } + return interceptor(ctx, in, info, handler) +} + +func _Dapr_DeleteState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(DeleteStateEnvelope) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprServer).DeleteState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/dapr.Dapr/DeleteState", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprServer).DeleteState(ctx, req.(*DeleteStateEnvelope)) + } + return interceptor(ctx, in, info, handler) +} + +var _Dapr_serviceDesc = grpc.ServiceDesc{ + ServiceName: "dapr.Dapr", + HandlerType: (*DaprServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "PublishEvent", + Handler: _Dapr_PublishEvent_Handler, + }, + { + MethodName: "InvokeService", + Handler: _Dapr_InvokeService_Handler, + }, + { + MethodName: "InvokeBinding", + Handler: _Dapr_InvokeBinding_Handler, + }, + { + MethodName: "GetState", + Handler: _Dapr_GetState_Handler, + }, + { + MethodName: "SaveState", + Handler: _Dapr_SaveState_Handler, + }, + { + MethodName: "DeleteState", + Handler: _Dapr_DeleteState_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "dapr.proto", +} diff --git a/proto/dapr/dapr.proto b/proto/dapr/dapr.proto new file mode 100644 index 000000000..b87d0f4fc --- /dev/null +++ b/proto/dapr/dapr.proto @@ -0,0 +1,106 @@ +syntax = "proto3"; + +package dapr; + +import "google/protobuf/any.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/duration.proto"; + +option java_outer_classname = "DaprProtos"; +option java_package = "io.dapr"; + +option csharp_namespace = "Dapr.Client.Grpc"; + + +// Dapr definitions +service Dapr { + rpc PublishEvent(PublishEventEnvelope) returns (google.protobuf.Empty) {} + rpc InvokeService(InvokeServiceEnvelope) returns (InvokeServiceResponseEnvelope) {} + rpc InvokeBinding(InvokeBindingEnvelope) returns (google.protobuf.Empty) {} + rpc GetState(GetStateEnvelope) returns (GetStateResponseEnvelope) {} + rpc SaveState(SaveStateEnvelope) returns (google.protobuf.Empty) {} + rpc DeleteState(DeleteStateEnvelope) returns (google.protobuf.Empty) {} +} + +message InvokeServiceResponseEnvelope { + google.protobuf.Any data = 1; + map metadata = 2; +} + +message DeleteStateEnvelope { + string key = 1; + string etag = 2; + StateOptions options = 3; +} + +message SaveStateEnvelope { + repeated StateRequest requests = 1; +} + +message GetStateEnvelope { + string key = 1; + string consistency = 2; +} + +message GetStateResponseEnvelope { + google.protobuf.Any data = 1; + string etag = 2; +} + +message InvokeBindingEnvelope { + string name = 1; + google.protobuf.Any data = 2; + map metadata = 3; +} + +message InvokeServiceEnvelope { + string id = 1; + string method = 2; + google.protobuf.Any data = 3; + map metadata = 4; +} + +message PublishEventEnvelope { + string topic = 1; + google.protobuf.Any data = 2; +} + +message State { + string key = 1; + google.protobuf.Any value = 2; + string etag = 3; + map metadata = 4; + StateOptions options = 5; +} + +message StateOptions { + string concurrency = 1; + string consistency = 2; + RetryPolicy retryPolicy = 3; +} + +message RetryPolicy { + int32 threshold = 1; + string pattern = 2; + google.protobuf.Duration interval = 3; +} + +message StateRequest { + string key = 1; + google.protobuf.Any value = 2; + string etag = 3; + map metadata = 4; + StateRequestOptions options = 5; +} + +message StateRequestOptions { + string concurrency = 1; + string consistency = 2; + StateRetryPolicy retryPolicy = 3; +} + +message StateRetryPolicy { + int32 threshold = 1; + string pattern = 2; + google.protobuf.Duration interval = 3; +} diff --git a/proto/daprclient/daprclient.pb.go b/proto/daprclient/daprclient.pb.go new file mode 100644 index 000000000..9f0ae6e9d --- /dev/null +++ b/proto/daprclient/daprclient.pb.go @@ -0,0 +1,818 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// source: daprclient.proto + +package daprclient + +import ( + context "context" + fmt "fmt" + math "math" + + proto "github.com/golang/protobuf/proto" + any "github.com/golang/protobuf/ptypes/any" + duration "github.com/golang/protobuf/ptypes/duration" + empty "github.com/golang/protobuf/ptypes/empty" + grpc "google.golang.org/grpc" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package + +type CloudEventEnvelope struct { + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"` + Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"` + SpecVersion string `protobuf:"bytes,4,opt,name=specVersion,proto3" json:"specVersion,omitempty"` + DataContentType string `protobuf:"bytes,5,opt,name=dataContentType,proto3" json:"dataContentType,omitempty"` + Topic string `protobuf:"bytes,6,opt,name=topic,proto3" json:"topic,omitempty"` + Data *any.Any `protobuf:"bytes,7,opt,name=data,proto3" json:"data,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *CloudEventEnvelope) Reset() { *m = CloudEventEnvelope{} } +func (m *CloudEventEnvelope) String() string { return proto.CompactTextString(m) } +func (*CloudEventEnvelope) ProtoMessage() {} +func (*CloudEventEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_127d5244029ccc8f, []int{0} +} + +func (m *CloudEventEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_CloudEventEnvelope.Unmarshal(m, b) +} +func (m *CloudEventEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_CloudEventEnvelope.Marshal(b, m, deterministic) +} +func (m *CloudEventEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_CloudEventEnvelope.Merge(m, src) +} +func (m *CloudEventEnvelope) XXX_Size() int { + return xxx_messageInfo_CloudEventEnvelope.Size(m) +} +func (m *CloudEventEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_CloudEventEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_CloudEventEnvelope proto.InternalMessageInfo + +func (m *CloudEventEnvelope) GetId() string { + if m != nil { + return m.Id + } + return "" +} + +func (m *CloudEventEnvelope) GetSource() string { + if m != nil { + return m.Source + } + return "" +} + +func (m *CloudEventEnvelope) GetType() string { + if m != nil { + return m.Type + } + return "" +} + +func (m *CloudEventEnvelope) GetSpecVersion() string { + if m != nil { + return m.SpecVersion + } + return "" +} + +func (m *CloudEventEnvelope) GetDataContentType() string { + if m != nil { + return m.DataContentType + } + return "" +} + +func (m *CloudEventEnvelope) GetTopic() string { + if m != nil { + return m.Topic + } + return "" +} + +func (m *CloudEventEnvelope) GetData() *any.Any { + if m != nil { + return m.Data + } + return nil +} + +type BindingEventEnvelope struct { + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Data *any.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BindingEventEnvelope) Reset() { *m = BindingEventEnvelope{} } +func (m *BindingEventEnvelope) String() string { return proto.CompactTextString(m) } +func (*BindingEventEnvelope) ProtoMessage() {} +func (*BindingEventEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_127d5244029ccc8f, []int{1} +} + +func (m *BindingEventEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BindingEventEnvelope.Unmarshal(m, b) +} +func (m *BindingEventEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BindingEventEnvelope.Marshal(b, m, deterministic) +} +func (m *BindingEventEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_BindingEventEnvelope.Merge(m, src) +} +func (m *BindingEventEnvelope) XXX_Size() int { + return xxx_messageInfo_BindingEventEnvelope.Size(m) +} +func (m *BindingEventEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_BindingEventEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_BindingEventEnvelope proto.InternalMessageInfo + +func (m *BindingEventEnvelope) GetName() string { + if m != nil { + return m.Name + } + return "" +} + +func (m *BindingEventEnvelope) GetData() *any.Any { + if m != nil { + return m.Data + } + return nil +} + +func (m *BindingEventEnvelope) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +type BindingResponseEnvelope struct { + Data *any.Any `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` + To []string `protobuf:"bytes,2,rep,name=to,proto3" json:"to,omitempty"` + State []*State `protobuf:"bytes,3,rep,name=state,proto3" json:"state,omitempty"` + Concurrency string `protobuf:"bytes,4,opt,name=concurrency,proto3" json:"concurrency,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *BindingResponseEnvelope) Reset() { *m = BindingResponseEnvelope{} } +func (m *BindingResponseEnvelope) String() string { return proto.CompactTextString(m) } +func (*BindingResponseEnvelope) ProtoMessage() {} +func (*BindingResponseEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_127d5244029ccc8f, []int{2} +} + +func (m *BindingResponseEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_BindingResponseEnvelope.Unmarshal(m, b) +} +func (m *BindingResponseEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_BindingResponseEnvelope.Marshal(b, m, deterministic) +} +func (m *BindingResponseEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_BindingResponseEnvelope.Merge(m, src) +} +func (m *BindingResponseEnvelope) XXX_Size() int { + return xxx_messageInfo_BindingResponseEnvelope.Size(m) +} +func (m *BindingResponseEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_BindingResponseEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_BindingResponseEnvelope proto.InternalMessageInfo + +func (m *BindingResponseEnvelope) GetData() *any.Any { + if m != nil { + return m.Data + } + return nil +} + +func (m *BindingResponseEnvelope) GetTo() []string { + if m != nil { + return m.To + } + return nil +} + +func (m *BindingResponseEnvelope) GetState() []*State { + if m != nil { + return m.State + } + return nil +} + +func (m *BindingResponseEnvelope) GetConcurrency() string { + if m != nil { + return m.Concurrency + } + return "" +} + +type InvokeEnvelope struct { + Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"` + Data *any.Any `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` + Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *InvokeEnvelope) Reset() { *m = InvokeEnvelope{} } +func (m *InvokeEnvelope) String() string { return proto.CompactTextString(m) } +func (*InvokeEnvelope) ProtoMessage() {} +func (*InvokeEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_127d5244029ccc8f, []int{3} +} + +func (m *InvokeEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_InvokeEnvelope.Unmarshal(m, b) +} +func (m *InvokeEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_InvokeEnvelope.Marshal(b, m, deterministic) +} +func (m *InvokeEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_InvokeEnvelope.Merge(m, src) +} +func (m *InvokeEnvelope) XXX_Size() int { + return xxx_messageInfo_InvokeEnvelope.Size(m) +} +func (m *InvokeEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_InvokeEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_InvokeEnvelope proto.InternalMessageInfo + +func (m *InvokeEnvelope) GetMethod() string { + if m != nil { + return m.Method + } + return "" +} + +func (m *InvokeEnvelope) GetData() *any.Any { + if m != nil { + return m.Data + } + return nil +} + +func (m *InvokeEnvelope) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +type GetTopicSubscriptionsEnvelope struct { + Topics []string `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetTopicSubscriptionsEnvelope) Reset() { *m = GetTopicSubscriptionsEnvelope{} } +func (m *GetTopicSubscriptionsEnvelope) String() string { return proto.CompactTextString(m) } +func (*GetTopicSubscriptionsEnvelope) ProtoMessage() {} +func (*GetTopicSubscriptionsEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_127d5244029ccc8f, []int{4} +} + +func (m *GetTopicSubscriptionsEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetTopicSubscriptionsEnvelope.Unmarshal(m, b) +} +func (m *GetTopicSubscriptionsEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetTopicSubscriptionsEnvelope.Marshal(b, m, deterministic) +} +func (m *GetTopicSubscriptionsEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetTopicSubscriptionsEnvelope.Merge(m, src) +} +func (m *GetTopicSubscriptionsEnvelope) XXX_Size() int { + return xxx_messageInfo_GetTopicSubscriptionsEnvelope.Size(m) +} +func (m *GetTopicSubscriptionsEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_GetTopicSubscriptionsEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_GetTopicSubscriptionsEnvelope proto.InternalMessageInfo + +func (m *GetTopicSubscriptionsEnvelope) GetTopics() []string { + if m != nil { + return m.Topics + } + return nil +} + +type GetBindingsSubscriptionsEnvelope struct { + Bindings []string `protobuf:"bytes,1,rep,name=bindings,proto3" json:"bindings,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *GetBindingsSubscriptionsEnvelope) Reset() { *m = GetBindingsSubscriptionsEnvelope{} } +func (m *GetBindingsSubscriptionsEnvelope) String() string { return proto.CompactTextString(m) } +func (*GetBindingsSubscriptionsEnvelope) ProtoMessage() {} +func (*GetBindingsSubscriptionsEnvelope) Descriptor() ([]byte, []int) { + return fileDescriptor_127d5244029ccc8f, []int{5} +} + +func (m *GetBindingsSubscriptionsEnvelope) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBindingsSubscriptionsEnvelope.Unmarshal(m, b) +} +func (m *GetBindingsSubscriptionsEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBindingsSubscriptionsEnvelope.Marshal(b, m, deterministic) +} +func (m *GetBindingsSubscriptionsEnvelope) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBindingsSubscriptionsEnvelope.Merge(m, src) +} +func (m *GetBindingsSubscriptionsEnvelope) XXX_Size() int { + return xxx_messageInfo_GetBindingsSubscriptionsEnvelope.Size(m) +} +func (m *GetBindingsSubscriptionsEnvelope) XXX_DiscardUnknown() { + xxx_messageInfo_GetBindingsSubscriptionsEnvelope.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBindingsSubscriptionsEnvelope proto.InternalMessageInfo + +func (m *GetBindingsSubscriptionsEnvelope) GetBindings() []string { + if m != nil { + return m.Bindings + } + return nil +} + +type State struct { + Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` + Value *any.Any `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` + Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` + Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Options *StateOptions `protobuf:"bytes,5,opt,name=options,proto3" json:"options,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *State) Reset() { *m = State{} } +func (m *State) String() string { return proto.CompactTextString(m) } +func (*State) ProtoMessage() {} +func (*State) Descriptor() ([]byte, []int) { + return fileDescriptor_127d5244029ccc8f, []int{6} +} + +func (m *State) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_State.Unmarshal(m, b) +} +func (m *State) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_State.Marshal(b, m, deterministic) +} +func (m *State) XXX_Merge(src proto.Message) { + xxx_messageInfo_State.Merge(m, src) +} +func (m *State) XXX_Size() int { + return xxx_messageInfo_State.Size(m) +} +func (m *State) XXX_DiscardUnknown() { + xxx_messageInfo_State.DiscardUnknown(m) +} + +var xxx_messageInfo_State proto.InternalMessageInfo + +func (m *State) GetKey() string { + if m != nil { + return m.Key + } + return "" +} + +func (m *State) GetValue() *any.Any { + if m != nil { + return m.Value + } + return nil +} + +func (m *State) GetEtag() string { + if m != nil { + return m.Etag + } + return "" +} + +func (m *State) GetMetadata() map[string]string { + if m != nil { + return m.Metadata + } + return nil +} + +func (m *State) GetOptions() *StateOptions { + if m != nil { + return m.Options + } + return nil +} + +type StateOptions struct { + Concurrency string `protobuf:"bytes,1,opt,name=concurrency,proto3" json:"concurrency,omitempty"` + Consistency string `protobuf:"bytes,2,opt,name=consistency,proto3" json:"consistency,omitempty"` + RetryPolicy *RetryPolicy `protobuf:"bytes,3,opt,name=retryPolicy,proto3" json:"retryPolicy,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *StateOptions) Reset() { *m = StateOptions{} } +func (m *StateOptions) String() string { return proto.CompactTextString(m) } +func (*StateOptions) ProtoMessage() {} +func (*StateOptions) Descriptor() ([]byte, []int) { + return fileDescriptor_127d5244029ccc8f, []int{7} +} + +func (m *StateOptions) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_StateOptions.Unmarshal(m, b) +} +func (m *StateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_StateOptions.Marshal(b, m, deterministic) +} +func (m *StateOptions) XXX_Merge(src proto.Message) { + xxx_messageInfo_StateOptions.Merge(m, src) +} +func (m *StateOptions) XXX_Size() int { + return xxx_messageInfo_StateOptions.Size(m) +} +func (m *StateOptions) XXX_DiscardUnknown() { + xxx_messageInfo_StateOptions.DiscardUnknown(m) +} + +var xxx_messageInfo_StateOptions proto.InternalMessageInfo + +func (m *StateOptions) GetConcurrency() string { + if m != nil { + return m.Concurrency + } + return "" +} + +func (m *StateOptions) GetConsistency() string { + if m != nil { + return m.Consistency + } + return "" +} + +func (m *StateOptions) GetRetryPolicy() *RetryPolicy { + if m != nil { + return m.RetryPolicy + } + return nil +} + +type RetryPolicy struct { + Threshold int32 `protobuf:"varint,1,opt,name=threshold,proto3" json:"threshold,omitempty"` + Pattern string `protobuf:"bytes,2,opt,name=pattern,proto3" json:"pattern,omitempty"` + Interval *duration.Duration `protobuf:"bytes,3,opt,name=interval,proto3" json:"interval,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` +} + +func (m *RetryPolicy) Reset() { *m = RetryPolicy{} } +func (m *RetryPolicy) String() string { return proto.CompactTextString(m) } +func (*RetryPolicy) ProtoMessage() {} +func (*RetryPolicy) Descriptor() ([]byte, []int) { + return fileDescriptor_127d5244029ccc8f, []int{8} +} + +func (m *RetryPolicy) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_RetryPolicy.Unmarshal(m, b) +} +func (m *RetryPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_RetryPolicy.Marshal(b, m, deterministic) +} +func (m *RetryPolicy) XXX_Merge(src proto.Message) { + xxx_messageInfo_RetryPolicy.Merge(m, src) +} +func (m *RetryPolicy) XXX_Size() int { + return xxx_messageInfo_RetryPolicy.Size(m) +} +func (m *RetryPolicy) XXX_DiscardUnknown() { + xxx_messageInfo_RetryPolicy.DiscardUnknown(m) +} + +var xxx_messageInfo_RetryPolicy proto.InternalMessageInfo + +func (m *RetryPolicy) GetThreshold() int32 { + if m != nil { + return m.Threshold + } + return 0 +} + +func (m *RetryPolicy) GetPattern() string { + if m != nil { + return m.Pattern + } + return "" +} + +func (m *RetryPolicy) GetInterval() *duration.Duration { + if m != nil { + return m.Interval + } + return nil +} + +func init() { + proto.RegisterType((*CloudEventEnvelope)(nil), "daprclient.CloudEventEnvelope") + proto.RegisterType((*BindingEventEnvelope)(nil), "daprclient.BindingEventEnvelope") + proto.RegisterMapType((map[string]string)(nil), "daprclient.BindingEventEnvelope.MetadataEntry") + proto.RegisterType((*BindingResponseEnvelope)(nil), "daprclient.BindingResponseEnvelope") + proto.RegisterType((*InvokeEnvelope)(nil), "daprclient.InvokeEnvelope") + proto.RegisterMapType((map[string]string)(nil), "daprclient.InvokeEnvelope.MetadataEntry") + proto.RegisterType((*GetTopicSubscriptionsEnvelope)(nil), "daprclient.GetTopicSubscriptionsEnvelope") + proto.RegisterType((*GetBindingsSubscriptionsEnvelope)(nil), "daprclient.GetBindingsSubscriptionsEnvelope") + proto.RegisterType((*State)(nil), "daprclient.State") + proto.RegisterMapType((map[string]string)(nil), "daprclient.State.MetadataEntry") + proto.RegisterType((*StateOptions)(nil), "daprclient.StateOptions") + proto.RegisterType((*RetryPolicy)(nil), "daprclient.RetryPolicy") +} + +func init() { proto.RegisterFile("daprclient.proto", fileDescriptor_127d5244029ccc8f) } + +var fileDescriptor_127d5244029ccc8f = []byte{ + // 745 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xdd, 0x6e, 0xd3, 0x4a, + 0x10, 0x8e, 0x9d, 0x9f, 0xa6, 0x93, 0x9e, 0x9c, 0x9e, 0x51, 0x4f, 0xeb, 0x1a, 0x28, 0x91, 0xb9, + 0x20, 0x20, 0x94, 0x4a, 0x41, 0x88, 0x9f, 0x4a, 0x95, 0xa0, 0x8d, 0x0a, 0x48, 0x28, 0xc8, 0xad, + 0x90, 0x90, 0xb8, 0x71, 0x9c, 0x25, 0xb5, 0xea, 0xec, 0x5a, 0xeb, 0x4d, 0x24, 0x4b, 0xdc, 0x73, + 0xc5, 0x2b, 0xf0, 0x12, 0x3c, 0x0b, 0x77, 0xf0, 0x2e, 0xc8, 0xeb, 0x75, 0xb2, 0x8d, 0x93, 0x56, + 0x08, 0x71, 0xe7, 0x9d, 0xef, 0x9b, 0x9d, 0xf9, 0xe6, 0x67, 0x0d, 0x9b, 0x43, 0x2f, 0xe2, 0x7e, + 0x18, 0x10, 0x2a, 0x3a, 0x11, 0x67, 0x82, 0x21, 0xcc, 0x2d, 0xf6, 0xee, 0x88, 0xb1, 0x51, 0x48, + 0xf6, 0x25, 0x32, 0x98, 0x7c, 0xdc, 0xf7, 0x68, 0x92, 0xd1, 0xec, 0x1b, 0x8b, 0x10, 0x19, 0x47, + 0x22, 0x07, 0xf7, 0x16, 0xc1, 0xe1, 0x84, 0x7b, 0x22, 0x60, 0x34, 0xc3, 0x9d, 0x1f, 0x06, 0xe0, + 0x51, 0xc8, 0x26, 0xc3, 0xde, 0x94, 0x50, 0xd1, 0xa3, 0x53, 0x12, 0xb2, 0x88, 0x60, 0x13, 0xcc, + 0x60, 0x68, 0x19, 0x2d, 0xa3, 0xbd, 0xee, 0x9a, 0xc1, 0x10, 0xb7, 0xa1, 0x16, 0xb3, 0x09, 0xf7, + 0x89, 0x65, 0x4a, 0x9b, 0x3a, 0x21, 0x42, 0x45, 0x24, 0x11, 0xb1, 0xca, 0xd2, 0x2a, 0xbf, 0xb1, + 0x05, 0x8d, 0x38, 0x22, 0xfe, 0x3b, 0xc2, 0xe3, 0x80, 0x51, 0xab, 0x22, 0x21, 0xdd, 0x84, 0x6d, + 0xf8, 0x77, 0xe8, 0x09, 0xef, 0x88, 0x51, 0x41, 0xa8, 0x38, 0x4b, 0x2f, 0xa8, 0x4a, 0xd6, 0xa2, + 0x19, 0xb7, 0xa0, 0x2a, 0x58, 0x14, 0xf8, 0x56, 0x4d, 0xe2, 0xd9, 0x01, 0xdb, 0x50, 0x49, 0x89, + 0xd6, 0x5a, 0xcb, 0x68, 0x37, 0xba, 0x5b, 0x9d, 0x4c, 0x63, 0x27, 0xd7, 0xd8, 0x79, 0x4e, 0x13, + 0x57, 0x32, 0x9c, 0x9f, 0x06, 0x6c, 0xbd, 0x08, 0xe8, 0x30, 0xa0, 0xa3, 0xcb, 0x02, 0x11, 0x2a, + 0xd4, 0x1b, 0x13, 0x25, 0x51, 0x7e, 0xcf, 0xae, 0x35, 0xaf, 0xbb, 0x16, 0x5f, 0x43, 0x7d, 0x4c, + 0x84, 0x27, 0xd9, 0xe5, 0x56, 0xb9, 0xdd, 0xe8, 0x76, 0x3a, 0x5a, 0xfb, 0x96, 0x45, 0xec, 0xbc, + 0x51, 0x0e, 0x3d, 0x2a, 0x78, 0xe2, 0xce, 0xfc, 0xed, 0x03, 0xf8, 0xe7, 0x12, 0x84, 0x9b, 0x50, + 0xbe, 0x20, 0x89, 0xca, 0x2c, 0xfd, 0x4c, 0xab, 0x30, 0xf5, 0xc2, 0x49, 0x5e, 0xfc, 0xec, 0xf0, + 0xcc, 0x7c, 0x62, 0x38, 0x5f, 0x0d, 0xd8, 0x51, 0xd1, 0x5c, 0x12, 0x47, 0x8c, 0xc6, 0x64, 0x26, + 0x31, 0x97, 0x63, 0x5c, 0x2b, 0xa7, 0x09, 0xa6, 0x60, 0x96, 0xd9, 0x2a, 0xa7, 0xdd, 0x16, 0x0c, + 0xef, 0x42, 0x35, 0x16, 0x9e, 0x20, 0x4a, 0xdb, 0x7f, 0xba, 0xb6, 0xd3, 0x14, 0x70, 0x33, 0x3c, + 0x6d, 0xb5, 0xcf, 0xa8, 0x3f, 0xe1, 0x9c, 0x50, 0x3f, 0xc9, 0x5b, 0xad, 0x99, 0x9c, 0xef, 0x06, + 0x34, 0x5f, 0xd1, 0x29, 0xbb, 0x98, 0xe7, 0xb5, 0x0d, 0xb5, 0x31, 0x11, 0xe7, 0x2c, 0x9f, 0x2f, + 0x75, 0xfa, 0x8d, 0xf2, 0x1f, 0x17, 0xca, 0xdf, 0xd6, 0x53, 0xbc, 0x1c, 0xef, 0xef, 0x14, 0xfe, + 0x31, 0xdc, 0x3a, 0x21, 0xe2, 0x2c, 0x1d, 0xc7, 0xd3, 0xc9, 0x20, 0xf6, 0x79, 0x10, 0xa5, 0x5b, + 0x15, 0xeb, 0x2a, 0xe5, 0xb0, 0xc6, 0x96, 0x21, 0xeb, 0xaa, 0x4e, 0xce, 0x21, 0xb4, 0x4e, 0x88, + 0x50, 0x3d, 0x8b, 0x97, 0xfb, 0xda, 0x50, 0x1f, 0x28, 0x82, 0xf2, 0x9e, 0x9d, 0x9d, 0xcf, 0x26, + 0x54, 0x65, 0x0f, 0x96, 0xa4, 0x7b, 0x5f, 0x4f, 0x77, 0x55, 0x09, 0x33, 0x4a, 0xba, 0x00, 0x44, + 0x78, 0xa3, 0x7c, 0x73, 0xd3, 0x6f, 0x3c, 0xd0, 0xea, 0x5a, 0x91, 0x75, 0xbd, 0x5d, 0x68, 0xfd, + 0xaa, 0x72, 0x62, 0x17, 0xd6, 0x58, 0xa6, 0x43, 0x2e, 0x73, 0xa3, 0x6b, 0x15, 0x7c, 0xfb, 0x19, + 0xee, 0xe6, 0xc4, 0x3f, 0x6b, 0xc1, 0x17, 0x03, 0x36, 0xf4, 0x6b, 0x17, 0xa7, 0xd1, 0x28, 0x4c, + 0xa3, 0x62, 0xc4, 0x41, 0x2c, 0x24, 0xc3, 0x9c, 0x31, 0x72, 0x13, 0x3e, 0x85, 0x06, 0x27, 0x82, + 0x27, 0x6f, 0x59, 0x18, 0xf8, 0x89, 0xac, 0x4e, 0xa3, 0xbb, 0xa3, 0x2b, 0x71, 0xe7, 0xb0, 0xab, + 0x73, 0x9d, 0x4f, 0xd0, 0xd0, 0x30, 0xbc, 0x09, 0xeb, 0xe2, 0x9c, 0x93, 0xf8, 0x9c, 0x85, 0xd9, + 0xa4, 0x57, 0xdd, 0xb9, 0x01, 0x2d, 0x58, 0x8b, 0x3c, 0x21, 0x08, 0xa7, 0x2a, 0x8b, 0xfc, 0x88, + 0x8f, 0xa0, 0x1e, 0x50, 0x41, 0xf8, 0xd4, 0x0b, 0x55, 0xf8, 0xdd, 0x42, 0x1f, 0x8f, 0xd5, 0x23, + 0xee, 0xce, 0xa8, 0xdd, 0x6f, 0x65, 0x80, 0x63, 0x2f, 0xe2, 0x47, 0x32, 0x4b, 0x3c, 0x84, 0x7a, + 0x9f, 0x66, 0x8b, 0x80, 0xf6, 0xea, 0xe5, 0xb0, 0x97, 0xce, 0x88, 0x53, 0xc2, 0x0f, 0xf0, 0xff, + 0xd2, 0xf9, 0xc6, 0xed, 0x82, 0x43, 0x2f, 0xfd, 0xdd, 0xd8, 0xf7, 0xf4, 0x20, 0x57, 0xae, 0x86, + 0x53, 0xc2, 0x01, 0x58, 0xab, 0x96, 0x60, 0x65, 0x80, 0x07, 0x0b, 0x01, 0xae, 0x5c, 0x21, 0xa7, + 0x84, 0xef, 0xa1, 0xd9, 0xa7, 0xfa, 0x4b, 0x8c, 0xad, 0xeb, 0xde, 0x68, 0xfb, 0xce, 0x12, 0xc6, + 0xe2, 0xbb, 0xea, 0x94, 0xf0, 0x25, 0x6c, 0xf4, 0xa9, 0x14, 0x98, 0x5d, 0xbc, 0xa7, 0xbb, 0x15, + 0xff, 0xa6, 0xf6, 0x0a, 0x49, 0x4e, 0x69, 0x50, 0x93, 0x96, 0x87, 0xbf, 0x02, 0x00, 0x00, 0xff, + 0xff, 0x08, 0x99, 0x1b, 0xe5, 0xfd, 0x07, 0x00, 0x00, +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConn + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +const _ = grpc.SupportPackageIsVersion4 + +// DaprClientClient is the client API for DaprClient service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type DaprClientClient interface { + OnInvoke(ctx context.Context, in *InvokeEnvelope, opts ...grpc.CallOption) (*any.Any, error) + GetTopicSubscriptions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetTopicSubscriptionsEnvelope, error) + GetBindingsSubscriptions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetBindingsSubscriptionsEnvelope, error) + OnBindingEvent(ctx context.Context, in *BindingEventEnvelope, opts ...grpc.CallOption) (*BindingResponseEnvelope, error) + OnTopicEvent(ctx context.Context, in *CloudEventEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) +} + +type daprClientClient struct { + cc *grpc.ClientConn +} + +func NewDaprClientClient(cc *grpc.ClientConn) DaprClientClient { + return &daprClientClient{cc} +} + +func (c *daprClientClient) OnInvoke(ctx context.Context, in *InvokeEnvelope, opts ...grpc.CallOption) (*any.Any, error) { + out := new(any.Any) + err := c.cc.Invoke(ctx, "/daprclient.DaprClient/OnInvoke", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClientClient) GetTopicSubscriptions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetTopicSubscriptionsEnvelope, error) { + out := new(GetTopicSubscriptionsEnvelope) + err := c.cc.Invoke(ctx, "/daprclient.DaprClient/GetTopicSubscriptions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClientClient) GetBindingsSubscriptions(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetBindingsSubscriptionsEnvelope, error) { + out := new(GetBindingsSubscriptionsEnvelope) + err := c.cc.Invoke(ctx, "/daprclient.DaprClient/GetBindingsSubscriptions", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClientClient) OnBindingEvent(ctx context.Context, in *BindingEventEnvelope, opts ...grpc.CallOption) (*BindingResponseEnvelope, error) { + out := new(BindingResponseEnvelope) + err := c.cc.Invoke(ctx, "/daprclient.DaprClient/OnBindingEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *daprClientClient) OnTopicEvent(ctx context.Context, in *CloudEventEnvelope, opts ...grpc.CallOption) (*empty.Empty, error) { + out := new(empty.Empty) + err := c.cc.Invoke(ctx, "/daprclient.DaprClient/OnTopicEvent", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// DaprClientServer is the server API for DaprClient service. +type DaprClientServer interface { + OnInvoke(context.Context, *InvokeEnvelope) (*any.Any, error) + GetTopicSubscriptions(context.Context, *empty.Empty) (*GetTopicSubscriptionsEnvelope, error) + GetBindingsSubscriptions(context.Context, *empty.Empty) (*GetBindingsSubscriptionsEnvelope, error) + OnBindingEvent(context.Context, *BindingEventEnvelope) (*BindingResponseEnvelope, error) + OnTopicEvent(context.Context, *CloudEventEnvelope) (*empty.Empty, error) +} + +func RegisterDaprClientServer(s *grpc.Server, srv DaprClientServer) { + s.RegisterService(&_DaprClient_serviceDesc, srv) +} + +func _DaprClient_OnInvoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(InvokeEnvelope) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprClientServer).OnInvoke(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/daprclient.DaprClient/OnInvoke", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprClientServer).OnInvoke(ctx, req.(*InvokeEnvelope)) + } + return interceptor(ctx, in, info, handler) +} + +func _DaprClient_GetTopicSubscriptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(empty.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprClientServer).GetTopicSubscriptions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/daprclient.DaprClient/GetTopicSubscriptions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprClientServer).GetTopicSubscriptions(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _DaprClient_GetBindingsSubscriptions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(empty.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprClientServer).GetBindingsSubscriptions(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/daprclient.DaprClient/GetBindingsSubscriptions", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprClientServer).GetBindingsSubscriptions(ctx, req.(*empty.Empty)) + } + return interceptor(ctx, in, info, handler) +} + +func _DaprClient_OnBindingEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(BindingEventEnvelope) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprClientServer).OnBindingEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/daprclient.DaprClient/OnBindingEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprClientServer).OnBindingEvent(ctx, req.(*BindingEventEnvelope)) + } + return interceptor(ctx, in, info, handler) +} + +func _DaprClient_OnTopicEvent_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CloudEventEnvelope) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(DaprClientServer).OnTopicEvent(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/daprclient.DaprClient/OnTopicEvent", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(DaprClientServer).OnTopicEvent(ctx, req.(*CloudEventEnvelope)) + } + return interceptor(ctx, in, info, handler) +} + +var _DaprClient_serviceDesc = grpc.ServiceDesc{ + ServiceName: "daprclient.DaprClient", + HandlerType: (*DaprClientServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "OnInvoke", + Handler: _DaprClient_OnInvoke_Handler, + }, + { + MethodName: "GetTopicSubscriptions", + Handler: _DaprClient_GetTopicSubscriptions_Handler, + }, + { + MethodName: "GetBindingsSubscriptions", + Handler: _DaprClient_GetBindingsSubscriptions_Handler, + }, + { + MethodName: "OnBindingEvent", + Handler: _DaprClient_OnBindingEvent_Handler, + }, + { + MethodName: "OnTopicEvent", + Handler: _DaprClient_OnTopicEvent_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "daprclient.proto", +} diff --git a/proto/daprclient/daprclient.proto b/proto/daprclient/daprclient.proto new file mode 100644 index 000000000..a383ba16c --- /dev/null +++ b/proto/daprclient/daprclient.proto @@ -0,0 +1,76 @@ +syntax = "proto3"; + +package daprclient; + +import "google/protobuf/any.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/duration.proto"; + +option java_outer_classname = "DaprClientProtos"; +option java_package = "io.dapr"; + +// User Code definitions +service DaprClient { + rpc OnInvoke (InvokeEnvelope) returns (google.protobuf.Any) {} + rpc GetTopicSubscriptions(google.protobuf.Empty) returns (GetTopicSubscriptionsEnvelope) {} + rpc GetBindingsSubscriptions(google.protobuf.Empty) returns (GetBindingsSubscriptionsEnvelope) {} + rpc OnBindingEvent(BindingEventEnvelope) returns (BindingResponseEnvelope) {} + rpc OnTopicEvent(CloudEventEnvelope) returns (google.protobuf.Empty) {} +} + +message CloudEventEnvelope { + string id = 1; + string source = 2; + string type = 3; + string specVersion = 4; + string dataContentType = 5; + string topic = 6; + google.protobuf.Any data = 7; +} + +message BindingEventEnvelope { + string name = 1; + google.protobuf.Any data = 2; + map metadata = 3; +} + +message BindingResponseEnvelope { + google.protobuf.Any data = 1; + repeated string to = 2; + repeated State state = 3; + string concurrency = 4; +} + +message InvokeEnvelope { + string method = 1; + google.protobuf.Any data = 2; + map metadata = 3; +} + +message GetTopicSubscriptionsEnvelope { + repeated string topics = 1; +} + +message GetBindingsSubscriptionsEnvelope { + repeated string bindings = 1; +} + +message State { + string key = 1; + google.protobuf.Any value = 2; + string etag = 3; + map metadata = 4; + StateOptions options = 5; +} + +message StateOptions { + string concurrency = 1; + string consistency = 2; + RetryPolicy retryPolicy = 3; +} + +message RetryPolicy { + int32 threshold = 1; + string pattern = 2; + google.protobuf.Duration interval = 3; +} diff --git a/client/pom.xml b/sdk/pom.xml similarity index 86% rename from client/pom.xml rename to sdk/pom.xml index b778e192e..7ce0e934c 100644 --- a/client/pom.xml +++ b/sdk/pom.xml @@ -6,19 +6,19 @@ io.dapr - client-parent - 0.1.0-preview02 + dapr-sdk-parent + 0.3.0-alpha - client + dapr-sdk jar - 0.1.0-preview02 - dapr-client - gRPC client for Dapr. + 0.3.0-alpha + dapr-sdk + SDK for Dapr. generated-proto - ${project.parent.basedir}/dapr/pkg/proto + ${project.parent.basedir}/proto @@ -60,6 +60,11 @@ mockito-core test
+ + com.github.os72 + protoc-jar-maven-plugin + 3.10.1 +
@@ -67,7 +72,7 @@ com.github.os72 protoc-jar-maven-plugin - 3.9.2 + 3.10.1 generate-sources @@ -75,6 +80,7 @@ run + ${protobuf.version} inputs direct true diff --git a/client/src/main/java/io/dapr/DaprClientGrpc.java b/sdk/src/main/java/io/dapr/DaprClientGrpc.java similarity index 100% rename from client/src/main/java/io/dapr/DaprClientGrpc.java rename to sdk/src/main/java/io/dapr/DaprClientGrpc.java diff --git a/client/src/main/java/io/dapr/DaprClientProtos.java b/sdk/src/main/java/io/dapr/DaprClientProtos.java similarity index 96% rename from client/src/main/java/io/dapr/DaprClientProtos.java rename to sdk/src/main/java/io/dapr/DaprClientProtos.java index c541e0ffc..74bf6849c 100644 --- a/client/src/main/java/io/dapr/DaprClientProtos.java +++ b/sdk/src/main/java/io/dapr/DaprClientProtos.java @@ -20,70 +20,84 @@ public final class DaprClientProtos { /** * string id = 1; + * @return The id. */ java.lang.String getId(); /** * string id = 1; + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string source = 2; + * @return The source. */ java.lang.String getSource(); /** * string source = 2; + * @return The bytes for source. */ com.google.protobuf.ByteString getSourceBytes(); /** * string type = 3; + * @return The type. */ java.lang.String getType(); /** * string type = 3; + * @return The bytes for type. */ com.google.protobuf.ByteString getTypeBytes(); /** * string specVersion = 4; + * @return The specVersion. */ java.lang.String getSpecVersion(); /** * string specVersion = 4; + * @return The bytes for specVersion. */ com.google.protobuf.ByteString getSpecVersionBytes(); /** * string dataContentType = 5; + * @return The dataContentType. */ java.lang.String getDataContentType(); /** * string dataContentType = 5; + * @return The bytes for dataContentType. */ com.google.protobuf.ByteString getDataContentTypeBytes(); /** * string topic = 6; + * @return The topic. */ java.lang.String getTopic(); /** * string topic = 6; + * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * .google.protobuf.Any data = 7; + * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 7; + * @return The data. */ com.google.protobuf.Any getData(); /** @@ -227,6 +241,7 @@ public final class DaprClientProtos { private volatile java.lang.Object id_; /** * string id = 1; + * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; @@ -242,6 +257,7 @@ public final class DaprClientProtos { } /** * string id = 1; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { @@ -261,6 +277,7 @@ public final class DaprClientProtos { private volatile java.lang.Object source_; /** * string source = 2; + * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; @@ -276,6 +293,7 @@ public final class DaprClientProtos { } /** * string source = 2; + * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { @@ -295,6 +313,7 @@ public final class DaprClientProtos { private volatile java.lang.Object type_; /** * string type = 3; + * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; @@ -310,6 +329,7 @@ public final class DaprClientProtos { } /** * string type = 3; + * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { @@ -329,6 +349,7 @@ public final class DaprClientProtos { private volatile java.lang.Object specVersion_; /** * string specVersion = 4; + * @return The specVersion. */ public java.lang.String getSpecVersion() { java.lang.Object ref = specVersion_; @@ -344,6 +365,7 @@ public final class DaprClientProtos { } /** * string specVersion = 4; + * @return The bytes for specVersion. */ public com.google.protobuf.ByteString getSpecVersionBytes() { @@ -363,6 +385,7 @@ public final class DaprClientProtos { private volatile java.lang.Object dataContentType_; /** * string dataContentType = 5; + * @return The dataContentType. */ public java.lang.String getDataContentType() { java.lang.Object ref = dataContentType_; @@ -378,6 +401,7 @@ public final class DaprClientProtos { } /** * string dataContentType = 5; + * @return The bytes for dataContentType. */ public com.google.protobuf.ByteString getDataContentTypeBytes() { @@ -397,6 +421,7 @@ public final class DaprClientProtos { private volatile java.lang.Object topic_; /** * string topic = 6; + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -412,6 +437,7 @@ public final class DaprClientProtos { } /** * string topic = 6; + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { @@ -431,12 +457,14 @@ public final class DaprClientProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 7; + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 7; + * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -868,6 +896,7 @@ public final class DaprClientProtos { private java.lang.Object id_ = ""; /** * string id = 1; + * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; @@ -883,6 +912,7 @@ public final class DaprClientProtos { } /** * string id = 1; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { @@ -899,6 +929,8 @@ public final class DaprClientProtos { } /** * string id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId( java.lang.String value) { @@ -912,6 +944,7 @@ public final class DaprClientProtos { } /** * string id = 1; + * @return This builder for chaining. */ public Builder clearId() { @@ -921,6 +954,8 @@ public final class DaprClientProtos { } /** * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { @@ -937,6 +972,7 @@ public final class DaprClientProtos { private java.lang.Object source_ = ""; /** * string source = 2; + * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; @@ -952,6 +988,7 @@ public final class DaprClientProtos { } /** * string source = 2; + * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { @@ -968,6 +1005,8 @@ public final class DaprClientProtos { } /** * string source = 2; + * @param value The source to set. + * @return This builder for chaining. */ public Builder setSource( java.lang.String value) { @@ -981,6 +1020,7 @@ public final class DaprClientProtos { } /** * string source = 2; + * @return This builder for chaining. */ public Builder clearSource() { @@ -990,6 +1030,8 @@ public final class DaprClientProtos { } /** * string source = 2; + * @param value The bytes for source to set. + * @return This builder for chaining. */ public Builder setSourceBytes( com.google.protobuf.ByteString value) { @@ -1006,6 +1048,7 @@ public final class DaprClientProtos { private java.lang.Object type_ = ""; /** * string type = 3; + * @return The type. */ public java.lang.String getType() { java.lang.Object ref = type_; @@ -1021,6 +1064,7 @@ public final class DaprClientProtos { } /** * string type = 3; + * @return The bytes for type. */ public com.google.protobuf.ByteString getTypeBytes() { @@ -1037,6 +1081,8 @@ public final class DaprClientProtos { } /** * string type = 3; + * @param value The type to set. + * @return This builder for chaining. */ public Builder setType( java.lang.String value) { @@ -1050,6 +1096,7 @@ public final class DaprClientProtos { } /** * string type = 3; + * @return This builder for chaining. */ public Builder clearType() { @@ -1059,6 +1106,8 @@ public final class DaprClientProtos { } /** * string type = 3; + * @param value The bytes for type to set. + * @return This builder for chaining. */ public Builder setTypeBytes( com.google.protobuf.ByteString value) { @@ -1075,6 +1124,7 @@ public final class DaprClientProtos { private java.lang.Object specVersion_ = ""; /** * string specVersion = 4; + * @return The specVersion. */ public java.lang.String getSpecVersion() { java.lang.Object ref = specVersion_; @@ -1090,6 +1140,7 @@ public final class DaprClientProtos { } /** * string specVersion = 4; + * @return The bytes for specVersion. */ public com.google.protobuf.ByteString getSpecVersionBytes() { @@ -1106,6 +1157,8 @@ public final class DaprClientProtos { } /** * string specVersion = 4; + * @param value The specVersion to set. + * @return This builder for chaining. */ public Builder setSpecVersion( java.lang.String value) { @@ -1119,6 +1172,7 @@ public final class DaprClientProtos { } /** * string specVersion = 4; + * @return This builder for chaining. */ public Builder clearSpecVersion() { @@ -1128,6 +1182,8 @@ public final class DaprClientProtos { } /** * string specVersion = 4; + * @param value The bytes for specVersion to set. + * @return This builder for chaining. */ public Builder setSpecVersionBytes( com.google.protobuf.ByteString value) { @@ -1144,6 +1200,7 @@ public final class DaprClientProtos { private java.lang.Object dataContentType_ = ""; /** * string dataContentType = 5; + * @return The dataContentType. */ public java.lang.String getDataContentType() { java.lang.Object ref = dataContentType_; @@ -1159,6 +1216,7 @@ public final class DaprClientProtos { } /** * string dataContentType = 5; + * @return The bytes for dataContentType. */ public com.google.protobuf.ByteString getDataContentTypeBytes() { @@ -1175,6 +1233,8 @@ public final class DaprClientProtos { } /** * string dataContentType = 5; + * @param value The dataContentType to set. + * @return This builder for chaining. */ public Builder setDataContentType( java.lang.String value) { @@ -1188,6 +1248,7 @@ public final class DaprClientProtos { } /** * string dataContentType = 5; + * @return This builder for chaining. */ public Builder clearDataContentType() { @@ -1197,6 +1258,8 @@ public final class DaprClientProtos { } /** * string dataContentType = 5; + * @param value The bytes for dataContentType to set. + * @return This builder for chaining. */ public Builder setDataContentTypeBytes( com.google.protobuf.ByteString value) { @@ -1213,6 +1276,7 @@ public final class DaprClientProtos { private java.lang.Object topic_ = ""; /** * string topic = 6; + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -1228,6 +1292,7 @@ public final class DaprClientProtos { } /** * string topic = 6; + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { @@ -1244,6 +1309,8 @@ public final class DaprClientProtos { } /** * string topic = 6; + * @param value The topic to set. + * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { @@ -1257,6 +1324,7 @@ public final class DaprClientProtos { } /** * string topic = 6; + * @return This builder for chaining. */ public Builder clearTopic() { @@ -1266,6 +1334,8 @@ public final class DaprClientProtos { } /** * string topic = 6; + * @param value The bytes for topic to set. + * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { @@ -1284,12 +1354,14 @@ public final class DaprClientProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 7; + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 7; + * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -1454,20 +1526,24 @@ public final class DaprClientProtos { /** * string name = 1; + * @return The name. */ java.lang.String getName(); /** * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 2; + * @return The data. */ com.google.protobuf.Any getData(); /** @@ -1636,6 +1712,7 @@ public final class DaprClientProtos { private volatile java.lang.Object name_; /** * string name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -1651,6 +1728,7 @@ public final class DaprClientProtos { } /** * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -1670,12 +1748,14 @@ public final class DaprClientProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 2; + * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -2149,6 +2229,7 @@ public final class DaprClientProtos { private java.lang.Object name_ = ""; /** * string name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -2164,6 +2245,7 @@ public final class DaprClientProtos { } /** * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -2180,6 +2262,8 @@ public final class DaprClientProtos { } /** * string name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -2193,6 +2277,7 @@ public final class DaprClientProtos { } /** * string name = 1; + * @return This builder for chaining. */ public Builder clearName() { @@ -2202,6 +2287,8 @@ public final class DaprClientProtos { } /** * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -2220,12 +2307,14 @@ public final class DaprClientProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 2; + * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -2513,10 +2602,12 @@ public final class DaprClientProtos { /** * .google.protobuf.Any data = 1; + * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 1; + * @return The data. */ com.google.protobuf.Any getData(); /** @@ -2526,19 +2617,25 @@ public final class DaprClientProtos { /** * repeated string to = 2; + * @return A list containing the to. */ java.util.List getToList(); /** * repeated string to = 2; + * @return The count of to. */ int getToCount(); /** * repeated string to = 2; + * @param index The index of the element to return. + * @return The to at the given index. */ java.lang.String getTo(int index); /** * repeated string to = 2; + * @param index The index of the value to return. + * @return The bytes of the to at the given index. */ com.google.protobuf.ByteString getToBytes(int index); @@ -2569,10 +2666,12 @@ public final class DaprClientProtos { /** * string concurrency = 4; + * @return The concurrency. */ java.lang.String getConcurrency(); /** * string concurrency = 4; + * @return The bytes for concurrency. */ com.google.protobuf.ByteString getConcurrencyBytes(); @@ -2705,12 +2804,14 @@ public final class DaprClientProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 1; + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 1; + * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -2726,6 +2827,7 @@ public final class DaprClientProtos { private com.google.protobuf.LazyStringList to_; /** * repeated string to = 2; + * @return A list containing the to. */ public com.google.protobuf.ProtocolStringList getToList() { @@ -2733,18 +2835,23 @@ public final class DaprClientProtos { } /** * repeated string to = 2; + * @return The count of to. */ public int getToCount() { return to_.size(); } /** * repeated string to = 2; + * @param index The index of the element to return. + * @return The to at the given index. */ public java.lang.String getTo(int index) { return to_.get(index); } /** * repeated string to = 2; + * @param index The index of the value to return. + * @return The bytes of the to at the given index. */ public com.google.protobuf.ByteString getToBytes(int index) { @@ -2790,6 +2897,7 @@ public final class DaprClientProtos { private volatile java.lang.Object concurrency_; /** * string concurrency = 4; + * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -2805,6 +2913,7 @@ public final class DaprClientProtos { } /** * string concurrency = 4; + * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -3248,12 +3357,14 @@ public final class DaprClientProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 1; + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 1; + * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -3369,6 +3480,7 @@ public final class DaprClientProtos { } /** * repeated string to = 2; + * @return A list containing the to. */ public com.google.protobuf.ProtocolStringList getToList() { @@ -3376,18 +3488,23 @@ public final class DaprClientProtos { } /** * repeated string to = 2; + * @return The count of to. */ public int getToCount() { return to_.size(); } /** * repeated string to = 2; + * @param index The index of the element to return. + * @return The to at the given index. */ public java.lang.String getTo(int index) { return to_.get(index); } /** * repeated string to = 2; + * @param index The index of the value to return. + * @return The bytes of the to at the given index. */ public com.google.protobuf.ByteString getToBytes(int index) { @@ -3395,6 +3512,9 @@ public final class DaprClientProtos { } /** * repeated string to = 2; + * @param index The index to set the value at. + * @param value The to to set. + * @return This builder for chaining. */ public Builder setTo( int index, java.lang.String value) { @@ -3408,6 +3528,8 @@ public final class DaprClientProtos { } /** * repeated string to = 2; + * @param value The to to add. + * @return This builder for chaining. */ public Builder addTo( java.lang.String value) { @@ -3421,6 +3543,8 @@ public final class DaprClientProtos { } /** * repeated string to = 2; + * @param values The to to add. + * @return This builder for chaining. */ public Builder addAllTo( java.lang.Iterable values) { @@ -3432,6 +3556,7 @@ public final class DaprClientProtos { } /** * repeated string to = 2; + * @return This builder for chaining. */ public Builder clearTo() { to_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -3441,6 +3566,8 @@ public final class DaprClientProtos { } /** * repeated string to = 2; + * @param value The bytes of the to to add. + * @return This builder for chaining. */ public Builder addToBytes( com.google.protobuf.ByteString value) { @@ -3697,6 +3824,7 @@ public final class DaprClientProtos { private java.lang.Object concurrency_ = ""; /** * string concurrency = 4; + * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -3712,6 +3840,7 @@ public final class DaprClientProtos { } /** * string concurrency = 4; + * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -3728,6 +3857,8 @@ public final class DaprClientProtos { } /** * string concurrency = 4; + * @param value The concurrency to set. + * @return This builder for chaining. */ public Builder setConcurrency( java.lang.String value) { @@ -3741,6 +3872,7 @@ public final class DaprClientProtos { } /** * string concurrency = 4; + * @return This builder for chaining. */ public Builder clearConcurrency() { @@ -3750,6 +3882,8 @@ public final class DaprClientProtos { } /** * string concurrency = 4; + * @param value The bytes for concurrency to set. + * @return This builder for chaining. */ public Builder setConcurrencyBytes( com.google.protobuf.ByteString value) { @@ -3821,20 +3955,24 @@ public final class DaprClientProtos { /** * string method = 1; + * @return The method. */ java.lang.String getMethod(); /** * string method = 1; + * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 2; + * @return The data. */ com.google.protobuf.Any getData(); /** @@ -4003,6 +4141,7 @@ public final class DaprClientProtos { private volatile java.lang.Object method_; /** * string method = 1; + * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; @@ -4018,6 +4157,7 @@ public final class DaprClientProtos { } /** * string method = 1; + * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { @@ -4037,12 +4177,14 @@ public final class DaprClientProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 2; + * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -4516,6 +4658,7 @@ public final class DaprClientProtos { private java.lang.Object method_ = ""; /** * string method = 1; + * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; @@ -4531,6 +4674,7 @@ public final class DaprClientProtos { } /** * string method = 1; + * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { @@ -4547,6 +4691,8 @@ public final class DaprClientProtos { } /** * string method = 1; + * @param value The method to set. + * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { @@ -4560,6 +4706,7 @@ public final class DaprClientProtos { } /** * string method = 1; + * @return This builder for chaining. */ public Builder clearMethod() { @@ -4569,6 +4716,8 @@ public final class DaprClientProtos { } /** * string method = 1; + * @param value The bytes for method to set. + * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { @@ -4587,12 +4736,14 @@ public final class DaprClientProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 2; + * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -4880,19 +5031,25 @@ public final class DaprClientProtos { /** * repeated string topics = 1; + * @return A list containing the topics. */ java.util.List getTopicsList(); /** * repeated string topics = 1; + * @return The count of topics. */ int getTopicsCount(); /** * repeated string topics = 1; + * @param index The index of the element to return. + * @return The topics at the given index. */ java.lang.String getTopics(int index); /** * repeated string topics = 1; + * @param index The index of the value to return. + * @return The bytes of the topics at the given index. */ com.google.protobuf.ByteString getTopicsBytes(int index); @@ -4992,6 +5149,7 @@ public final class DaprClientProtos { private com.google.protobuf.LazyStringList topics_; /** * repeated string topics = 1; + * @return A list containing the topics. */ public com.google.protobuf.ProtocolStringList getTopicsList() { @@ -4999,18 +5157,23 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; + * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** * repeated string topics = 1; + * @param index The index of the element to return. + * @return The topics at the given index. */ public java.lang.String getTopics(int index) { return topics_.get(index); } /** * repeated string topics = 1; + * @param index The index of the value to return. + * @return The bytes of the topics at the given index. */ public com.google.protobuf.ByteString getTopicsBytes(int index) { @@ -5347,6 +5510,7 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; + * @return A list containing the topics. */ public com.google.protobuf.ProtocolStringList getTopicsList() { @@ -5354,18 +5518,23 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; + * @return The count of topics. */ public int getTopicsCount() { return topics_.size(); } /** * repeated string topics = 1; + * @param index The index of the element to return. + * @return The topics at the given index. */ public java.lang.String getTopics(int index) { return topics_.get(index); } /** * repeated string topics = 1; + * @param index The index of the value to return. + * @return The bytes of the topics at the given index. */ public com.google.protobuf.ByteString getTopicsBytes(int index) { @@ -5373,6 +5542,9 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; + * @param index The index to set the value at. + * @param value The topics to set. + * @return This builder for chaining. */ public Builder setTopics( int index, java.lang.String value) { @@ -5386,6 +5558,8 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; + * @param value The topics to add. + * @return This builder for chaining. */ public Builder addTopics( java.lang.String value) { @@ -5399,6 +5573,8 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; + * @param values The topics to add. + * @return This builder for chaining. */ public Builder addAllTopics( java.lang.Iterable values) { @@ -5410,6 +5586,7 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; + * @return This builder for chaining. */ public Builder clearTopics() { topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -5419,6 +5596,8 @@ public final class DaprClientProtos { } /** * repeated string topics = 1; + * @param value The bytes of the topics to add. + * @return This builder for chaining. */ public Builder addTopicsBytes( com.google.protobuf.ByteString value) { @@ -5490,19 +5669,25 @@ public final class DaprClientProtos { /** * repeated string bindings = 1; + * @return A list containing the bindings. */ java.util.List getBindingsList(); /** * repeated string bindings = 1; + * @return The count of bindings. */ int getBindingsCount(); /** * repeated string bindings = 1; + * @param index The index of the element to return. + * @return The bindings at the given index. */ java.lang.String getBindings(int index); /** * repeated string bindings = 1; + * @param index The index of the value to return. + * @return The bytes of the bindings at the given index. */ com.google.protobuf.ByteString getBindingsBytes(int index); @@ -5602,6 +5787,7 @@ public final class DaprClientProtos { private com.google.protobuf.LazyStringList bindings_; /** * repeated string bindings = 1; + * @return A list containing the bindings. */ public com.google.protobuf.ProtocolStringList getBindingsList() { @@ -5609,18 +5795,23 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; + * @return The count of bindings. */ public int getBindingsCount() { return bindings_.size(); } /** * repeated string bindings = 1; + * @param index The index of the element to return. + * @return The bindings at the given index. */ public java.lang.String getBindings(int index) { return bindings_.get(index); } /** * repeated string bindings = 1; + * @param index The index of the value to return. + * @return The bytes of the bindings at the given index. */ public com.google.protobuf.ByteString getBindingsBytes(int index) { @@ -5957,6 +6148,7 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; + * @return A list containing the bindings. */ public com.google.protobuf.ProtocolStringList getBindingsList() { @@ -5964,18 +6156,23 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; + * @return The count of bindings. */ public int getBindingsCount() { return bindings_.size(); } /** * repeated string bindings = 1; + * @param index The index of the element to return. + * @return The bindings at the given index. */ public java.lang.String getBindings(int index) { return bindings_.get(index); } /** * repeated string bindings = 1; + * @param index The index of the value to return. + * @return The bytes of the bindings at the given index. */ public com.google.protobuf.ByteString getBindingsBytes(int index) { @@ -5983,6 +6180,9 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; + * @param index The index to set the value at. + * @param value The bindings to set. + * @return This builder for chaining. */ public Builder setBindings( int index, java.lang.String value) { @@ -5996,6 +6196,8 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; + * @param value The bindings to add. + * @return This builder for chaining. */ public Builder addBindings( java.lang.String value) { @@ -6009,6 +6211,8 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; + * @param values The bindings to add. + * @return This builder for chaining. */ public Builder addAllBindings( java.lang.Iterable values) { @@ -6020,6 +6224,7 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; + * @return This builder for chaining. */ public Builder clearBindings() { bindings_ = com.google.protobuf.LazyStringArrayList.EMPTY; @@ -6029,6 +6234,8 @@ public final class DaprClientProtos { } /** * repeated string bindings = 1; + * @param value The bytes of the bindings to add. + * @return This builder for chaining. */ public Builder addBindingsBytes( com.google.protobuf.ByteString value) { @@ -6100,20 +6307,24 @@ public final class DaprClientProtos { /** * string key = 1; + * @return The key. */ java.lang.String getKey(); /** * string key = 1; + * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * .google.protobuf.Any value = 2; + * @return Whether the value field is set. */ boolean hasValue(); /** * .google.protobuf.Any value = 2; + * @return The value. */ com.google.protobuf.Any getValue(); /** @@ -6123,10 +6334,12 @@ public final class DaprClientProtos { /** * string etag = 3; + * @return The etag. */ java.lang.String getEtag(); /** * string etag = 3; + * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); @@ -6167,10 +6380,12 @@ public final class DaprClientProtos { /** * .daprclient.StateOptions options = 5; + * @return Whether the options field is set. */ boolean hasOptions(); /** * .daprclient.StateOptions options = 5; + * @return The options. */ io.dapr.DaprClientProtos.StateOptions getOptions(); /** @@ -6325,6 +6540,7 @@ public final class DaprClientProtos { private volatile java.lang.Object key_; /** * string key = 1; + * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -6340,6 +6556,7 @@ public final class DaprClientProtos { } /** * string key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -6359,12 +6576,14 @@ public final class DaprClientProtos { private com.google.protobuf.Any value_; /** * .google.protobuf.Any value = 2; + * @return Whether the value field is set. */ public boolean hasValue() { return value_ != null; } /** * .google.protobuf.Any value = 2; + * @return The value. */ public com.google.protobuf.Any getValue() { return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; @@ -6380,6 +6599,7 @@ public final class DaprClientProtos { private volatile java.lang.Object etag_; /** * string etag = 3; + * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -6395,6 +6615,7 @@ public final class DaprClientProtos { } /** * string etag = 3; + * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -6490,12 +6711,14 @@ public final class DaprClientProtos { private io.dapr.DaprClientProtos.StateOptions options_; /** * .daprclient.StateOptions options = 5; + * @return Whether the options field is set. */ public boolean hasOptions() { return options_ != null; } /** * .daprclient.StateOptions options = 5; + * @return The options. */ public io.dapr.DaprClientProtos.StateOptions getOptions() { return options_ == null ? io.dapr.DaprClientProtos.StateOptions.getDefaultInstance() : options_; @@ -6940,6 +7163,7 @@ public final class DaprClientProtos { private java.lang.Object key_ = ""; /** * string key = 1; + * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -6955,6 +7179,7 @@ public final class DaprClientProtos { } /** * string key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -6971,6 +7196,8 @@ public final class DaprClientProtos { } /** * string key = 1; + * @param value The key to set. + * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { @@ -6984,6 +7211,7 @@ public final class DaprClientProtos { } /** * string key = 1; + * @return This builder for chaining. */ public Builder clearKey() { @@ -6993,6 +7221,8 @@ public final class DaprClientProtos { } /** * string key = 1; + * @param value The bytes for key to set. + * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -7011,12 +7241,14 @@ public final class DaprClientProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_; /** * .google.protobuf.Any value = 2; + * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .google.protobuf.Any value = 2; + * @return The value. */ public com.google.protobuf.Any getValue() { if (valueBuilder_ == null) { @@ -7126,6 +7358,7 @@ public final class DaprClientProtos { private java.lang.Object etag_ = ""; /** * string etag = 3; + * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -7141,6 +7374,7 @@ public final class DaprClientProtos { } /** * string etag = 3; + * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -7157,6 +7391,8 @@ public final class DaprClientProtos { } /** * string etag = 3; + * @param value The etag to set. + * @return This builder for chaining. */ public Builder setEtag( java.lang.String value) { @@ -7170,6 +7406,7 @@ public final class DaprClientProtos { } /** * string etag = 3; + * @return This builder for chaining. */ public Builder clearEtag() { @@ -7179,6 +7416,8 @@ public final class DaprClientProtos { } /** * string etag = 3; + * @param value The bytes for etag to set. + * @return This builder for chaining. */ public Builder setEtagBytes( com.google.protobuf.ByteString value) { @@ -7320,12 +7559,14 @@ public final class DaprClientProtos { io.dapr.DaprClientProtos.StateOptions, io.dapr.DaprClientProtos.StateOptions.Builder, io.dapr.DaprClientProtos.StateOptionsOrBuilder> optionsBuilder_; /** * .daprclient.StateOptions options = 5; + * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * .daprclient.StateOptions options = 5; + * @return The options. */ public io.dapr.DaprClientProtos.StateOptions getOptions() { if (optionsBuilder_ == null) { @@ -7490,30 +7731,36 @@ public final class DaprClientProtos { /** * string concurrency = 1; + * @return The concurrency. */ java.lang.String getConcurrency(); /** * string concurrency = 1; + * @return The bytes for concurrency. */ com.google.protobuf.ByteString getConcurrencyBytes(); /** * string consistency = 2; + * @return The consistency. */ java.lang.String getConsistency(); /** * string consistency = 2; + * @return The bytes for consistency. */ com.google.protobuf.ByteString getConsistencyBytes(); /** * .daprclient.RetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); /** * .daprclient.RetryPolicy retryPolicy = 3; + * @return The retryPolicy. */ io.dapr.DaprClientProtos.RetryPolicy getRetryPolicy(); /** @@ -7629,6 +7876,7 @@ public final class DaprClientProtos { private volatile java.lang.Object concurrency_; /** * string concurrency = 1; + * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -7644,6 +7892,7 @@ public final class DaprClientProtos { } /** * string concurrency = 1; + * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -7663,6 +7912,7 @@ public final class DaprClientProtos { private volatile java.lang.Object consistency_; /** * string consistency = 2; + * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -7678,6 +7928,7 @@ public final class DaprClientProtos { } /** * string consistency = 2; + * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -7697,12 +7948,14 @@ public final class DaprClientProtos { private io.dapr.DaprClientProtos.RetryPolicy retryPolicy_; /** * .daprclient.RetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicy_ != null; } /** * .daprclient.RetryPolicy retryPolicy = 3; + * @return The retryPolicy. */ public io.dapr.DaprClientProtos.RetryPolicy getRetryPolicy() { return retryPolicy_ == null ? io.dapr.DaprClientProtos.RetryPolicy.getDefaultInstance() : retryPolicy_; @@ -8066,6 +8319,7 @@ public final class DaprClientProtos { private java.lang.Object concurrency_ = ""; /** * string concurrency = 1; + * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -8081,6 +8335,7 @@ public final class DaprClientProtos { } /** * string concurrency = 1; + * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -8097,6 +8352,8 @@ public final class DaprClientProtos { } /** * string concurrency = 1; + * @param value The concurrency to set. + * @return This builder for chaining. */ public Builder setConcurrency( java.lang.String value) { @@ -8110,6 +8367,7 @@ public final class DaprClientProtos { } /** * string concurrency = 1; + * @return This builder for chaining. */ public Builder clearConcurrency() { @@ -8119,6 +8377,8 @@ public final class DaprClientProtos { } /** * string concurrency = 1; + * @param value The bytes for concurrency to set. + * @return This builder for chaining. */ public Builder setConcurrencyBytes( com.google.protobuf.ByteString value) { @@ -8135,6 +8395,7 @@ public final class DaprClientProtos { private java.lang.Object consistency_ = ""; /** * string consistency = 2; + * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -8150,6 +8411,7 @@ public final class DaprClientProtos { } /** * string consistency = 2; + * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -8166,6 +8428,8 @@ public final class DaprClientProtos { } /** * string consistency = 2; + * @param value The consistency to set. + * @return This builder for chaining. */ public Builder setConsistency( java.lang.String value) { @@ -8179,6 +8443,7 @@ public final class DaprClientProtos { } /** * string consistency = 2; + * @return This builder for chaining. */ public Builder clearConsistency() { @@ -8188,6 +8453,8 @@ public final class DaprClientProtos { } /** * string consistency = 2; + * @param value The bytes for consistency to set. + * @return This builder for chaining. */ public Builder setConsistencyBytes( com.google.protobuf.ByteString value) { @@ -8206,12 +8473,14 @@ public final class DaprClientProtos { io.dapr.DaprClientProtos.RetryPolicy, io.dapr.DaprClientProtos.RetryPolicy.Builder, io.dapr.DaprClientProtos.RetryPolicyOrBuilder> retryPolicyBuilder_; /** * .daprclient.RetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicyBuilder_ != null || retryPolicy_ != null; } /** * .daprclient.RetryPolicy retryPolicy = 3; + * @return The retryPolicy. */ public io.dapr.DaprClientProtos.RetryPolicy getRetryPolicy() { if (retryPolicyBuilder_ == null) { @@ -8376,25 +8645,30 @@ public final class DaprClientProtos { /** * int32 threshold = 1; + * @return The threshold. */ int getThreshold(); /** * string pattern = 2; + * @return The pattern. */ java.lang.String getPattern(); /** * string pattern = 2; + * @return The bytes for pattern. */ com.google.protobuf.ByteString getPatternBytes(); /** * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. */ boolean hasInterval(); /** * .google.protobuf.Duration interval = 3; + * @return The interval. */ com.google.protobuf.Duration getInterval(); /** @@ -8508,6 +8782,7 @@ public final class DaprClientProtos { private int threshold_; /** * int32 threshold = 1; + * @return The threshold. */ public int getThreshold() { return threshold_; @@ -8517,6 +8792,7 @@ public final class DaprClientProtos { private volatile java.lang.Object pattern_; /** * string pattern = 2; + * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -8532,6 +8808,7 @@ public final class DaprClientProtos { } /** * string pattern = 2; + * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -8551,12 +8828,14 @@ public final class DaprClientProtos { private com.google.protobuf.Duration interval_; /** * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. */ public boolean hasInterval() { return interval_ != null; } /** * .google.protobuf.Duration interval = 3; + * @return The interval. */ public com.google.protobuf.Duration getInterval() { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; @@ -8920,12 +9199,15 @@ public final class DaprClientProtos { private int threshold_ ; /** * int32 threshold = 1; + * @return The threshold. */ public int getThreshold() { return threshold_; } /** * int32 threshold = 1; + * @param value The threshold to set. + * @return This builder for chaining. */ public Builder setThreshold(int value) { @@ -8935,6 +9217,7 @@ public final class DaprClientProtos { } /** * int32 threshold = 1; + * @return This builder for chaining. */ public Builder clearThreshold() { @@ -8946,6 +9229,7 @@ public final class DaprClientProtos { private java.lang.Object pattern_ = ""; /** * string pattern = 2; + * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -8961,6 +9245,7 @@ public final class DaprClientProtos { } /** * string pattern = 2; + * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -8977,6 +9262,8 @@ public final class DaprClientProtos { } /** * string pattern = 2; + * @param value The pattern to set. + * @return This builder for chaining. */ public Builder setPattern( java.lang.String value) { @@ -8990,6 +9277,7 @@ public final class DaprClientProtos { } /** * string pattern = 2; + * @return This builder for chaining. */ public Builder clearPattern() { @@ -8999,6 +9287,8 @@ public final class DaprClientProtos { } /** * string pattern = 2; + * @param value The bytes for pattern to set. + * @return This builder for chaining. */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { @@ -9017,12 +9307,14 @@ public final class DaprClientProtos { com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> intervalBuilder_; /** * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** * .google.protobuf.Duration interval = 3; + * @return The interval. */ public com.google.protobuf.Duration getInterval() { if (intervalBuilder_ == null) { diff --git a/client/src/main/java/io/dapr/DaprGrpc.java b/sdk/src/main/java/io/dapr/DaprGrpc.java similarity index 100% rename from client/src/main/java/io/dapr/DaprGrpc.java rename to sdk/src/main/java/io/dapr/DaprGrpc.java diff --git a/client/src/main/java/io/dapr/DaprProtos.java b/sdk/src/main/java/io/dapr/DaprProtos.java similarity index 97% rename from client/src/main/java/io/dapr/DaprProtos.java rename to sdk/src/main/java/io/dapr/DaprProtos.java index 802d89314..7da2fc280 100644 --- a/client/src/main/java/io/dapr/DaprProtos.java +++ b/sdk/src/main/java/io/dapr/DaprProtos.java @@ -20,10 +20,12 @@ public final class DaprProtos { /** * .google.protobuf.Any data = 1; + * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 1; + * @return The data. */ com.google.protobuf.Any getData(); /** @@ -185,12 +187,14 @@ public final class DaprProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 1; + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 1; + * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -649,12 +653,14 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 1; + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 1; + * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -942,30 +948,36 @@ public final class DaprProtos { /** * string key = 1; + * @return The key. */ java.lang.String getKey(); /** * string key = 1; + * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * string etag = 2; + * @return The etag. */ java.lang.String getEtag(); /** * string etag = 2; + * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); /** * .dapr.StateOptions options = 3; + * @return Whether the options field is set. */ boolean hasOptions(); /** * .dapr.StateOptions options = 3; + * @return The options. */ io.dapr.DaprProtos.StateOptions getOptions(); /** @@ -1081,6 +1093,7 @@ public final class DaprProtos { private volatile java.lang.Object key_; /** * string key = 1; + * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -1096,6 +1109,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -1115,6 +1129,7 @@ public final class DaprProtos { private volatile java.lang.Object etag_; /** * string etag = 2; + * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -1130,6 +1145,7 @@ public final class DaprProtos { } /** * string etag = 2; + * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -1149,12 +1165,14 @@ public final class DaprProtos { private io.dapr.DaprProtos.StateOptions options_; /** * .dapr.StateOptions options = 3; + * @return Whether the options field is set. */ public boolean hasOptions() { return options_ != null; } /** * .dapr.StateOptions options = 3; + * @return The options. */ public io.dapr.DaprProtos.StateOptions getOptions() { return options_ == null ? io.dapr.DaprProtos.StateOptions.getDefaultInstance() : options_; @@ -1518,6 +1536,7 @@ public final class DaprProtos { private java.lang.Object key_ = ""; /** * string key = 1; + * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -1533,6 +1552,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -1549,6 +1569,8 @@ public final class DaprProtos { } /** * string key = 1; + * @param value The key to set. + * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { @@ -1562,6 +1584,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return This builder for chaining. */ public Builder clearKey() { @@ -1571,6 +1594,8 @@ public final class DaprProtos { } /** * string key = 1; + * @param value The bytes for key to set. + * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -1587,6 +1612,7 @@ public final class DaprProtos { private java.lang.Object etag_ = ""; /** * string etag = 2; + * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -1602,6 +1628,7 @@ public final class DaprProtos { } /** * string etag = 2; + * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -1618,6 +1645,8 @@ public final class DaprProtos { } /** * string etag = 2; + * @param value The etag to set. + * @return This builder for chaining. */ public Builder setEtag( java.lang.String value) { @@ -1631,6 +1660,7 @@ public final class DaprProtos { } /** * string etag = 2; + * @return This builder for chaining. */ public Builder clearEtag() { @@ -1640,6 +1670,8 @@ public final class DaprProtos { } /** * string etag = 2; + * @param value The bytes for etag to set. + * @return This builder for chaining. */ public Builder setEtagBytes( com.google.protobuf.ByteString value) { @@ -1658,12 +1690,14 @@ public final class DaprProtos { io.dapr.DaprProtos.StateOptions, io.dapr.DaprProtos.StateOptions.Builder, io.dapr.DaprProtos.StateOptionsOrBuilder> optionsBuilder_; /** * .dapr.StateOptions options = 3; + * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * .dapr.StateOptions options = 3; + * @return The options. */ public io.dapr.DaprProtos.StateOptions getOptions() { if (optionsBuilder_ == null) { @@ -2616,20 +2650,24 @@ public final class DaprProtos { /** * string key = 1; + * @return The key. */ java.lang.String getKey(); /** * string key = 1; + * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * string consistency = 2; + * @return The consistency. */ java.lang.String getConsistency(); /** * string consistency = 2; + * @return The bytes for consistency. */ com.google.protobuf.ByteString getConsistencyBytes(); @@ -2729,6 +2767,7 @@ public final class DaprProtos { private volatile java.lang.Object key_; /** * string key = 1; + * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -2744,6 +2783,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -2763,6 +2803,7 @@ public final class DaprProtos { private volatile java.lang.Object consistency_; /** * string consistency = 2; + * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -2778,6 +2819,7 @@ public final class DaprProtos { } /** * string consistency = 2; + * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -3115,6 +3157,7 @@ public final class DaprProtos { private java.lang.Object key_ = ""; /** * string key = 1; + * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -3130,6 +3173,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -3146,6 +3190,8 @@ public final class DaprProtos { } /** * string key = 1; + * @param value The key to set. + * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { @@ -3159,6 +3205,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return This builder for chaining. */ public Builder clearKey() { @@ -3168,6 +3215,8 @@ public final class DaprProtos { } /** * string key = 1; + * @param value The bytes for key to set. + * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -3184,6 +3233,7 @@ public final class DaprProtos { private java.lang.Object consistency_ = ""; /** * string consistency = 2; + * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -3199,6 +3249,7 @@ public final class DaprProtos { } /** * string consistency = 2; + * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -3215,6 +3266,8 @@ public final class DaprProtos { } /** * string consistency = 2; + * @param value The consistency to set. + * @return This builder for chaining. */ public Builder setConsistency( java.lang.String value) { @@ -3228,6 +3281,7 @@ public final class DaprProtos { } /** * string consistency = 2; + * @return This builder for chaining. */ public Builder clearConsistency() { @@ -3237,6 +3291,8 @@ public final class DaprProtos { } /** * string consistency = 2; + * @param value The bytes for consistency to set. + * @return This builder for chaining. */ public Builder setConsistencyBytes( com.google.protobuf.ByteString value) { @@ -3308,10 +3364,12 @@ public final class DaprProtos { /** * .google.protobuf.Any data = 1; + * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 1; + * @return The data. */ com.google.protobuf.Any getData(); /** @@ -3321,10 +3379,12 @@ public final class DaprProtos { /** * string etag = 2; + * @return The etag. */ java.lang.String getEtag(); /** * string etag = 2; + * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); @@ -3430,12 +3490,14 @@ public final class DaprProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 1; + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 1; + * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -3451,6 +3513,7 @@ public final class DaprProtos { private volatile java.lang.Object etag_; /** * string etag = 2; + * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -3466,6 +3529,7 @@ public final class DaprProtos { } /** * string etag = 2; + * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -3818,12 +3882,14 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 1; + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 1; + * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -3933,6 +3999,7 @@ public final class DaprProtos { private java.lang.Object etag_ = ""; /** * string etag = 2; + * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -3948,6 +4015,7 @@ public final class DaprProtos { } /** * string etag = 2; + * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -3964,6 +4032,8 @@ public final class DaprProtos { } /** * string etag = 2; + * @param value The etag to set. + * @return This builder for chaining. */ public Builder setEtag( java.lang.String value) { @@ -3977,6 +4047,7 @@ public final class DaprProtos { } /** * string etag = 2; + * @return This builder for chaining. */ public Builder clearEtag() { @@ -3986,6 +4057,8 @@ public final class DaprProtos { } /** * string etag = 2; + * @param value The bytes for etag to set. + * @return This builder for chaining. */ public Builder setEtagBytes( com.google.protobuf.ByteString value) { @@ -4057,20 +4130,24 @@ public final class DaprProtos { /** * string name = 1; + * @return The name. */ java.lang.String getName(); /** * string name = 1; + * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 2; + * @return The data. */ com.google.protobuf.Any getData(); /** @@ -4239,6 +4316,7 @@ public final class DaprProtos { private volatile java.lang.Object name_; /** * string name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -4254,6 +4332,7 @@ public final class DaprProtos { } /** * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -4273,12 +4352,14 @@ public final class DaprProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 2; + * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -4752,6 +4833,7 @@ public final class DaprProtos { private java.lang.Object name_ = ""; /** * string name = 1; + * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; @@ -4767,6 +4849,7 @@ public final class DaprProtos { } /** * string name = 1; + * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { @@ -4783,6 +4866,8 @@ public final class DaprProtos { } /** * string name = 1; + * @param value The name to set. + * @return This builder for chaining. */ public Builder setName( java.lang.String value) { @@ -4796,6 +4881,7 @@ public final class DaprProtos { } /** * string name = 1; + * @return This builder for chaining. */ public Builder clearName() { @@ -4805,6 +4891,8 @@ public final class DaprProtos { } /** * string name = 1; + * @param value The bytes for name to set. + * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { @@ -4823,12 +4911,14 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 2; + * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -5116,30 +5206,36 @@ public final class DaprProtos { /** * string id = 1; + * @return The id. */ java.lang.String getId(); /** * string id = 1; + * @return The bytes for id. */ com.google.protobuf.ByteString getIdBytes(); /** * string method = 2; + * @return The method. */ java.lang.String getMethod(); /** * string method = 2; + * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** * .google.protobuf.Any data = 3; + * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 3; + * @return The data. */ com.google.protobuf.Any getData(); /** @@ -5315,6 +5411,7 @@ public final class DaprProtos { private volatile java.lang.Object id_; /** * string id = 1; + * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; @@ -5330,6 +5427,7 @@ public final class DaprProtos { } /** * string id = 1; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { @@ -5349,6 +5447,7 @@ public final class DaprProtos { private volatile java.lang.Object method_; /** * string method = 2; + * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; @@ -5364,6 +5463,7 @@ public final class DaprProtos { } /** * string method = 2; + * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { @@ -5383,12 +5483,14 @@ public final class DaprProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 3; + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 3; + * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -5879,6 +5981,7 @@ public final class DaprProtos { private java.lang.Object id_ = ""; /** * string id = 1; + * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; @@ -5894,6 +5997,7 @@ public final class DaprProtos { } /** * string id = 1; + * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { @@ -5910,6 +6014,8 @@ public final class DaprProtos { } /** * string id = 1; + * @param value The id to set. + * @return This builder for chaining. */ public Builder setId( java.lang.String value) { @@ -5923,6 +6029,7 @@ public final class DaprProtos { } /** * string id = 1; + * @return This builder for chaining. */ public Builder clearId() { @@ -5932,6 +6039,8 @@ public final class DaprProtos { } /** * string id = 1; + * @param value The bytes for id to set. + * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { @@ -5948,6 +6057,7 @@ public final class DaprProtos { private java.lang.Object method_ = ""; /** * string method = 2; + * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; @@ -5963,6 +6073,7 @@ public final class DaprProtos { } /** * string method = 2; + * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { @@ -5979,6 +6090,8 @@ public final class DaprProtos { } /** * string method = 2; + * @param value The method to set. + * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { @@ -5992,6 +6105,7 @@ public final class DaprProtos { } /** * string method = 2; + * @return This builder for chaining. */ public Builder clearMethod() { @@ -6001,6 +6115,8 @@ public final class DaprProtos { } /** * string method = 2; + * @param value The bytes for method to set. + * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { @@ -6019,12 +6135,14 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 3; + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 3; + * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -6312,20 +6430,24 @@ public final class DaprProtos { /** * string topic = 1; + * @return The topic. */ java.lang.String getTopic(); /** * string topic = 1; + * @return The bytes for topic. */ com.google.protobuf.ByteString getTopicBytes(); /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ boolean hasData(); /** * .google.protobuf.Any data = 2; + * @return The data. */ com.google.protobuf.Any getData(); /** @@ -6434,6 +6556,7 @@ public final class DaprProtos { private volatile java.lang.Object topic_; /** * string topic = 1; + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -6449,6 +6572,7 @@ public final class DaprProtos { } /** * string topic = 1; + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { @@ -6468,12 +6592,14 @@ public final class DaprProtos { private com.google.protobuf.Any data_; /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ public boolean hasData() { return data_ != null; } /** * .google.protobuf.Any data = 2; + * @return The data. */ public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; @@ -6820,6 +6946,7 @@ public final class DaprProtos { private java.lang.Object topic_ = ""; /** * string topic = 1; + * @return The topic. */ public java.lang.String getTopic() { java.lang.Object ref = topic_; @@ -6835,6 +6962,7 @@ public final class DaprProtos { } /** * string topic = 1; + * @return The bytes for topic. */ public com.google.protobuf.ByteString getTopicBytes() { @@ -6851,6 +6979,8 @@ public final class DaprProtos { } /** * string topic = 1; + * @param value The topic to set. + * @return This builder for chaining. */ public Builder setTopic( java.lang.String value) { @@ -6864,6 +6994,7 @@ public final class DaprProtos { } /** * string topic = 1; + * @return This builder for chaining. */ public Builder clearTopic() { @@ -6873,6 +7004,8 @@ public final class DaprProtos { } /** * string topic = 1; + * @param value The bytes for topic to set. + * @return This builder for chaining. */ public Builder setTopicBytes( com.google.protobuf.ByteString value) { @@ -6891,12 +7024,14 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** * .google.protobuf.Any data = 2; + * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** * .google.protobuf.Any data = 2; + * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { @@ -7061,20 +7196,24 @@ public final class DaprProtos { /** * string key = 1; + * @return The key. */ java.lang.String getKey(); /** * string key = 1; + * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * .google.protobuf.Any value = 2; + * @return Whether the value field is set. */ boolean hasValue(); /** * .google.protobuf.Any value = 2; + * @return The value. */ com.google.protobuf.Any getValue(); /** @@ -7084,10 +7223,12 @@ public final class DaprProtos { /** * string etag = 3; + * @return The etag. */ java.lang.String getEtag(); /** * string etag = 3; + * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); @@ -7128,10 +7269,12 @@ public final class DaprProtos { /** * .dapr.StateOptions options = 5; + * @return Whether the options field is set. */ boolean hasOptions(); /** * .dapr.StateOptions options = 5; + * @return The options. */ io.dapr.DaprProtos.StateOptions getOptions(); /** @@ -7286,6 +7429,7 @@ public final class DaprProtos { private volatile java.lang.Object key_; /** * string key = 1; + * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -7301,6 +7445,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -7320,12 +7465,14 @@ public final class DaprProtos { private com.google.protobuf.Any value_; /** * .google.protobuf.Any value = 2; + * @return Whether the value field is set. */ public boolean hasValue() { return value_ != null; } /** * .google.protobuf.Any value = 2; + * @return The value. */ public com.google.protobuf.Any getValue() { return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; @@ -7341,6 +7488,7 @@ public final class DaprProtos { private volatile java.lang.Object etag_; /** * string etag = 3; + * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -7356,6 +7504,7 @@ public final class DaprProtos { } /** * string etag = 3; + * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -7451,12 +7600,14 @@ public final class DaprProtos { private io.dapr.DaprProtos.StateOptions options_; /** * .dapr.StateOptions options = 5; + * @return Whether the options field is set. */ public boolean hasOptions() { return options_ != null; } /** * .dapr.StateOptions options = 5; + * @return The options. */ public io.dapr.DaprProtos.StateOptions getOptions() { return options_ == null ? io.dapr.DaprProtos.StateOptions.getDefaultInstance() : options_; @@ -7901,6 +8052,7 @@ public final class DaprProtos { private java.lang.Object key_ = ""; /** * string key = 1; + * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -7916,6 +8068,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -7932,6 +8085,8 @@ public final class DaprProtos { } /** * string key = 1; + * @param value The key to set. + * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { @@ -7945,6 +8100,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return This builder for chaining. */ public Builder clearKey() { @@ -7954,6 +8110,8 @@ public final class DaprProtos { } /** * string key = 1; + * @param value The bytes for key to set. + * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -7972,12 +8130,14 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_; /** * .google.protobuf.Any value = 2; + * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .google.protobuf.Any value = 2; + * @return The value. */ public com.google.protobuf.Any getValue() { if (valueBuilder_ == null) { @@ -8087,6 +8247,7 @@ public final class DaprProtos { private java.lang.Object etag_ = ""; /** * string etag = 3; + * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -8102,6 +8263,7 @@ public final class DaprProtos { } /** * string etag = 3; + * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -8118,6 +8280,8 @@ public final class DaprProtos { } /** * string etag = 3; + * @param value The etag to set. + * @return This builder for chaining. */ public Builder setEtag( java.lang.String value) { @@ -8131,6 +8295,7 @@ public final class DaprProtos { } /** * string etag = 3; + * @return This builder for chaining. */ public Builder clearEtag() { @@ -8140,6 +8305,8 @@ public final class DaprProtos { } /** * string etag = 3; + * @param value The bytes for etag to set. + * @return This builder for chaining. */ public Builder setEtagBytes( com.google.protobuf.ByteString value) { @@ -8281,12 +8448,14 @@ public final class DaprProtos { io.dapr.DaprProtos.StateOptions, io.dapr.DaprProtos.StateOptions.Builder, io.dapr.DaprProtos.StateOptionsOrBuilder> optionsBuilder_; /** * .dapr.StateOptions options = 5; + * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * .dapr.StateOptions options = 5; + * @return The options. */ public io.dapr.DaprProtos.StateOptions getOptions() { if (optionsBuilder_ == null) { @@ -8451,30 +8620,36 @@ public final class DaprProtos { /** * string concurrency = 1; + * @return The concurrency. */ java.lang.String getConcurrency(); /** * string concurrency = 1; + * @return The bytes for concurrency. */ com.google.protobuf.ByteString getConcurrencyBytes(); /** * string consistency = 2; + * @return The consistency. */ java.lang.String getConsistency(); /** * string consistency = 2; + * @return The bytes for consistency. */ com.google.protobuf.ByteString getConsistencyBytes(); /** * .dapr.RetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); /** * .dapr.RetryPolicy retryPolicy = 3; + * @return The retryPolicy. */ io.dapr.DaprProtos.RetryPolicy getRetryPolicy(); /** @@ -8590,6 +8765,7 @@ public final class DaprProtos { private volatile java.lang.Object concurrency_; /** * string concurrency = 1; + * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -8605,6 +8781,7 @@ public final class DaprProtos { } /** * string concurrency = 1; + * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -8624,6 +8801,7 @@ public final class DaprProtos { private volatile java.lang.Object consistency_; /** * string consistency = 2; + * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -8639,6 +8817,7 @@ public final class DaprProtos { } /** * string consistency = 2; + * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -8658,12 +8837,14 @@ public final class DaprProtos { private io.dapr.DaprProtos.RetryPolicy retryPolicy_; /** * .dapr.RetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicy_ != null; } /** * .dapr.RetryPolicy retryPolicy = 3; + * @return The retryPolicy. */ public io.dapr.DaprProtos.RetryPolicy getRetryPolicy() { return retryPolicy_ == null ? io.dapr.DaprProtos.RetryPolicy.getDefaultInstance() : retryPolicy_; @@ -9027,6 +9208,7 @@ public final class DaprProtos { private java.lang.Object concurrency_ = ""; /** * string concurrency = 1; + * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -9042,6 +9224,7 @@ public final class DaprProtos { } /** * string concurrency = 1; + * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -9058,6 +9241,8 @@ public final class DaprProtos { } /** * string concurrency = 1; + * @param value The concurrency to set. + * @return This builder for chaining. */ public Builder setConcurrency( java.lang.String value) { @@ -9071,6 +9256,7 @@ public final class DaprProtos { } /** * string concurrency = 1; + * @return This builder for chaining. */ public Builder clearConcurrency() { @@ -9080,6 +9266,8 @@ public final class DaprProtos { } /** * string concurrency = 1; + * @param value The bytes for concurrency to set. + * @return This builder for chaining. */ public Builder setConcurrencyBytes( com.google.protobuf.ByteString value) { @@ -9096,6 +9284,7 @@ public final class DaprProtos { private java.lang.Object consistency_ = ""; /** * string consistency = 2; + * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -9111,6 +9300,7 @@ public final class DaprProtos { } /** * string consistency = 2; + * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -9127,6 +9317,8 @@ public final class DaprProtos { } /** * string consistency = 2; + * @param value The consistency to set. + * @return This builder for chaining. */ public Builder setConsistency( java.lang.String value) { @@ -9140,6 +9332,7 @@ public final class DaprProtos { } /** * string consistency = 2; + * @return This builder for chaining. */ public Builder clearConsistency() { @@ -9149,6 +9342,8 @@ public final class DaprProtos { } /** * string consistency = 2; + * @param value The bytes for consistency to set. + * @return This builder for chaining. */ public Builder setConsistencyBytes( com.google.protobuf.ByteString value) { @@ -9167,12 +9362,14 @@ public final class DaprProtos { io.dapr.DaprProtos.RetryPolicy, io.dapr.DaprProtos.RetryPolicy.Builder, io.dapr.DaprProtos.RetryPolicyOrBuilder> retryPolicyBuilder_; /** * .dapr.RetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicyBuilder_ != null || retryPolicy_ != null; } /** * .dapr.RetryPolicy retryPolicy = 3; + * @return The retryPolicy. */ public io.dapr.DaprProtos.RetryPolicy getRetryPolicy() { if (retryPolicyBuilder_ == null) { @@ -9337,25 +9534,30 @@ public final class DaprProtos { /** * int32 threshold = 1; + * @return The threshold. */ int getThreshold(); /** * string pattern = 2; + * @return The pattern. */ java.lang.String getPattern(); /** * string pattern = 2; + * @return The bytes for pattern. */ com.google.protobuf.ByteString getPatternBytes(); /** * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. */ boolean hasInterval(); /** * .google.protobuf.Duration interval = 3; + * @return The interval. */ com.google.protobuf.Duration getInterval(); /** @@ -9469,6 +9671,7 @@ public final class DaprProtos { private int threshold_; /** * int32 threshold = 1; + * @return The threshold. */ public int getThreshold() { return threshold_; @@ -9478,6 +9681,7 @@ public final class DaprProtos { private volatile java.lang.Object pattern_; /** * string pattern = 2; + * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -9493,6 +9697,7 @@ public final class DaprProtos { } /** * string pattern = 2; + * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -9512,12 +9717,14 @@ public final class DaprProtos { private com.google.protobuf.Duration interval_; /** * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. */ public boolean hasInterval() { return interval_ != null; } /** * .google.protobuf.Duration interval = 3; + * @return The interval. */ public com.google.protobuf.Duration getInterval() { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; @@ -9881,12 +10088,15 @@ public final class DaprProtos { private int threshold_ ; /** * int32 threshold = 1; + * @return The threshold. */ public int getThreshold() { return threshold_; } /** * int32 threshold = 1; + * @param value The threshold to set. + * @return This builder for chaining. */ public Builder setThreshold(int value) { @@ -9896,6 +10106,7 @@ public final class DaprProtos { } /** * int32 threshold = 1; + * @return This builder for chaining. */ public Builder clearThreshold() { @@ -9907,6 +10118,7 @@ public final class DaprProtos { private java.lang.Object pattern_ = ""; /** * string pattern = 2; + * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -9922,6 +10134,7 @@ public final class DaprProtos { } /** * string pattern = 2; + * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -9938,6 +10151,8 @@ public final class DaprProtos { } /** * string pattern = 2; + * @param value The pattern to set. + * @return This builder for chaining. */ public Builder setPattern( java.lang.String value) { @@ -9951,6 +10166,7 @@ public final class DaprProtos { } /** * string pattern = 2; + * @return This builder for chaining. */ public Builder clearPattern() { @@ -9960,6 +10176,8 @@ public final class DaprProtos { } /** * string pattern = 2; + * @param value The bytes for pattern to set. + * @return This builder for chaining. */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { @@ -9978,12 +10196,14 @@ public final class DaprProtos { com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> intervalBuilder_; /** * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** * .google.protobuf.Duration interval = 3; + * @return The interval. */ public com.google.protobuf.Duration getInterval() { if (intervalBuilder_ == null) { @@ -10148,20 +10368,24 @@ public final class DaprProtos { /** * string key = 1; + * @return The key. */ java.lang.String getKey(); /** * string key = 1; + * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** * .google.protobuf.Any value = 2; + * @return Whether the value field is set. */ boolean hasValue(); /** * .google.protobuf.Any value = 2; + * @return The value. */ com.google.protobuf.Any getValue(); /** @@ -10171,10 +10395,12 @@ public final class DaprProtos { /** * string etag = 3; + * @return The etag. */ java.lang.String getEtag(); /** * string etag = 3; + * @return The bytes for etag. */ com.google.protobuf.ByteString getEtagBytes(); @@ -10215,10 +10441,12 @@ public final class DaprProtos { /** * .dapr.StateRequestOptions options = 5; + * @return Whether the options field is set. */ boolean hasOptions(); /** * .dapr.StateRequestOptions options = 5; + * @return The options. */ io.dapr.DaprProtos.StateRequestOptions getOptions(); /** @@ -10373,6 +10601,7 @@ public final class DaprProtos { private volatile java.lang.Object key_; /** * string key = 1; + * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -10388,6 +10617,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -10407,12 +10637,14 @@ public final class DaprProtos { private com.google.protobuf.Any value_; /** * .google.protobuf.Any value = 2; + * @return Whether the value field is set. */ public boolean hasValue() { return value_ != null; } /** * .google.protobuf.Any value = 2; + * @return The value. */ public com.google.protobuf.Any getValue() { return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_; @@ -10428,6 +10660,7 @@ public final class DaprProtos { private volatile java.lang.Object etag_; /** * string etag = 3; + * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -10443,6 +10676,7 @@ public final class DaprProtos { } /** * string etag = 3; + * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -10538,12 +10772,14 @@ public final class DaprProtos { private io.dapr.DaprProtos.StateRequestOptions options_; /** * .dapr.StateRequestOptions options = 5; + * @return Whether the options field is set. */ public boolean hasOptions() { return options_ != null; } /** * .dapr.StateRequestOptions options = 5; + * @return The options. */ public io.dapr.DaprProtos.StateRequestOptions getOptions() { return options_ == null ? io.dapr.DaprProtos.StateRequestOptions.getDefaultInstance() : options_; @@ -10988,6 +11224,7 @@ public final class DaprProtos { private java.lang.Object key_ = ""; /** * string key = 1; + * @return The key. */ public java.lang.String getKey() { java.lang.Object ref = key_; @@ -11003,6 +11240,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return The bytes for key. */ public com.google.protobuf.ByteString getKeyBytes() { @@ -11019,6 +11257,8 @@ public final class DaprProtos { } /** * string key = 1; + * @param value The key to set. + * @return This builder for chaining. */ public Builder setKey( java.lang.String value) { @@ -11032,6 +11272,7 @@ public final class DaprProtos { } /** * string key = 1; + * @return This builder for chaining. */ public Builder clearKey() { @@ -11041,6 +11282,8 @@ public final class DaprProtos { } /** * string key = 1; + * @param value The bytes for key to set. + * @return This builder for chaining. */ public Builder setKeyBytes( com.google.protobuf.ByteString value) { @@ -11059,12 +11302,14 @@ public final class DaprProtos { com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> valueBuilder_; /** * .google.protobuf.Any value = 2; + * @return Whether the value field is set. */ public boolean hasValue() { return valueBuilder_ != null || value_ != null; } /** * .google.protobuf.Any value = 2; + * @return The value. */ public com.google.protobuf.Any getValue() { if (valueBuilder_ == null) { @@ -11174,6 +11419,7 @@ public final class DaprProtos { private java.lang.Object etag_ = ""; /** * string etag = 3; + * @return The etag. */ public java.lang.String getEtag() { java.lang.Object ref = etag_; @@ -11189,6 +11435,7 @@ public final class DaprProtos { } /** * string etag = 3; + * @return The bytes for etag. */ public com.google.protobuf.ByteString getEtagBytes() { @@ -11205,6 +11452,8 @@ public final class DaprProtos { } /** * string etag = 3; + * @param value The etag to set. + * @return This builder for chaining. */ public Builder setEtag( java.lang.String value) { @@ -11218,6 +11467,7 @@ public final class DaprProtos { } /** * string etag = 3; + * @return This builder for chaining. */ public Builder clearEtag() { @@ -11227,6 +11477,8 @@ public final class DaprProtos { } /** * string etag = 3; + * @param value The bytes for etag to set. + * @return This builder for chaining. */ public Builder setEtagBytes( com.google.protobuf.ByteString value) { @@ -11368,12 +11620,14 @@ public final class DaprProtos { io.dapr.DaprProtos.StateRequestOptions, io.dapr.DaprProtos.StateRequestOptions.Builder, io.dapr.DaprProtos.StateRequestOptionsOrBuilder> optionsBuilder_; /** * .dapr.StateRequestOptions options = 5; + * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** * .dapr.StateRequestOptions options = 5; + * @return The options. */ public io.dapr.DaprProtos.StateRequestOptions getOptions() { if (optionsBuilder_ == null) { @@ -11538,30 +11792,36 @@ public final class DaprProtos { /** * string concurrency = 1; + * @return The concurrency. */ java.lang.String getConcurrency(); /** * string concurrency = 1; + * @return The bytes for concurrency. */ com.google.protobuf.ByteString getConcurrencyBytes(); /** * string consistency = 2; + * @return The consistency. */ java.lang.String getConsistency(); /** * string consistency = 2; + * @return The bytes for consistency. */ com.google.protobuf.ByteString getConsistencyBytes(); /** * .dapr.StateRetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. */ boolean hasRetryPolicy(); /** * .dapr.StateRetryPolicy retryPolicy = 3; + * @return The retryPolicy. */ io.dapr.DaprProtos.StateRetryPolicy getRetryPolicy(); /** @@ -11677,6 +11937,7 @@ public final class DaprProtos { private volatile java.lang.Object concurrency_; /** * string concurrency = 1; + * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -11692,6 +11953,7 @@ public final class DaprProtos { } /** * string concurrency = 1; + * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -11711,6 +11973,7 @@ public final class DaprProtos { private volatile java.lang.Object consistency_; /** * string consistency = 2; + * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -11726,6 +11989,7 @@ public final class DaprProtos { } /** * string consistency = 2; + * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -11745,12 +12009,14 @@ public final class DaprProtos { private io.dapr.DaprProtos.StateRetryPolicy retryPolicy_; /** * .dapr.StateRetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicy_ != null; } /** * .dapr.StateRetryPolicy retryPolicy = 3; + * @return The retryPolicy. */ public io.dapr.DaprProtos.StateRetryPolicy getRetryPolicy() { return retryPolicy_ == null ? io.dapr.DaprProtos.StateRetryPolicy.getDefaultInstance() : retryPolicy_; @@ -12114,6 +12380,7 @@ public final class DaprProtos { private java.lang.Object concurrency_ = ""; /** * string concurrency = 1; + * @return The concurrency. */ public java.lang.String getConcurrency() { java.lang.Object ref = concurrency_; @@ -12129,6 +12396,7 @@ public final class DaprProtos { } /** * string concurrency = 1; + * @return The bytes for concurrency. */ public com.google.protobuf.ByteString getConcurrencyBytes() { @@ -12145,6 +12413,8 @@ public final class DaprProtos { } /** * string concurrency = 1; + * @param value The concurrency to set. + * @return This builder for chaining. */ public Builder setConcurrency( java.lang.String value) { @@ -12158,6 +12428,7 @@ public final class DaprProtos { } /** * string concurrency = 1; + * @return This builder for chaining. */ public Builder clearConcurrency() { @@ -12167,6 +12438,8 @@ public final class DaprProtos { } /** * string concurrency = 1; + * @param value The bytes for concurrency to set. + * @return This builder for chaining. */ public Builder setConcurrencyBytes( com.google.protobuf.ByteString value) { @@ -12183,6 +12456,7 @@ public final class DaprProtos { private java.lang.Object consistency_ = ""; /** * string consistency = 2; + * @return The consistency. */ public java.lang.String getConsistency() { java.lang.Object ref = consistency_; @@ -12198,6 +12472,7 @@ public final class DaprProtos { } /** * string consistency = 2; + * @return The bytes for consistency. */ public com.google.protobuf.ByteString getConsistencyBytes() { @@ -12214,6 +12489,8 @@ public final class DaprProtos { } /** * string consistency = 2; + * @param value The consistency to set. + * @return This builder for chaining. */ public Builder setConsistency( java.lang.String value) { @@ -12227,6 +12504,7 @@ public final class DaprProtos { } /** * string consistency = 2; + * @return This builder for chaining. */ public Builder clearConsistency() { @@ -12236,6 +12514,8 @@ public final class DaprProtos { } /** * string consistency = 2; + * @param value The bytes for consistency to set. + * @return This builder for chaining. */ public Builder setConsistencyBytes( com.google.protobuf.ByteString value) { @@ -12254,12 +12534,14 @@ public final class DaprProtos { io.dapr.DaprProtos.StateRetryPolicy, io.dapr.DaprProtos.StateRetryPolicy.Builder, io.dapr.DaprProtos.StateRetryPolicyOrBuilder> retryPolicyBuilder_; /** * .dapr.StateRetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. */ public boolean hasRetryPolicy() { return retryPolicyBuilder_ != null || retryPolicy_ != null; } /** * .dapr.StateRetryPolicy retryPolicy = 3; + * @return The retryPolicy. */ public io.dapr.DaprProtos.StateRetryPolicy getRetryPolicy() { if (retryPolicyBuilder_ == null) { @@ -12424,25 +12706,30 @@ public final class DaprProtos { /** * int32 threshold = 1; + * @return The threshold. */ int getThreshold(); /** * string pattern = 2; + * @return The pattern. */ java.lang.String getPattern(); /** * string pattern = 2; + * @return The bytes for pattern. */ com.google.protobuf.ByteString getPatternBytes(); /** * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. */ boolean hasInterval(); /** * .google.protobuf.Duration interval = 3; + * @return The interval. */ com.google.protobuf.Duration getInterval(); /** @@ -12556,6 +12843,7 @@ public final class DaprProtos { private int threshold_; /** * int32 threshold = 1; + * @return The threshold. */ public int getThreshold() { return threshold_; @@ -12565,6 +12853,7 @@ public final class DaprProtos { private volatile java.lang.Object pattern_; /** * string pattern = 2; + * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -12580,6 +12869,7 @@ public final class DaprProtos { } /** * string pattern = 2; + * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -12599,12 +12889,14 @@ public final class DaprProtos { private com.google.protobuf.Duration interval_; /** * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. */ public boolean hasInterval() { return interval_ != null; } /** * .google.protobuf.Duration interval = 3; + * @return The interval. */ public com.google.protobuf.Duration getInterval() { return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_; @@ -12968,12 +13260,15 @@ public final class DaprProtos { private int threshold_ ; /** * int32 threshold = 1; + * @return The threshold. */ public int getThreshold() { return threshold_; } /** * int32 threshold = 1; + * @param value The threshold to set. + * @return This builder for chaining. */ public Builder setThreshold(int value) { @@ -12983,6 +13278,7 @@ public final class DaprProtos { } /** * int32 threshold = 1; + * @return This builder for chaining. */ public Builder clearThreshold() { @@ -12994,6 +13290,7 @@ public final class DaprProtos { private java.lang.Object pattern_ = ""; /** * string pattern = 2; + * @return The pattern. */ public java.lang.String getPattern() { java.lang.Object ref = pattern_; @@ -13009,6 +13306,7 @@ public final class DaprProtos { } /** * string pattern = 2; + * @return The bytes for pattern. */ public com.google.protobuf.ByteString getPatternBytes() { @@ -13025,6 +13323,8 @@ public final class DaprProtos { } /** * string pattern = 2; + * @param value The pattern to set. + * @return This builder for chaining. */ public Builder setPattern( java.lang.String value) { @@ -13038,6 +13338,7 @@ public final class DaprProtos { } /** * string pattern = 2; + * @return This builder for chaining. */ public Builder clearPattern() { @@ -13047,6 +13348,8 @@ public final class DaprProtos { } /** * string pattern = 2; + * @param value The bytes for pattern to set. + * @return This builder for chaining. */ public Builder setPatternBytes( com.google.protobuf.ByteString value) { @@ -13065,12 +13368,14 @@ public final class DaprProtos { com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> intervalBuilder_; /** * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. */ public boolean hasInterval() { return intervalBuilder_ != null || interval_ != null; } /** * .google.protobuf.Duration interval = 3; + * @return The interval. */ public com.google.protobuf.Duration getInterval() { if (intervalBuilder_ == null) { From f89a53e2415a9638a28e880fcfeaaab0732b7317 Mon Sep 17 00:00:00 2001 From: Artur Souza Date: Fri, 6 Dec 2019 11:17:03 -0800 Subject: [PATCH 7/9] Fixing port on Example.java --- examples/src/main/java/io/dapr/examples/Example.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/src/main/java/io/dapr/examples/Example.java b/examples/src/main/java/io/dapr/examples/Example.java index 8b5e8a7f9..120df992e 100644 --- a/examples/src/main/java/io/dapr/examples/Example.java +++ b/examples/src/main/java/io/dapr/examples/Example.java @@ -11,12 +11,12 @@ import io.grpc.ManagedChannelBuilder; /** * Simple example, to run: * mvn clean install - * dapr run --grpc-port 3000 -- mvn exec:java -pl=examples -Dexec.mainClass=io.dapr.examples.Example + * dapr run --grpc-port 50001 -- mvn exec:java -pl=examples -Dexec.mainClass=io.dapr.examples.Example */ public class Example { public static void main(String[] args) { ManagedChannel channel = - ManagedChannelBuilder.forAddress("localhost", 3000).usePlaintext().build(); + ManagedChannelBuilder.forAddress("localhost", 50001).usePlaintext().build(); DaprBlockingStub client = DaprGrpc.newBlockingStub(channel); Any data = Any.newBuilder().setValue(ByteString.copyFromUtf8("foo")).build(); @@ -40,4 +40,4 @@ public class Example { client.deleteState(DeleteStateEnvelope.newBuilder().setKey(key).build()); System.out.println("Deleted!"); } -} \ No newline at end of file +} From c3b7c41dfd5414026ef01effec34b38e0c9914df Mon Sep 17 00:00:00 2001 From: Artur Souza Date: Fri, 6 Dec 2019 11:17:59 -0800 Subject: [PATCH 8/9] Remove . in description for pom.xml --- sdk/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/pom.xml b/sdk/pom.xml index 7ce0e934c..553fead27 100644 --- a/sdk/pom.xml +++ b/sdk/pom.xml @@ -14,7 +14,7 @@ jar 0.3.0-alpha dapr-sdk - SDK for Dapr. + SDK for Dapr generated-proto From 46cd8d997a93b65d88c88b1128facb336cdff12b Mon Sep 17 00:00:00 2001 From: Artur Souza Date: Fri, 6 Dec 2019 11:48:34 -0800 Subject: [PATCH 9/9] Fixing instructions in README.md --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cc95bea7d..792d6399c 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,10 @@ For more info on Dapr and gRPC, visit [this link](https://github.com/dapr/docs/t ### Installing -The client will generate gRPC Client and Protobuf classes during build. - -Make sure to clone this repository including the submodules: +Clone this repository including the submodules: ```sh -git clone --recurse-submodules https://github.com/dapr/java-sdk.git +git clone https://github.com/dapr/java-sdk.git ``` Then head over to build the Maven project: @@ -23,8 +21,7 @@ mvn install ### Running an example ```sh -cd examples/ -dapr run --protocol grpc --grpc-port 50001 -- mvn exec:java -Dexec.mainClass=io.dapr.examples.Example +dapr run --protocol grpc --grpc-port 50001 -- mvn exec:java -pl examples -Dexec.mainClass=io.dapr.examples.Example ``` ### Creating and publishing the artifacts to Nexus Repository