diff --git a/examples/components/redis.yaml b/examples/components/redis.yaml
new file mode 100644
index 000000000..3cd472b1c
--- /dev/null
+++ b/examples/components/redis.yaml
@@ -0,0 +1,11 @@
+apiVersion: dapr.io/v1alpha1
+kind: Component
+metadata:
+ name: statestore
+spec:
+ type: state.redis
+ metadata:
+ - name: redisHost
+ value: localhost:6379
+ - name: redisPassword
+ value: ""
diff --git a/examples/components/redis_messagebus.yaml b/examples/components/redis_messagebus.yaml
new file mode 100644
index 000000000..ce67e58e8
--- /dev/null
+++ b/examples/components/redis_messagebus.yaml
@@ -0,0 +1,11 @@
+apiVersion: dapr.io/v1alpha1
+kind: Component
+metadata:
+ name: messagebus
+spec:
+ type: pubsub.redis
+ metadata:
+ - name: redisHost
+ value: localhost:6379
+ - name: redisPassword
+ value: ""
diff --git a/examples/pom.xml b/examples/pom.xml
new file mode 100644
index 000000000..959cfc1ec
--- /dev/null
+++ b/examples/pom.xml
@@ -0,0 +1,65 @@
+
+ * User Code definitions + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.24.0)", + comments = "Source: daprclient/daprclient.proto") +public final class DaprClientGrpc { + + private DaprClientGrpc() {} + + public static final String SERVICE_NAME = "daprclient.DaprClient"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor
+ * User Code definitions + *+ */ + public static abstract class DaprClientImplBase implements io.grpc.BindableService { + + /** + */ + public void onInvoke(io.dapr.DaprClientProtos.InvokeEnvelope request, + io.grpc.stub.StreamObserver
+ * User Code definitions + *+ */ + public static final class DaprClientStub extends io.grpc.stub.AbstractStub
+ * User Code definitions + *+ */ + public static final class DaprClientBlockingStub extends io.grpc.stub.AbstractStub
+ * User Code definitions + *+ */ + public static final class DaprClientFutureStub extends io.grpc.stub.AbstractStub
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();
+ /**
+ * .google.protobuf.Any data = 7;
+ */
+ com.google.protobuf.AnyOrBuilder getDataOrBuilder();
+ }
+ /**
+ * Protobuf type {@code daprclient.CloudEventEnvelope}
+ */
+ public static final class CloudEventEnvelope extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:daprclient.CloudEventEnvelope)
+ CloudEventEnvelopeOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use CloudEventEnvelope.newBuilder() to construct.
+ private CloudEventEnvelope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private CloudEventEnvelope() {
+ id_ = "";
+ source_ = "";
+ type_ = "";
+ specVersion_ = "";
+ dataContentType_ = "";
+ topic_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new CloudEventEnvelope();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private CloudEventEnvelope(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ id_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ source_ = s;
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ type_ = s;
+ break;
+ }
+ case 34: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ specVersion_ = s;
+ break;
+ }
+ case 42: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ dataContentType_ = s;
+ break;
+ }
+ case 50: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ topic_ = s;
+ break;
+ }
+ case 58: {
+ com.google.protobuf.Any.Builder subBuilder = null;
+ if (data_ != null) {
+ subBuilder = data_.toBuilder();
+ }
+ data_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(data_);
+ data_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.dapr.DaprClientProtos.internal_static_daprclient_CloudEventEnvelope_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.dapr.DaprClientProtos.internal_static_daprclient_CloudEventEnvelope_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.dapr.DaprClientProtos.CloudEventEnvelope.class, io.dapr.DaprClientProtos.CloudEventEnvelope.Builder.class);
+ }
+
+ public static final int ID_FIELD_NUMBER = 1;
+ private volatile java.lang.Object id_;
+ /**
+ * string id = 1;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SOURCE_FIELD_NUMBER = 2;
+ private volatile java.lang.Object source_;
+ /**
+ * string source = 2;
+ * @return The source.
+ */
+ public java.lang.String getSource() {
+ java.lang.Object ref = source_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ source_ = s;
+ return s;
+ }
+ }
+ /**
+ * string source = 2;
+ * @return The bytes for source.
+ */
+ public com.google.protobuf.ByteString
+ getSourceBytes() {
+ java.lang.Object ref = source_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ source_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TYPE_FIELD_NUMBER = 3;
+ private volatile java.lang.Object type_;
+ /**
+ * string type = 3;
+ * @return The type.
+ */
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ type_ = s;
+ return s;
+ }
+ }
+ /**
+ * string type = 3;
+ * @return The bytes for type.
+ */
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int SPECVERSION_FIELD_NUMBER = 4;
+ private volatile java.lang.Object specVersion_;
+ /**
+ * string specVersion = 4;
+ * @return The specVersion.
+ */
+ public java.lang.String getSpecVersion() {
+ java.lang.Object ref = specVersion_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ specVersion_ = s;
+ return s;
+ }
+ }
+ /**
+ * string specVersion = 4;
+ * @return The bytes for specVersion.
+ */
+ public com.google.protobuf.ByteString
+ getSpecVersionBytes() {
+ java.lang.Object ref = specVersion_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ specVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATACONTENTTYPE_FIELD_NUMBER = 5;
+ private volatile java.lang.Object dataContentType_;
+ /**
+ * string dataContentType = 5;
+ * @return The dataContentType.
+ */
+ public java.lang.String getDataContentType() {
+ java.lang.Object ref = dataContentType_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dataContentType_ = s;
+ return s;
+ }
+ }
+ /**
+ * string dataContentType = 5;
+ * @return The bytes for dataContentType.
+ */
+ public com.google.protobuf.ByteString
+ getDataContentTypeBytes() {
+ java.lang.Object ref = dataContentType_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ dataContentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int TOPIC_FIELD_NUMBER = 6;
+ private volatile java.lang.Object topic_;
+ /**
+ * string topic = 6;
+ * @return The topic.
+ */
+ public java.lang.String getTopic() {
+ java.lang.Object ref = topic_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ topic_ = s;
+ return s;
+ }
+ }
+ /**
+ * string topic = 6;
+ * @return The bytes for topic.
+ */
+ public com.google.protobuf.ByteString
+ getTopicBytes() {
+ java.lang.Object ref = topic_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ topic_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATA_FIELD_NUMBER = 7;
+ 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_;
+ }
+ /**
+ * .google.protobuf.Any data = 7;
+ */
+ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
+ return getData();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getIdBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_);
+ }
+ if (!getSourceBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_);
+ }
+ if (!getTypeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, type_);
+ }
+ if (!getSpecVersionBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, specVersion_);
+ }
+ if (!getDataContentTypeBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 5, dataContentType_);
+ }
+ if (!getTopicBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 6, topic_);
+ }
+ if (data_ != null) {
+ output.writeMessage(7, getData());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getIdBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_);
+ }
+ if (!getSourceBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, source_);
+ }
+ if (!getTypeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, type_);
+ }
+ if (!getSpecVersionBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, specVersion_);
+ }
+ if (!getDataContentTypeBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, dataContentType_);
+ }
+ if (!getTopicBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, topic_);
+ }
+ if (data_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(7, getData());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.dapr.DaprClientProtos.CloudEventEnvelope)) {
+ return super.equals(obj);
+ }
+ io.dapr.DaprClientProtos.CloudEventEnvelope other = (io.dapr.DaprClientProtos.CloudEventEnvelope) obj;
+
+ if (!getId()
+ .equals(other.getId())) return false;
+ if (!getSource()
+ .equals(other.getSource())) return false;
+ if (!getType()
+ .equals(other.getType())) return false;
+ if (!getSpecVersion()
+ .equals(other.getSpecVersion())) return false;
+ if (!getDataContentType()
+ .equals(other.getDataContentType())) return false;
+ if (!getTopic()
+ .equals(other.getTopic())) return false;
+ if (hasData() != other.hasData()) return false;
+ if (hasData()) {
+ if (!getData()
+ .equals(other.getData())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + ID_FIELD_NUMBER;
+ hash = (53 * hash) + getId().hashCode();
+ hash = (37 * hash) + SOURCE_FIELD_NUMBER;
+ hash = (53 * hash) + getSource().hashCode();
+ hash = (37 * hash) + TYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getType().hashCode();
+ hash = (37 * hash) + SPECVERSION_FIELD_NUMBER;
+ hash = (53 * hash) + getSpecVersion().hashCode();
+ hash = (37 * hash) + DATACONTENTTYPE_FIELD_NUMBER;
+ hash = (53 * hash) + getDataContentType().hashCode();
+ hash = (37 * hash) + TOPIC_FIELD_NUMBER;
+ hash = (53 * hash) + getTopic().hashCode();
+ if (hasData()) {
+ hash = (37 * hash) + DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getData().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.dapr.DaprClientProtos.CloudEventEnvelope prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code daprclient.CloudEventEnvelope}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring id = 1;
+ * @return The id.
+ */
+ public java.lang.String getId() {
+ java.lang.Object ref = id_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ id_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @return The bytes for id.
+ */
+ public com.google.protobuf.ByteString
+ getIdBytes() {
+ java.lang.Object ref = id_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ id_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string id = 1;
+ * @param value The id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setId(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearId() {
+
+ id_ = getDefaultInstance().getId();
+ onChanged();
+ return this;
+ }
+ /**
+ * string id = 1;
+ * @param value The bytes for id to set.
+ * @return This builder for chaining.
+ */
+ public Builder setIdBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ id_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object source_ = "";
+ /**
+ * string source = 2;
+ * @return The source.
+ */
+ public java.lang.String getSource() {
+ java.lang.Object ref = source_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ source_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string source = 2;
+ * @return The bytes for source.
+ */
+ public com.google.protobuf.ByteString
+ getSourceBytes() {
+ java.lang.Object ref = source_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ source_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string source = 2;
+ * @param value The source to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSource(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ source_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string source = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearSource() {
+
+ source_ = getDefaultInstance().getSource();
+ onChanged();
+ return this;
+ }
+ /**
+ * string source = 2;
+ * @param value The bytes for source to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSourceBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ source_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object type_ = "";
+ /**
+ * string type = 3;
+ * @return The type.
+ */
+ public java.lang.String getType() {
+ java.lang.Object ref = type_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ type_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string type = 3;
+ * @return The bytes for type.
+ */
+ public com.google.protobuf.ByteString
+ getTypeBytes() {
+ java.lang.Object ref = type_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ type_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string type = 3;
+ * @param value The type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setType(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ type_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string type = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearType() {
+
+ type_ = getDefaultInstance().getType();
+ onChanged();
+ return this;
+ }
+ /**
+ * string type = 3;
+ * @param value The bytes for type to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ type_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object specVersion_ = "";
+ /**
+ * string specVersion = 4;
+ * @return The specVersion.
+ */
+ public java.lang.String getSpecVersion() {
+ java.lang.Object ref = specVersion_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ specVersion_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string specVersion = 4;
+ * @return The bytes for specVersion.
+ */
+ public com.google.protobuf.ByteString
+ getSpecVersionBytes() {
+ java.lang.Object ref = specVersion_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ specVersion_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string specVersion = 4;
+ * @param value The specVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpecVersion(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ specVersion_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string specVersion = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearSpecVersion() {
+
+ specVersion_ = getDefaultInstance().getSpecVersion();
+ onChanged();
+ return this;
+ }
+ /**
+ * string specVersion = 4;
+ * @param value The bytes for specVersion to set.
+ * @return This builder for chaining.
+ */
+ public Builder setSpecVersionBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ specVersion_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object dataContentType_ = "";
+ /**
+ * string dataContentType = 5;
+ * @return The dataContentType.
+ */
+ public java.lang.String getDataContentType() {
+ java.lang.Object ref = dataContentType_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ dataContentType_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string dataContentType = 5;
+ * @return The bytes for dataContentType.
+ */
+ public com.google.protobuf.ByteString
+ getDataContentTypeBytes() {
+ java.lang.Object ref = dataContentType_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ dataContentType_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string dataContentType = 5;
+ * @param value The dataContentType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataContentType(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ dataContentType_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string dataContentType = 5;
+ * @return This builder for chaining.
+ */
+ public Builder clearDataContentType() {
+
+ dataContentType_ = getDefaultInstance().getDataContentType();
+ onChanged();
+ return this;
+ }
+ /**
+ * string dataContentType = 5;
+ * @param value The bytes for dataContentType to set.
+ * @return This builder for chaining.
+ */
+ public Builder setDataContentTypeBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ dataContentType_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object topic_ = "";
+ /**
+ * string topic = 6;
+ * @return The topic.
+ */
+ public java.lang.String getTopic() {
+ java.lang.Object ref = topic_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ topic_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string topic = 6;
+ * @return The bytes for topic.
+ */
+ public com.google.protobuf.ByteString
+ getTopicBytes() {
+ java.lang.Object ref = topic_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ topic_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string topic = 6;
+ * @param value The topic to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopic(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ topic_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string topic = 6;
+ * @return This builder for chaining.
+ */
+ public Builder clearTopic() {
+
+ topic_ = getDefaultInstance().getTopic();
+ onChanged();
+ return this;
+ }
+ /**
+ * string topic = 6;
+ * @param value The bytes for topic to set.
+ * @return This builder for chaining.
+ */
+ public Builder setTopicBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ topic_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Any data_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ 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) {
+ return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_;
+ } else {
+ return dataBuilder_.getMessage();
+ }
+ }
+ /**
+ * .google.protobuf.Any data = 7;
+ */
+ public Builder setData(com.google.protobuf.Any value) {
+ if (dataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ data_ = value;
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 7;
+ */
+ public Builder setData(
+ com.google.protobuf.Any.Builder builderForValue) {
+ if (dataBuilder_ == null) {
+ data_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 7;
+ */
+ public Builder mergeData(com.google.protobuf.Any value) {
+ if (dataBuilder_ == null) {
+ if (data_ != null) {
+ data_ =
+ com.google.protobuf.Any.newBuilder(data_).mergeFrom(value).buildPartial();
+ } else {
+ data_ = value;
+ }
+ onChanged();
+ } else {
+ dataBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 7;
+ */
+ public Builder clearData() {
+ if (dataBuilder_ == null) {
+ data_ = null;
+ onChanged();
+ } else {
+ data_ = null;
+ dataBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 7;
+ */
+ public com.google.protobuf.Any.Builder getDataBuilder() {
+
+ onChanged();
+ return getDataFieldBuilder().getBuilder();
+ }
+ /**
+ * .google.protobuf.Any data = 7;
+ */
+ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
+ if (dataBuilder_ != null) {
+ return dataBuilder_.getMessageOrBuilder();
+ } else {
+ return data_ == null ?
+ com.google.protobuf.Any.getDefaultInstance() : data_;
+ }
+ }
+ /**
+ * .google.protobuf.Any data = 7;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
+ getDataFieldBuilder() {
+ if (dataBuilder_ == null) {
+ dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
+ getData(),
+ getParentForChildren(),
+ isClean());
+ data_ = null;
+ }
+ return dataBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:daprclient.CloudEventEnvelope)
+ }
+
+ // @@protoc_insertion_point(class_scope:daprclient.CloudEventEnvelope)
+ private static final io.dapr.DaprClientProtos.CloudEventEnvelope DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.dapr.DaprClientProtos.CloudEventEnvelope();
+ }
+
+ public static io.dapr.DaprClientProtos.CloudEventEnvelope getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring 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();
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ com.google.protobuf.AnyOrBuilder getDataOrBuilder();
+
+ /**
+ * map<string, string> metadata = 3;
+ */
+ int getMetadataCount();
+ /**
+ * map<string, string> metadata = 3;
+ */
+ boolean containsMetadata(
+ java.lang.String key);
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> metadata = 3;
+ */
+ java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> metadata = 3;
+ */
+
+ java.lang.String getMetadataOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * Protobuf type {@code daprclient.BindingEventEnvelope}
+ */
+ public static final class BindingEventEnvelope extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:daprclient.BindingEventEnvelope)
+ BindingEventEnvelopeOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BindingEventEnvelope.newBuilder() to construct.
+ private BindingEventEnvelope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BindingEventEnvelope() {
+ name_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BindingEventEnvelope();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BindingEventEnvelope(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ name_ = s;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.Any.Builder subBuilder = null;
+ if (data_ != null) {
+ subBuilder = data_.toBuilder();
+ }
+ data_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(data_);
+ data_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ metadata_ = com.google.protobuf.MapField.newMapField(
+ MetadataDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntrystring name = 1;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ }
+ }
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATA_FIELD_NUMBER = 2;
+ 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_;
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
+ return getData();
+ }
+
+ public static final int METADATA_FIELD_NUMBER = 3;
+ private static final class MetadataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> metadata = 3;
+ */
+
+ public boolean containsMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMetadata().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.lang.String getMetadataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapstring name = 1;
+ * @return The name.
+ */
+ public java.lang.String getName() {
+ java.lang.Object ref = name_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ name_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ * @return The bytes for name.
+ */
+ public com.google.protobuf.ByteString
+ getNameBytes() {
+ java.lang.Object ref = name_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ name_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string name = 1;
+ * @param value The name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setName(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearName() {
+
+ name_ = getDefaultInstance().getName();
+ onChanged();
+ return this;
+ }
+ /**
+ * string name = 1;
+ * @param value The bytes for name to set.
+ * @return This builder for chaining.
+ */
+ public Builder setNameBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ name_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Any data_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ 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) {
+ return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_;
+ } else {
+ return dataBuilder_.getMessage();
+ }
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public Builder setData(com.google.protobuf.Any value) {
+ if (dataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ data_ = value;
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public Builder setData(
+ com.google.protobuf.Any.Builder builderForValue) {
+ if (dataBuilder_ == null) {
+ data_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public Builder mergeData(com.google.protobuf.Any value) {
+ if (dataBuilder_ == null) {
+ if (data_ != null) {
+ data_ =
+ com.google.protobuf.Any.newBuilder(data_).mergeFrom(value).buildPartial();
+ } else {
+ data_ = value;
+ }
+ onChanged();
+ } else {
+ dataBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public Builder clearData() {
+ if (dataBuilder_ == null) {
+ data_ = null;
+ onChanged();
+ } else {
+ data_ = null;
+ dataBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public com.google.protobuf.Any.Builder getDataBuilder() {
+
+ onChanged();
+ return getDataFieldBuilder().getBuilder();
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
+ if (dataBuilder_ != null) {
+ return dataBuilder_.getMessageOrBuilder();
+ } else {
+ return data_ == null ?
+ com.google.protobuf.Any.getDefaultInstance() : data_;
+ }
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
+ getDataFieldBuilder() {
+ if (dataBuilder_ == null) {
+ dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
+ getData(),
+ getParentForChildren(),
+ isClean());
+ data_ = null;
+ }
+ return dataBuilder_;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> metadata_;
+ private com.google.protobuf.MapFieldmap<string, string> metadata = 3;
+ */
+
+ public boolean containsMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMetadata().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.lang.String getMetadataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public Builder removeMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMetadata().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 3;
+ */
+ public Builder putMetadata(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMetadata().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> metadata = 3;
+ */
+
+ public Builder putAllMetadata(
+ java.util.Map.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();
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ com.google.protobuf.AnyOrBuilder getDataOrBuilder();
+
+ /**
+ * repeated string to = 2;
+ * @return A list containing the to.
+ */
+ java.util.Listrepeated 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);
+
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ java.util.Listrepeated .daprclient.State state = 3;
+ */
+ io.dapr.DaprClientProtos.State getState(int index);
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ int getStateCount();
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ java.util.List extends io.dapr.DaprClientProtos.StateOrBuilder>
+ getStateOrBuilderList();
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ io.dapr.DaprClientProtos.StateOrBuilder getStateOrBuilder(
+ int index);
+
+ /**
+ * string concurrency = 4;
+ * @return The concurrency.
+ */
+ java.lang.String getConcurrency();
+ /**
+ * string concurrency = 4;
+ * @return The bytes for concurrency.
+ */
+ com.google.protobuf.ByteString
+ getConcurrencyBytes();
+ }
+ /**
+ * Protobuf type {@code daprclient.BindingResponseEnvelope}
+ */
+ public static final class BindingResponseEnvelope extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:daprclient.BindingResponseEnvelope)
+ BindingResponseEnvelopeOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use BindingResponseEnvelope.newBuilder() to construct.
+ private BindingResponseEnvelope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private BindingResponseEnvelope() {
+ to_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ state_ = java.util.Collections.emptyList();
+ concurrency_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new BindingResponseEnvelope();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private BindingResponseEnvelope(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.Any.Builder subBuilder = null;
+ if (data_ != null) {
+ subBuilder = data_.toBuilder();
+ }
+ data_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(data_);
+ data_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ to_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ to_.add(s);
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000002) != 0)) {
+ state_ = new java.util.ArrayList.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_;
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
+ return getData();
+ }
+
+ public static final int TO_FIELD_NUMBER = 2;
+ private com.google.protobuf.LazyStringList to_;
+ /**
+ * repeated string to = 2;
+ * @return A list containing the to.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getToList() {
+ return to_;
+ }
+ /**
+ * 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) {
+ return to_.getByteString(index);
+ }
+
+ public static final int STATE_FIELD_NUMBER = 3;
+ private java.util.Listrepeated .daprclient.State state = 3;
+ */
+ public java.util.Listrepeated .daprclient.State state = 3;
+ */
+ public java.util.List extends io.dapr.DaprClientProtos.StateOrBuilder>
+ getStateOrBuilderList() {
+ return state_;
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public int getStateCount() {
+ return state_.size();
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public io.dapr.DaprClientProtos.State getState(int index) {
+ return state_.get(index);
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public io.dapr.DaprClientProtos.StateOrBuilder getStateOrBuilder(
+ int index) {
+ return state_.get(index);
+ }
+
+ public static final int CONCURRENCY_FIELD_NUMBER = 4;
+ private volatile java.lang.Object concurrency_;
+ /**
+ * string concurrency = 4;
+ * @return The concurrency.
+ */
+ public java.lang.String getConcurrency() {
+ java.lang.Object ref = concurrency_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ concurrency_ = s;
+ return s;
+ }
+ }
+ /**
+ * string concurrency = 4;
+ * @return The bytes for concurrency.
+ */
+ public com.google.protobuf.ByteString
+ getConcurrencyBytes() {
+ java.lang.Object ref = concurrency_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ concurrency_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (data_ != null) {
+ output.writeMessage(1, getData());
+ }
+ for (int i = 0; i < to_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, to_.getRaw(i));
+ }
+ for (int i = 0; i < state_.size(); i++) {
+ output.writeMessage(3, state_.get(i));
+ }
+ if (!getConcurrencyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 4, concurrency_);
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (data_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(1, getData());
+ }
+ {
+ int dataSize = 0;
+ for (int i = 0; i < to_.size(); i++) {
+ dataSize += computeStringSizeNoTag(to_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getToList().size();
+ }
+ for (int i = 0; i < state_.size(); i++) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, state_.get(i));
+ }
+ if (!getConcurrencyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, concurrency_);
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.dapr.DaprClientProtos.BindingResponseEnvelope)) {
+ return super.equals(obj);
+ }
+ io.dapr.DaprClientProtos.BindingResponseEnvelope other = (io.dapr.DaprClientProtos.BindingResponseEnvelope) obj;
+
+ if (hasData() != other.hasData()) return false;
+ if (hasData()) {
+ if (!getData()
+ .equals(other.getData())) return false;
+ }
+ if (!getToList()
+ .equals(other.getToList())) return false;
+ if (!getStateList()
+ .equals(other.getStateList())) return false;
+ if (!getConcurrency()
+ .equals(other.getConcurrency())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (hasData()) {
+ hash = (37 * hash) + DATA_FIELD_NUMBER;
+ hash = (53 * hash) + getData().hashCode();
+ }
+ if (getToCount() > 0) {
+ hash = (37 * hash) + TO_FIELD_NUMBER;
+ hash = (53 * hash) + getToList().hashCode();
+ }
+ if (getStateCount() > 0) {
+ hash = (37 * hash) + STATE_FIELD_NUMBER;
+ hash = (53 * hash) + getStateList().hashCode();
+ }
+ hash = (37 * hash) + CONCURRENCY_FIELD_NUMBER;
+ hash = (53 * hash) + getConcurrency().hashCode();
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.dapr.DaprClientProtos.BindingResponseEnvelope prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code daprclient.BindingResponseEnvelope}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builder.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) {
+ return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_;
+ } else {
+ return dataBuilder_.getMessage();
+ }
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public Builder setData(com.google.protobuf.Any value) {
+ if (dataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ data_ = value;
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public Builder setData(
+ com.google.protobuf.Any.Builder builderForValue) {
+ if (dataBuilder_ == null) {
+ data_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public Builder mergeData(com.google.protobuf.Any value) {
+ if (dataBuilder_ == null) {
+ if (data_ != null) {
+ data_ =
+ com.google.protobuf.Any.newBuilder(data_).mergeFrom(value).buildPartial();
+ } else {
+ data_ = value;
+ }
+ onChanged();
+ } else {
+ dataBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public Builder clearData() {
+ if (dataBuilder_ == null) {
+ data_ = null;
+ onChanged();
+ } else {
+ data_ = null;
+ dataBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public com.google.protobuf.Any.Builder getDataBuilder() {
+
+ onChanged();
+ return getDataFieldBuilder().getBuilder();
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
+ if (dataBuilder_ != null) {
+ return dataBuilder_.getMessageOrBuilder();
+ } else {
+ return data_ == null ?
+ com.google.protobuf.Any.getDefaultInstance() : data_;
+ }
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
+ getDataFieldBuilder() {
+ if (dataBuilder_ == null) {
+ dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
+ getData(),
+ getParentForChildren(),
+ isClean());
+ data_ = null;
+ }
+ return dataBuilder_;
+ }
+
+ private com.google.protobuf.LazyStringList to_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ private void ensureToIsMutable() {
+ if (!((bitField0_ & 0x00000001) != 0)) {
+ to_ = new com.google.protobuf.LazyStringArrayList(to_);
+ bitField0_ |= 0x00000001;
+ }
+ }
+ /**
+ * repeated string to = 2;
+ * @return A list containing the to.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getToList() {
+ return to_.getUnmodifiableView();
+ }
+ /**
+ * 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) {
+ return to_.getByteString(index);
+ }
+ /**
+ * 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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToIsMutable();
+ to_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string to = 2;
+ * @param value The to to add.
+ * @return This builder for chaining.
+ */
+ public Builder addTo(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureToIsMutable();
+ to_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string to = 2;
+ * @param values The to to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllTo(
+ java.lang.Iterablerepeated string to = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearTo() {
+ to_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * 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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureToIsMutable();
+ to_.add(value);
+ onChanged();
+ return this;
+ }
+
+ private java.util.Listrepeated .daprclient.State state = 3;
+ */
+ public java.util.Listrepeated .daprclient.State state = 3;
+ */
+ public int getStateCount() {
+ if (stateBuilder_ == null) {
+ return state_.size();
+ } else {
+ return stateBuilder_.getCount();
+ }
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public io.dapr.DaprClientProtos.State getState(int index) {
+ if (stateBuilder_ == null) {
+ return state_.get(index);
+ } else {
+ return stateBuilder_.getMessage(index);
+ }
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public Builder setState(
+ int index, io.dapr.DaprClientProtos.State value) {
+ if (stateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStateIsMutable();
+ state_.set(index, value);
+ onChanged();
+ } else {
+ stateBuilder_.setMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public Builder setState(
+ int index, io.dapr.DaprClientProtos.State.Builder builderForValue) {
+ if (stateBuilder_ == null) {
+ ensureStateIsMutable();
+ state_.set(index, builderForValue.build());
+ onChanged();
+ } else {
+ stateBuilder_.setMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public Builder addState(io.dapr.DaprClientProtos.State value) {
+ if (stateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStateIsMutable();
+ state_.add(value);
+ onChanged();
+ } else {
+ stateBuilder_.addMessage(value);
+ }
+ return this;
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public Builder addState(
+ int index, io.dapr.DaprClientProtos.State value) {
+ if (stateBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureStateIsMutable();
+ state_.add(index, value);
+ onChanged();
+ } else {
+ stateBuilder_.addMessage(index, value);
+ }
+ return this;
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public Builder addState(
+ io.dapr.DaprClientProtos.State.Builder builderForValue) {
+ if (stateBuilder_ == null) {
+ ensureStateIsMutable();
+ state_.add(builderForValue.build());
+ onChanged();
+ } else {
+ stateBuilder_.addMessage(builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public Builder addState(
+ int index, io.dapr.DaprClientProtos.State.Builder builderForValue) {
+ if (stateBuilder_ == null) {
+ ensureStateIsMutable();
+ state_.add(index, builderForValue.build());
+ onChanged();
+ } else {
+ stateBuilder_.addMessage(index, builderForValue.build());
+ }
+ return this;
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public Builder addAllState(
+ java.lang.Iterable extends io.dapr.DaprClientProtos.State> values) {
+ if (stateBuilder_ == null) {
+ ensureStateIsMutable();
+ com.google.protobuf.AbstractMessageLite.Builder.addAll(
+ values, state_);
+ onChanged();
+ } else {
+ stateBuilder_.addAllMessages(values);
+ }
+ return this;
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public Builder clearState() {
+ if (stateBuilder_ == null) {
+ state_ = java.util.Collections.emptyList();
+ bitField0_ = (bitField0_ & ~0x00000002);
+ onChanged();
+ } else {
+ stateBuilder_.clear();
+ }
+ return this;
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public Builder removeState(int index) {
+ if (stateBuilder_ == null) {
+ ensureStateIsMutable();
+ state_.remove(index);
+ onChanged();
+ } else {
+ stateBuilder_.remove(index);
+ }
+ return this;
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public io.dapr.DaprClientProtos.State.Builder getStateBuilder(
+ int index) {
+ return getStateFieldBuilder().getBuilder(index);
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public io.dapr.DaprClientProtos.StateOrBuilder getStateOrBuilder(
+ int index) {
+ if (stateBuilder_ == null) {
+ return state_.get(index); } else {
+ return stateBuilder_.getMessageOrBuilder(index);
+ }
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public java.util.List extends io.dapr.DaprClientProtos.StateOrBuilder>
+ getStateOrBuilderList() {
+ if (stateBuilder_ != null) {
+ return stateBuilder_.getMessageOrBuilderList();
+ } else {
+ return java.util.Collections.unmodifiableList(state_);
+ }
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public io.dapr.DaprClientProtos.State.Builder addStateBuilder() {
+ return getStateFieldBuilder().addBuilder(
+ io.dapr.DaprClientProtos.State.getDefaultInstance());
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public io.dapr.DaprClientProtos.State.Builder addStateBuilder(
+ int index) {
+ return getStateFieldBuilder().addBuilder(
+ index, io.dapr.DaprClientProtos.State.getDefaultInstance());
+ }
+ /**
+ * repeated .daprclient.State state = 3;
+ */
+ public java.util.Liststring concurrency = 4;
+ * @return The concurrency.
+ */
+ public java.lang.String getConcurrency() {
+ java.lang.Object ref = concurrency_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ concurrency_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string concurrency = 4;
+ * @return The bytes for concurrency.
+ */
+ public com.google.protobuf.ByteString
+ getConcurrencyBytes() {
+ java.lang.Object ref = concurrency_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ concurrency_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string concurrency = 4;
+ * @param value The concurrency to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConcurrency(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ concurrency_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string concurrency = 4;
+ * @return This builder for chaining.
+ */
+ public Builder clearConcurrency() {
+
+ concurrency_ = getDefaultInstance().getConcurrency();
+ onChanged();
+ return this;
+ }
+ /**
+ * string concurrency = 4;
+ * @param value The bytes for concurrency to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConcurrencyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ concurrency_ = value;
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:daprclient.BindingResponseEnvelope)
+ }
+
+ // @@protoc_insertion_point(class_scope:daprclient.BindingResponseEnvelope)
+ private static final io.dapr.DaprClientProtos.BindingResponseEnvelope DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.dapr.DaprClientProtos.BindingResponseEnvelope();
+ }
+
+ public static io.dapr.DaprClientProtos.BindingResponseEnvelope getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring 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();
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ com.google.protobuf.AnyOrBuilder getDataOrBuilder();
+
+ /**
+ * map<string, string> metadata = 3;
+ */
+ int getMetadataCount();
+ /**
+ * map<string, string> metadata = 3;
+ */
+ boolean containsMetadata(
+ java.lang.String key);
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> metadata = 3;
+ */
+ java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> metadata = 3;
+ */
+
+ java.lang.String getMetadataOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * Protobuf type {@code daprclient.InvokeEnvelope}
+ */
+ public static final class InvokeEnvelope extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:daprclient.InvokeEnvelope)
+ InvokeEnvelopeOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use InvokeEnvelope.newBuilder() to construct.
+ private InvokeEnvelope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private InvokeEnvelope() {
+ method_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new InvokeEnvelope();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private InvokeEnvelope(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ method_ = s;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.Any.Builder subBuilder = null;
+ if (data_ != null) {
+ subBuilder = data_.toBuilder();
+ }
+ data_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(data_);
+ data_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ metadata_ = com.google.protobuf.MapField.newMapField(
+ MetadataDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntrystring method = 1;
+ * @return The method.
+ */
+ public java.lang.String getMethod() {
+ java.lang.Object ref = method_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ method_ = s;
+ return s;
+ }
+ }
+ /**
+ * string method = 1;
+ * @return The bytes for method.
+ */
+ public com.google.protobuf.ByteString
+ getMethodBytes() {
+ java.lang.Object ref = method_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ method_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int DATA_FIELD_NUMBER = 2;
+ 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_;
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
+ return getData();
+ }
+
+ public static final int METADATA_FIELD_NUMBER = 3;
+ private static final class MetadataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> metadata = 3;
+ */
+
+ public boolean containsMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMetadata().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.lang.String getMetadataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapstring method = 1;
+ * @return The method.
+ */
+ public java.lang.String getMethod() {
+ java.lang.Object ref = method_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ method_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string method = 1;
+ * @return The bytes for method.
+ */
+ public com.google.protobuf.ByteString
+ getMethodBytes() {
+ java.lang.Object ref = method_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ method_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string method = 1;
+ * @param value The method to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMethod(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ method_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string method = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearMethod() {
+
+ method_ = getDefaultInstance().getMethod();
+ onChanged();
+ return this;
+ }
+ /**
+ * string method = 1;
+ * @param value The bytes for method to set.
+ * @return This builder for chaining.
+ */
+ public Builder setMethodBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ method_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Any data_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ 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) {
+ return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_;
+ } else {
+ return dataBuilder_.getMessage();
+ }
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public Builder setData(com.google.protobuf.Any value) {
+ if (dataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ data_ = value;
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public Builder setData(
+ com.google.protobuf.Any.Builder builderForValue) {
+ if (dataBuilder_ == null) {
+ data_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public Builder mergeData(com.google.protobuf.Any value) {
+ if (dataBuilder_ == null) {
+ if (data_ != null) {
+ data_ =
+ com.google.protobuf.Any.newBuilder(data_).mergeFrom(value).buildPartial();
+ } else {
+ data_ = value;
+ }
+ onChanged();
+ } else {
+ dataBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public Builder clearData() {
+ if (dataBuilder_ == null) {
+ data_ = null;
+ onChanged();
+ } else {
+ data_ = null;
+ dataBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public com.google.protobuf.Any.Builder getDataBuilder() {
+
+ onChanged();
+ return getDataFieldBuilder().getBuilder();
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
+ if (dataBuilder_ != null) {
+ return dataBuilder_.getMessageOrBuilder();
+ } else {
+ return data_ == null ?
+ com.google.protobuf.Any.getDefaultInstance() : data_;
+ }
+ }
+ /**
+ * .google.protobuf.Any data = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
+ getDataFieldBuilder() {
+ if (dataBuilder_ == null) {
+ dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
+ getData(),
+ getParentForChildren(),
+ isClean());
+ data_ = null;
+ }
+ return dataBuilder_;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> metadata_;
+ private com.google.protobuf.MapFieldmap<string, string> metadata = 3;
+ */
+
+ public boolean containsMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMetadata().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public java.lang.String getMetadataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 3;
+ */
+
+ public Builder removeMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMetadata().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 3;
+ */
+ public Builder putMetadata(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMetadata().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> metadata = 3;
+ */
+
+ public Builder putAllMetadata(
+ java.util.Maprepeated string topics = 1;
+ * @return A list containing the topics.
+ */
+ java.util.Listrepeated 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);
+ }
+ /**
+ * Protobuf type {@code daprclient.GetTopicSubscriptionsEnvelope}
+ */
+ public static final class GetTopicSubscriptionsEnvelope extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:daprclient.GetTopicSubscriptionsEnvelope)
+ GetTopicSubscriptionsEnvelopeOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetTopicSubscriptionsEnvelope.newBuilder() to construct.
+ private GetTopicSubscriptionsEnvelope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetTopicSubscriptionsEnvelope() {
+ topics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetTopicSubscriptionsEnvelope();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetTopicSubscriptionsEnvelope(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ topics_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ topics_.add(s);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ topics_ = topics_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.dapr.DaprClientProtos.internal_static_daprclient_GetTopicSubscriptionsEnvelope_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.dapr.DaprClientProtos.internal_static_daprclient_GetTopicSubscriptionsEnvelope_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope.class, io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope.Builder.class);
+ }
+
+ public static final int TOPICS_FIELD_NUMBER = 1;
+ private com.google.protobuf.LazyStringList topics_;
+ /**
+ * repeated string topics = 1;
+ * @return A list containing the topics.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getTopicsList() {
+ return topics_;
+ }
+ /**
+ * 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) {
+ return topics_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < topics_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topics_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < topics_.size(); i++) {
+ dataSize += computeStringSizeNoTag(topics_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getTopicsList().size();
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope)) {
+ return super.equals(obj);
+ }
+ io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope other = (io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope) obj;
+
+ if (!getTopicsList()
+ .equals(other.getTopicsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getTopicsCount() > 0) {
+ hash = (37 * hash) + TOPICS_FIELD_NUMBER;
+ hash = (53 * hash) + getTopicsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code daprclient.GetTopicSubscriptionsEnvelope}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderrepeated string topics = 1;
+ * @return A list containing the topics.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getTopicsList() {
+ return topics_.getUnmodifiableView();
+ }
+ /**
+ * 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) {
+ return topics_.getByteString(index);
+ }
+ /**
+ * 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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTopicsIsMutable();
+ topics_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string topics = 1;
+ * @param value The topics to add.
+ * @return This builder for chaining.
+ */
+ public Builder addTopics(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureTopicsIsMutable();
+ topics_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string topics = 1;
+ * @param values The topics to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllTopics(
+ java.lang.Iterablerepeated string topics = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearTopics() {
+ topics_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * 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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureTopicsIsMutable();
+ topics_.add(value);
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:daprclient.GetTopicSubscriptionsEnvelope)
+ }
+
+ // @@protoc_insertion_point(class_scope:daprclient.GetTopicSubscriptionsEnvelope)
+ private static final io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope();
+ }
+
+ public static io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserrepeated string bindings = 1;
+ * @return A list containing the bindings.
+ */
+ java.util.Listrepeated 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);
+ }
+ /**
+ * Protobuf type {@code daprclient.GetBindingsSubscriptionsEnvelope}
+ */
+ public static final class GetBindingsSubscriptionsEnvelope extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:daprclient.GetBindingsSubscriptionsEnvelope)
+ GetBindingsSubscriptionsEnvelopeOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use GetBindingsSubscriptionsEnvelope.newBuilder() to construct.
+ private GetBindingsSubscriptionsEnvelope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private GetBindingsSubscriptionsEnvelope() {
+ bindings_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new GetBindingsSubscriptionsEnvelope();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private GetBindingsSubscriptionsEnvelope(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ bindings_ = new com.google.protobuf.LazyStringArrayList();
+ mutable_bitField0_ |= 0x00000001;
+ }
+ bindings_.add(s);
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ if (((mutable_bitField0_ & 0x00000001) != 0)) {
+ bindings_ = bindings_.getUnmodifiableView();
+ }
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.dapr.DaprClientProtos.internal_static_daprclient_GetBindingsSubscriptionsEnvelope_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.dapr.DaprClientProtos.internal_static_daprclient_GetBindingsSubscriptionsEnvelope_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope.class, io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope.Builder.class);
+ }
+
+ public static final int BINDINGS_FIELD_NUMBER = 1;
+ private com.google.protobuf.LazyStringList bindings_;
+ /**
+ * repeated string bindings = 1;
+ * @return A list containing the bindings.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getBindingsList() {
+ return bindings_;
+ }
+ /**
+ * 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) {
+ return bindings_.getByteString(index);
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ for (int i = 0; i < bindings_.size(); i++) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, bindings_.getRaw(i));
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ {
+ int dataSize = 0;
+ for (int i = 0; i < bindings_.size(); i++) {
+ dataSize += computeStringSizeNoTag(bindings_.getRaw(i));
+ }
+ size += dataSize;
+ size += 1 * getBindingsList().size();
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope)) {
+ return super.equals(obj);
+ }
+ io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope other = (io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope) obj;
+
+ if (!getBindingsList()
+ .equals(other.getBindingsList())) return false;
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ if (getBindingsCount() > 0) {
+ hash = (37 * hash) + BINDINGS_FIELD_NUMBER;
+ hash = (53 * hash) + getBindingsList().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code daprclient.GetBindingsSubscriptionsEnvelope}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderrepeated string bindings = 1;
+ * @return A list containing the bindings.
+ */
+ public com.google.protobuf.ProtocolStringList
+ getBindingsList() {
+ return bindings_.getUnmodifiableView();
+ }
+ /**
+ * 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) {
+ return bindings_.getByteString(index);
+ }
+ /**
+ * 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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBindingsIsMutable();
+ bindings_.set(index, value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string bindings = 1;
+ * @param value The bindings to add.
+ * @return This builder for chaining.
+ */
+ public Builder addBindings(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ ensureBindingsIsMutable();
+ bindings_.add(value);
+ onChanged();
+ return this;
+ }
+ /**
+ * repeated string bindings = 1;
+ * @param values The bindings to add.
+ * @return This builder for chaining.
+ */
+ public Builder addAllBindings(
+ java.lang.Iterablerepeated string bindings = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearBindings() {
+ bindings_ = com.google.protobuf.LazyStringArrayList.EMPTY;
+ bitField0_ = (bitField0_ & ~0x00000001);
+ onChanged();
+ return this;
+ }
+ /**
+ * 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) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+ ensureBindingsIsMutable();
+ bindings_.add(value);
+ onChanged();
+ return this;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:daprclient.GetBindingsSubscriptionsEnvelope)
+ }
+
+ // @@protoc_insertion_point(class_scope:daprclient.GetBindingsSubscriptionsEnvelope)
+ private static final io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope();
+ }
+
+ public static io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring 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();
+ /**
+ * .google.protobuf.Any value = 2;
+ */
+ com.google.protobuf.AnyOrBuilder getValueOrBuilder();
+
+ /**
+ * string etag = 3;
+ * @return The etag.
+ */
+ java.lang.String getEtag();
+ /**
+ * string etag = 3;
+ * @return The bytes for etag.
+ */
+ com.google.protobuf.ByteString
+ getEtagBytes();
+
+ /**
+ * map<string, string> metadata = 4;
+ */
+ int getMetadataCount();
+ /**
+ * map<string, string> metadata = 4;
+ */
+ boolean containsMetadata(
+ java.lang.String key);
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> metadata = 4;
+ */
+ java.util.Mapmap<string, string> metadata = 4;
+ */
+
+ java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> metadata = 4;
+ */
+
+ java.lang.String getMetadataOrThrow(
+ java.lang.String key);
+
+ /**
+ * .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();
+ /**
+ * .daprclient.StateOptions options = 5;
+ */
+ io.dapr.DaprClientProtos.StateOptionsOrBuilder getOptionsOrBuilder();
+ }
+ /**
+ * Protobuf type {@code daprclient.State}
+ */
+ public static final class State extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:daprclient.State)
+ StateOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use State.newBuilder() to construct.
+ private State(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private State() {
+ key_ = "";
+ etag_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new State();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private State(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 18: {
+ com.google.protobuf.Any.Builder subBuilder = null;
+ if (value_ != null) {
+ subBuilder = value_.toBuilder();
+ }
+ value_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(value_);
+ value_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 26: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ etag_ = s;
+ break;
+ }
+ case 34: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ metadata_ = com.google.protobuf.MapField.newMapField(
+ MetadataDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntrystring key = 1;
+ * @return The key.
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string key = 1;
+ * @return The bytes for key.
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int VALUE_FIELD_NUMBER = 2;
+ 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_;
+ }
+ /**
+ * .google.protobuf.Any value = 2;
+ */
+ public com.google.protobuf.AnyOrBuilder getValueOrBuilder() {
+ return getValue();
+ }
+
+ public static final int ETAG_FIELD_NUMBER = 3;
+ private volatile java.lang.Object etag_;
+ /**
+ * string etag = 3;
+ * @return The etag.
+ */
+ public java.lang.String getEtag() {
+ java.lang.Object ref = etag_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ etag_ = s;
+ return s;
+ }
+ }
+ /**
+ * string etag = 3;
+ * @return The bytes for etag.
+ */
+ public com.google.protobuf.ByteString
+ getEtagBytes() {
+ java.lang.Object ref = etag_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ etag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int METADATA_FIELD_NUMBER = 4;
+ private static final class MetadataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> metadata = 4;
+ */
+
+ public boolean containsMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMetadata().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 4;
+ */
+
+ public java.util.Mapmap<string, string> metadata = 4;
+ */
+
+ public java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 4;
+ */
+
+ public java.lang.String getMetadataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map.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_;
+ }
+ /**
+ * .daprclient.StateOptions options = 5;
+ */
+ public io.dapr.DaprClientProtos.StateOptionsOrBuilder getOptionsOrBuilder() {
+ return getOptions();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ if (value_ != null) {
+ output.writeMessage(2, getValue());
+ }
+ if (!getEtagBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_);
+ }
+ com.google.protobuf.GeneratedMessageV3
+ .serializeStringMapTo(
+ output,
+ internalGetMetadata(),
+ MetadataDefaultEntryHolder.defaultEntry,
+ 4);
+ if (options_ != null) {
+ output.writeMessage(5, getOptions());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ if (value_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(2, getValue());
+ }
+ if (!getEtagBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_);
+ }
+ for (java.util.Map.Entrystring key = 1;
+ * @return The key.
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ * @return The bytes for key.
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ * @param value The key to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ * @param value The bytes for key to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Any value_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ 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) {
+ return value_ == null ? com.google.protobuf.Any.getDefaultInstance() : value_;
+ } else {
+ return valueBuilder_.getMessage();
+ }
+ }
+ /**
+ * .google.protobuf.Any value = 2;
+ */
+ public Builder setValue(com.google.protobuf.Any value) {
+ if (valueBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ value_ = value;
+ onChanged();
+ } else {
+ valueBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any value = 2;
+ */
+ public Builder setValue(
+ com.google.protobuf.Any.Builder builderForValue) {
+ if (valueBuilder_ == null) {
+ value_ = builderForValue.build();
+ onChanged();
+ } else {
+ valueBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any value = 2;
+ */
+ public Builder mergeValue(com.google.protobuf.Any value) {
+ if (valueBuilder_ == null) {
+ if (value_ != null) {
+ value_ =
+ com.google.protobuf.Any.newBuilder(value_).mergeFrom(value).buildPartial();
+ } else {
+ value_ = value;
+ }
+ onChanged();
+ } else {
+ valueBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any value = 2;
+ */
+ public Builder clearValue() {
+ if (valueBuilder_ == null) {
+ value_ = null;
+ onChanged();
+ } else {
+ value_ = null;
+ valueBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any value = 2;
+ */
+ public com.google.protobuf.Any.Builder getValueBuilder() {
+
+ onChanged();
+ return getValueFieldBuilder().getBuilder();
+ }
+ /**
+ * .google.protobuf.Any value = 2;
+ */
+ public com.google.protobuf.AnyOrBuilder getValueOrBuilder() {
+ if (valueBuilder_ != null) {
+ return valueBuilder_.getMessageOrBuilder();
+ } else {
+ return value_ == null ?
+ com.google.protobuf.Any.getDefaultInstance() : value_;
+ }
+ }
+ /**
+ * .google.protobuf.Any value = 2;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
+ getValueFieldBuilder() {
+ if (valueBuilder_ == null) {
+ valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
+ getValue(),
+ getParentForChildren(),
+ isClean());
+ value_ = null;
+ }
+ return valueBuilder_;
+ }
+
+ private java.lang.Object etag_ = "";
+ /**
+ * string etag = 3;
+ * @return The etag.
+ */
+ public java.lang.String getEtag() {
+ java.lang.Object ref = etag_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ etag_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string etag = 3;
+ * @return The bytes for etag.
+ */
+ public com.google.protobuf.ByteString
+ getEtagBytes() {
+ java.lang.Object ref = etag_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ etag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string etag = 3;
+ * @param value The etag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEtag(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ etag_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string etag = 3;
+ * @return This builder for chaining.
+ */
+ public Builder clearEtag() {
+
+ etag_ = getDefaultInstance().getEtag();
+ onChanged();
+ return this;
+ }
+ /**
+ * string etag = 3;
+ * @param value The bytes for etag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEtagBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ etag_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> metadata_;
+ private com.google.protobuf.MapFieldmap<string, string> metadata = 4;
+ */
+
+ public boolean containsMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMetadata().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 4;
+ */
+
+ public java.util.Mapmap<string, string> metadata = 4;
+ */
+
+ public java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 4;
+ */
+
+ public java.lang.String getMetadataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 4;
+ */
+
+ public Builder removeMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMetadata().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 4;
+ */
+ public Builder putMetadata(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMetadata().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> metadata = 4;
+ */
+
+ public Builder putAllMetadata(
+ java.util.Map.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) {
+ return options_ == null ? io.dapr.DaprClientProtos.StateOptions.getDefaultInstance() : options_;
+ } else {
+ return optionsBuilder_.getMessage();
+ }
+ }
+ /**
+ * .daprclient.StateOptions options = 5;
+ */
+ public Builder setOptions(io.dapr.DaprClientProtos.StateOptions value) {
+ if (optionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ options_ = value;
+ onChanged();
+ } else {
+ optionsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .daprclient.StateOptions options = 5;
+ */
+ public Builder setOptions(
+ io.dapr.DaprClientProtos.StateOptions.Builder builderForValue) {
+ if (optionsBuilder_ == null) {
+ options_ = builderForValue.build();
+ onChanged();
+ } else {
+ optionsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .daprclient.StateOptions options = 5;
+ */
+ public Builder mergeOptions(io.dapr.DaprClientProtos.StateOptions value) {
+ if (optionsBuilder_ == null) {
+ if (options_ != null) {
+ options_ =
+ io.dapr.DaprClientProtos.StateOptions.newBuilder(options_).mergeFrom(value).buildPartial();
+ } else {
+ options_ = value;
+ }
+ onChanged();
+ } else {
+ optionsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .daprclient.StateOptions options = 5;
+ */
+ public Builder clearOptions() {
+ if (optionsBuilder_ == null) {
+ options_ = null;
+ onChanged();
+ } else {
+ options_ = null;
+ optionsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .daprclient.StateOptions options = 5;
+ */
+ public io.dapr.DaprClientProtos.StateOptions.Builder getOptionsBuilder() {
+
+ onChanged();
+ return getOptionsFieldBuilder().getBuilder();
+ }
+ /**
+ * .daprclient.StateOptions options = 5;
+ */
+ public io.dapr.DaprClientProtos.StateOptionsOrBuilder getOptionsOrBuilder() {
+ if (optionsBuilder_ != null) {
+ return optionsBuilder_.getMessageOrBuilder();
+ } else {
+ return options_ == null ?
+ io.dapr.DaprClientProtos.StateOptions.getDefaultInstance() : options_;
+ }
+ }
+ /**
+ * .daprclient.StateOptions options = 5;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.dapr.DaprClientProtos.StateOptions, io.dapr.DaprClientProtos.StateOptions.Builder, io.dapr.DaprClientProtos.StateOptionsOrBuilder>
+ getOptionsFieldBuilder() {
+ if (optionsBuilder_ == null) {
+ optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.dapr.DaprClientProtos.StateOptions, io.dapr.DaprClientProtos.StateOptions.Builder, io.dapr.DaprClientProtos.StateOptionsOrBuilder>(
+ getOptions(),
+ getParentForChildren(),
+ isClean());
+ options_ = null;
+ }
+ return optionsBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:daprclient.State)
+ }
+
+ // @@protoc_insertion_point(class_scope:daprclient.State)
+ private static final io.dapr.DaprClientProtos.State DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.dapr.DaprClientProtos.State();
+ }
+
+ public static io.dapr.DaprClientProtos.State getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserstring 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();
+ /**
+ * .daprclient.RetryPolicy retryPolicy = 3;
+ */
+ io.dapr.DaprClientProtos.RetryPolicyOrBuilder getRetryPolicyOrBuilder();
+ }
+ /**
+ * Protobuf type {@code daprclient.StateOptions}
+ */
+ public static final class StateOptions extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:daprclient.StateOptions)
+ StateOptionsOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use StateOptions.newBuilder() to construct.
+ private StateOptions(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private StateOptions() {
+ concurrency_ = "";
+ consistency_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new StateOptions();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private StateOptions(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ concurrency_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ consistency_ = s;
+ break;
+ }
+ case 26: {
+ io.dapr.DaprClientProtos.RetryPolicy.Builder subBuilder = null;
+ if (retryPolicy_ != null) {
+ subBuilder = retryPolicy_.toBuilder();
+ }
+ retryPolicy_ = input.readMessage(io.dapr.DaprClientProtos.RetryPolicy.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(retryPolicy_);
+ retryPolicy_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.dapr.DaprClientProtos.internal_static_daprclient_StateOptions_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.dapr.DaprClientProtos.internal_static_daprclient_StateOptions_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.dapr.DaprClientProtos.StateOptions.class, io.dapr.DaprClientProtos.StateOptions.Builder.class);
+ }
+
+ public static final int CONCURRENCY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object concurrency_;
+ /**
+ * string concurrency = 1;
+ * @return The concurrency.
+ */
+ public java.lang.String getConcurrency() {
+ java.lang.Object ref = concurrency_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ concurrency_ = s;
+ return s;
+ }
+ }
+ /**
+ * string concurrency = 1;
+ * @return The bytes for concurrency.
+ */
+ public com.google.protobuf.ByteString
+ getConcurrencyBytes() {
+ java.lang.Object ref = concurrency_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ concurrency_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int CONSISTENCY_FIELD_NUMBER = 2;
+ private volatile java.lang.Object consistency_;
+ /**
+ * string consistency = 2;
+ * @return The consistency.
+ */
+ public java.lang.String getConsistency() {
+ java.lang.Object ref = consistency_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ consistency_ = s;
+ return s;
+ }
+ }
+ /**
+ * string consistency = 2;
+ * @return The bytes for consistency.
+ */
+ public com.google.protobuf.ByteString
+ getConsistencyBytes() {
+ java.lang.Object ref = consistency_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ consistency_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int RETRYPOLICY_FIELD_NUMBER = 3;
+ 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_;
+ }
+ /**
+ * .daprclient.RetryPolicy retryPolicy = 3;
+ */
+ public io.dapr.DaprClientProtos.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
+ return getRetryPolicy();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getConcurrencyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, concurrency_);
+ }
+ if (!getConsistencyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, consistency_);
+ }
+ if (retryPolicy_ != null) {
+ output.writeMessage(3, getRetryPolicy());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getConcurrencyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, concurrency_);
+ }
+ if (!getConsistencyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, consistency_);
+ }
+ if (retryPolicy_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getRetryPolicy());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.dapr.DaprClientProtos.StateOptions)) {
+ return super.equals(obj);
+ }
+ io.dapr.DaprClientProtos.StateOptions other = (io.dapr.DaprClientProtos.StateOptions) obj;
+
+ if (!getConcurrency()
+ .equals(other.getConcurrency())) return false;
+ if (!getConsistency()
+ .equals(other.getConsistency())) return false;
+ if (hasRetryPolicy() != other.hasRetryPolicy()) return false;
+ if (hasRetryPolicy()) {
+ if (!getRetryPolicy()
+ .equals(other.getRetryPolicy())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + CONCURRENCY_FIELD_NUMBER;
+ hash = (53 * hash) + getConcurrency().hashCode();
+ hash = (37 * hash) + CONSISTENCY_FIELD_NUMBER;
+ hash = (53 * hash) + getConsistency().hashCode();
+ if (hasRetryPolicy()) {
+ hash = (37 * hash) + RETRYPOLICY_FIELD_NUMBER;
+ hash = (53 * hash) + getRetryPolicy().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.dapr.DaprClientProtos.StateOptions parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.StateOptions parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.StateOptions parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.StateOptions parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.StateOptions parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.StateOptions parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.StateOptions parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.StateOptions parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.StateOptions parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.StateOptions parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.StateOptions parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.StateOptions parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.dapr.DaprClientProtos.StateOptions prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code daprclient.StateOptions}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring concurrency = 1;
+ * @return The concurrency.
+ */
+ public java.lang.String getConcurrency() {
+ java.lang.Object ref = concurrency_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ concurrency_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string concurrency = 1;
+ * @return The bytes for concurrency.
+ */
+ public com.google.protobuf.ByteString
+ getConcurrencyBytes() {
+ java.lang.Object ref = concurrency_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ concurrency_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string concurrency = 1;
+ * @param value The concurrency to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConcurrency(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ concurrency_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string concurrency = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearConcurrency() {
+
+ concurrency_ = getDefaultInstance().getConcurrency();
+ onChanged();
+ return this;
+ }
+ /**
+ * string concurrency = 1;
+ * @param value The bytes for concurrency to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConcurrencyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ concurrency_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object consistency_ = "";
+ /**
+ * string consistency = 2;
+ * @return The consistency.
+ */
+ public java.lang.String getConsistency() {
+ java.lang.Object ref = consistency_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ consistency_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string consistency = 2;
+ * @return The bytes for consistency.
+ */
+ public com.google.protobuf.ByteString
+ getConsistencyBytes() {
+ java.lang.Object ref = consistency_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ consistency_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string consistency = 2;
+ * @param value The consistency to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConsistency(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ consistency_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string consistency = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearConsistency() {
+
+ consistency_ = getDefaultInstance().getConsistency();
+ onChanged();
+ return this;
+ }
+ /**
+ * string consistency = 2;
+ * @param value The bytes for consistency to set.
+ * @return This builder for chaining.
+ */
+ public Builder setConsistencyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ consistency_ = value;
+ onChanged();
+ return this;
+ }
+
+ private io.dapr.DaprClientProtos.RetryPolicy retryPolicy_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ 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) {
+ return retryPolicy_ == null ? io.dapr.DaprClientProtos.RetryPolicy.getDefaultInstance() : retryPolicy_;
+ } else {
+ return retryPolicyBuilder_.getMessage();
+ }
+ }
+ /**
+ * .daprclient.RetryPolicy retryPolicy = 3;
+ */
+ public Builder setRetryPolicy(io.dapr.DaprClientProtos.RetryPolicy value) {
+ if (retryPolicyBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ retryPolicy_ = value;
+ onChanged();
+ } else {
+ retryPolicyBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .daprclient.RetryPolicy retryPolicy = 3;
+ */
+ public Builder setRetryPolicy(
+ io.dapr.DaprClientProtos.RetryPolicy.Builder builderForValue) {
+ if (retryPolicyBuilder_ == null) {
+ retryPolicy_ = builderForValue.build();
+ onChanged();
+ } else {
+ retryPolicyBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .daprclient.RetryPolicy retryPolicy = 3;
+ */
+ public Builder mergeRetryPolicy(io.dapr.DaprClientProtos.RetryPolicy value) {
+ if (retryPolicyBuilder_ == null) {
+ if (retryPolicy_ != null) {
+ retryPolicy_ =
+ io.dapr.DaprClientProtos.RetryPolicy.newBuilder(retryPolicy_).mergeFrom(value).buildPartial();
+ } else {
+ retryPolicy_ = value;
+ }
+ onChanged();
+ } else {
+ retryPolicyBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .daprclient.RetryPolicy retryPolicy = 3;
+ */
+ public Builder clearRetryPolicy() {
+ if (retryPolicyBuilder_ == null) {
+ retryPolicy_ = null;
+ onChanged();
+ } else {
+ retryPolicy_ = null;
+ retryPolicyBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .daprclient.RetryPolicy retryPolicy = 3;
+ */
+ public io.dapr.DaprClientProtos.RetryPolicy.Builder getRetryPolicyBuilder() {
+
+ onChanged();
+ return getRetryPolicyFieldBuilder().getBuilder();
+ }
+ /**
+ * .daprclient.RetryPolicy retryPolicy = 3;
+ */
+ public io.dapr.DaprClientProtos.RetryPolicyOrBuilder getRetryPolicyOrBuilder() {
+ if (retryPolicyBuilder_ != null) {
+ return retryPolicyBuilder_.getMessageOrBuilder();
+ } else {
+ return retryPolicy_ == null ?
+ io.dapr.DaprClientProtos.RetryPolicy.getDefaultInstance() : retryPolicy_;
+ }
+ }
+ /**
+ * .daprclient.RetryPolicy retryPolicy = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.dapr.DaprClientProtos.RetryPolicy, io.dapr.DaprClientProtos.RetryPolicy.Builder, io.dapr.DaprClientProtos.RetryPolicyOrBuilder>
+ getRetryPolicyFieldBuilder() {
+ if (retryPolicyBuilder_ == null) {
+ retryPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.dapr.DaprClientProtos.RetryPolicy, io.dapr.DaprClientProtos.RetryPolicy.Builder, io.dapr.DaprClientProtos.RetryPolicyOrBuilder>(
+ getRetryPolicy(),
+ getParentForChildren(),
+ isClean());
+ retryPolicy_ = null;
+ }
+ return retryPolicyBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:daprclient.StateOptions)
+ }
+
+ // @@protoc_insertion_point(class_scope:daprclient.StateOptions)
+ private static final io.dapr.DaprClientProtos.StateOptions DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.dapr.DaprClientProtos.StateOptions();
+ }
+
+ public static io.dapr.DaprClientProtos.StateOptions getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parserint32 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();
+ /**
+ * .google.protobuf.Duration interval = 3;
+ */
+ com.google.protobuf.DurationOrBuilder getIntervalOrBuilder();
+ }
+ /**
+ * Protobuf type {@code daprclient.RetryPolicy}
+ */
+ public static final class RetryPolicy extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:daprclient.RetryPolicy)
+ RetryPolicyOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use RetryPolicy.newBuilder() to construct.
+ private RetryPolicy(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private RetryPolicy() {
+ pattern_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new RetryPolicy();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private RetryPolicy(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 8: {
+
+ threshold_ = input.readInt32();
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ pattern_ = s;
+ break;
+ }
+ case 26: {
+ com.google.protobuf.Duration.Builder subBuilder = null;
+ if (interval_ != null) {
+ subBuilder = interval_.toBuilder();
+ }
+ interval_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(interval_);
+ interval_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.dapr.DaprClientProtos.internal_static_daprclient_RetryPolicy_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.dapr.DaprClientProtos.internal_static_daprclient_RetryPolicy_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.dapr.DaprClientProtos.RetryPolicy.class, io.dapr.DaprClientProtos.RetryPolicy.Builder.class);
+ }
+
+ public static final int THRESHOLD_FIELD_NUMBER = 1;
+ private int threshold_;
+ /**
+ * int32 threshold = 1;
+ * @return The threshold.
+ */
+ public int getThreshold() {
+ return threshold_;
+ }
+
+ public static final int PATTERN_FIELD_NUMBER = 2;
+ private volatile java.lang.Object pattern_;
+ /**
+ * string pattern = 2;
+ * @return The pattern.
+ */
+ public java.lang.String getPattern() {
+ java.lang.Object ref = pattern_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pattern_ = s;
+ return s;
+ }
+ }
+ /**
+ * string pattern = 2;
+ * @return The bytes for pattern.
+ */
+ public com.google.protobuf.ByteString
+ getPatternBytes() {
+ java.lang.Object ref = pattern_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pattern_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int INTERVAL_FIELD_NUMBER = 3;
+ 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_;
+ }
+ /**
+ * .google.protobuf.Duration interval = 3;
+ */
+ public com.google.protobuf.DurationOrBuilder getIntervalOrBuilder() {
+ return getInterval();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (threshold_ != 0) {
+ output.writeInt32(1, threshold_);
+ }
+ if (!getPatternBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pattern_);
+ }
+ if (interval_ != null) {
+ output.writeMessage(3, getInterval());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (threshold_ != 0) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeInt32Size(1, threshold_);
+ }
+ if (!getPatternBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pattern_);
+ }
+ if (interval_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getInterval());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.dapr.DaprClientProtos.RetryPolicy)) {
+ return super.equals(obj);
+ }
+ io.dapr.DaprClientProtos.RetryPolicy other = (io.dapr.DaprClientProtos.RetryPolicy) obj;
+
+ if (getThreshold()
+ != other.getThreshold()) return false;
+ if (!getPattern()
+ .equals(other.getPattern())) return false;
+ if (hasInterval() != other.hasInterval()) return false;
+ if (hasInterval()) {
+ if (!getInterval()
+ .equals(other.getInterval())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + THRESHOLD_FIELD_NUMBER;
+ hash = (53 * hash) + getThreshold();
+ hash = (37 * hash) + PATTERN_FIELD_NUMBER;
+ hash = (53 * hash) + getPattern().hashCode();
+ if (hasInterval()) {
+ hash = (37 * hash) + INTERVAL_FIELD_NUMBER;
+ hash = (53 * hash) + getInterval().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.dapr.DaprClientProtos.RetryPolicy parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.RetryPolicy parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.RetryPolicy parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.RetryPolicy parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.RetryPolicy parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprClientProtos.RetryPolicy parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.RetryPolicy parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.RetryPolicy parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.RetryPolicy parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.RetryPolicy parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprClientProtos.RetryPolicy parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprClientProtos.RetryPolicy parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.dapr.DaprClientProtos.RetryPolicy prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code daprclient.RetryPolicy}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderint32 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) {
+
+ threshold_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * int32 threshold = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearThreshold() {
+
+ threshold_ = 0;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object pattern_ = "";
+ /**
+ * string pattern = 2;
+ * @return The pattern.
+ */
+ public java.lang.String getPattern() {
+ java.lang.Object ref = pattern_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ pattern_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string pattern = 2;
+ * @return The bytes for pattern.
+ */
+ public com.google.protobuf.ByteString
+ getPatternBytes() {
+ java.lang.Object ref = pattern_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ pattern_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string pattern = 2;
+ * @param value The pattern to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPattern(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ pattern_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string pattern = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearPattern() {
+
+ pattern_ = getDefaultInstance().getPattern();
+ onChanged();
+ return this;
+ }
+ /**
+ * string pattern = 2;
+ * @param value The bytes for pattern to set.
+ * @return This builder for chaining.
+ */
+ public Builder setPatternBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ pattern_ = value;
+ onChanged();
+ return this;
+ }
+
+ private com.google.protobuf.Duration interval_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ 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) {
+ return interval_ == null ? com.google.protobuf.Duration.getDefaultInstance() : interval_;
+ } else {
+ return intervalBuilder_.getMessage();
+ }
+ }
+ /**
+ * .google.protobuf.Duration interval = 3;
+ */
+ public Builder setInterval(com.google.protobuf.Duration value) {
+ if (intervalBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ interval_ = value;
+ onChanged();
+ } else {
+ intervalBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Duration interval = 3;
+ */
+ public Builder setInterval(
+ com.google.protobuf.Duration.Builder builderForValue) {
+ if (intervalBuilder_ == null) {
+ interval_ = builderForValue.build();
+ onChanged();
+ } else {
+ intervalBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Duration interval = 3;
+ */
+ public Builder mergeInterval(com.google.protobuf.Duration value) {
+ if (intervalBuilder_ == null) {
+ if (interval_ != null) {
+ interval_ =
+ com.google.protobuf.Duration.newBuilder(interval_).mergeFrom(value).buildPartial();
+ } else {
+ interval_ = value;
+ }
+ onChanged();
+ } else {
+ intervalBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Duration interval = 3;
+ */
+ public Builder clearInterval() {
+ if (intervalBuilder_ == null) {
+ interval_ = null;
+ onChanged();
+ } else {
+ interval_ = null;
+ intervalBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Duration interval = 3;
+ */
+ public com.google.protobuf.Duration.Builder getIntervalBuilder() {
+
+ onChanged();
+ return getIntervalFieldBuilder().getBuilder();
+ }
+ /**
+ * .google.protobuf.Duration interval = 3;
+ */
+ public com.google.protobuf.DurationOrBuilder getIntervalOrBuilder() {
+ if (intervalBuilder_ != null) {
+ return intervalBuilder_.getMessageOrBuilder();
+ } else {
+ return interval_ == null ?
+ com.google.protobuf.Duration.getDefaultInstance() : interval_;
+ }
+ }
+ /**
+ * .google.protobuf.Duration interval = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>
+ getIntervalFieldBuilder() {
+ if (intervalBuilder_ == null) {
+ intervalBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>(
+ getInterval(),
+ getParentForChildren(),
+ isClean());
+ interval_ = null;
+ }
+ return intervalBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:daprclient.RetryPolicy)
+ }
+
+ // @@protoc_insertion_point(class_scope:daprclient.RetryPolicy)
+ private static final io.dapr.DaprClientProtos.RetryPolicy DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.dapr.DaprClientProtos.RetryPolicy();
+ }
+
+ public static io.dapr.DaprClientProtos.RetryPolicy getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser+ * Dapr definitions + *+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.24.0)", + comments = "Source: dapr/dapr.proto") +public final class DaprGrpc { + + private DaprGrpc() {} + + public static final String SERVICE_NAME = "dapr.Dapr"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor
+ * Dapr definitions + *+ */ + public static abstract class DaprImplBase implements io.grpc.BindableService { + + /** + */ + public void publishEvent(io.dapr.DaprProtos.PublishEventEnvelope request, + io.grpc.stub.StreamObserver
+ * Dapr definitions + *+ */ + public static final class DaprStub extends io.grpc.stub.AbstractStub
+ * Dapr definitions + *+ */ + public static final class DaprBlockingStub extends io.grpc.stub.AbstractStub
+ * Dapr definitions + *+ */ + public static final class DaprFutureStub extends io.grpc.stub.AbstractStub
.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();
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ com.google.protobuf.AnyOrBuilder getDataOrBuilder();
+
+ /**
+ * map<string, string> metadata = 2;
+ */
+ int getMetadataCount();
+ /**
+ * map<string, string> metadata = 2;
+ */
+ boolean containsMetadata(
+ java.lang.String key);
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ java.util.Mapmap<string, string> metadata = 2;
+ */
+ java.util.Mapmap<string, string> metadata = 2;
+ */
+
+ java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue);
+ /**
+ * map<string, string> metadata = 2;
+ */
+
+ java.lang.String getMetadataOrThrow(
+ java.lang.String key);
+ }
+ /**
+ * Protobuf type {@code dapr.InvokeServiceResponseEnvelope}
+ */
+ public static final class InvokeServiceResponseEnvelope extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:dapr.InvokeServiceResponseEnvelope)
+ InvokeServiceResponseEnvelopeOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use InvokeServiceResponseEnvelope.newBuilder() to construct.
+ private InvokeServiceResponseEnvelope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private InvokeServiceResponseEnvelope() {
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new InvokeServiceResponseEnvelope();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private InvokeServiceResponseEnvelope(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ int mutable_bitField0_ = 0;
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ com.google.protobuf.Any.Builder subBuilder = null;
+ if (data_ != null) {
+ subBuilder = data_.toBuilder();
+ }
+ data_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(data_);
+ data_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ case 18: {
+ if (!((mutable_bitField0_ & 0x00000001) != 0)) {
+ metadata_ = com.google.protobuf.MapField.newMapField(
+ MetadataDefaultEntryHolder.defaultEntry);
+ mutable_bitField0_ |= 0x00000001;
+ }
+ com.google.protobuf.MapEntry.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_;
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
+ return getData();
+ }
+
+ public static final int METADATA_FIELD_NUMBER = 2;
+ private static final class MetadataDefaultEntryHolder {
+ static final com.google.protobuf.MapEntry<
+ java.lang.String, java.lang.String> defaultEntry =
+ com.google.protobuf.MapEntry
+ .map<string, string> metadata = 2;
+ */
+
+ public boolean containsMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMetadata().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 2;
+ */
+
+ public java.util.Mapmap<string, string> metadata = 2;
+ */
+
+ public java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 2;
+ */
+
+ public java.lang.String getMetadataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Map.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) {
+ return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_;
+ } else {
+ return dataBuilder_.getMessage();
+ }
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public Builder setData(com.google.protobuf.Any value) {
+ if (dataBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ data_ = value;
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public Builder setData(
+ com.google.protobuf.Any.Builder builderForValue) {
+ if (dataBuilder_ == null) {
+ data_ = builderForValue.build();
+ onChanged();
+ } else {
+ dataBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public Builder mergeData(com.google.protobuf.Any value) {
+ if (dataBuilder_ == null) {
+ if (data_ != null) {
+ data_ =
+ com.google.protobuf.Any.newBuilder(data_).mergeFrom(value).buildPartial();
+ } else {
+ data_ = value;
+ }
+ onChanged();
+ } else {
+ dataBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public Builder clearData() {
+ if (dataBuilder_ == null) {
+ data_ = null;
+ onChanged();
+ } else {
+ data_ = null;
+ dataBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public com.google.protobuf.Any.Builder getDataBuilder() {
+
+ onChanged();
+ return getDataFieldBuilder().getBuilder();
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() {
+ if (dataBuilder_ != null) {
+ return dataBuilder_.getMessageOrBuilder();
+ } else {
+ return data_ == null ?
+ com.google.protobuf.Any.getDefaultInstance() : data_;
+ }
+ }
+ /**
+ * .google.protobuf.Any data = 1;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>
+ getDataFieldBuilder() {
+ if (dataBuilder_ == null) {
+ dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(
+ getData(),
+ getParentForChildren(),
+ isClean());
+ data_ = null;
+ }
+ return dataBuilder_;
+ }
+
+ private com.google.protobuf.MapField<
+ java.lang.String, java.lang.String> metadata_;
+ private com.google.protobuf.MapFieldmap<string, string> metadata = 2;
+ */
+
+ public boolean containsMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ return internalGetMetadata().getMap().containsKey(key);
+ }
+ /**
+ * Use {@link #getMetadataMap()} instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 2;
+ */
+
+ public java.util.Mapmap<string, string> metadata = 2;
+ */
+
+ public java.lang.String getMetadataOrDefault(
+ java.lang.String key,
+ java.lang.String defaultValue) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 2;
+ */
+
+ public java.lang.String getMetadataOrThrow(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ java.util.Mapmap<string, string> metadata = 2;
+ */
+
+ public Builder removeMetadata(
+ java.lang.String key) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMetadata().getMutableMap()
+ .remove(key);
+ return this;
+ }
+ /**
+ * Use alternate mutation accessors instead.
+ */
+ @java.lang.Deprecated
+ public java.util.Mapmap<string, string> metadata = 2;
+ */
+ public Builder putMetadata(
+ java.lang.String key,
+ java.lang.String value) {
+ if (key == null) { throw new java.lang.NullPointerException(); }
+ if (value == null) { throw new java.lang.NullPointerException(); }
+ internalGetMutableMetadata().getMutableMap()
+ .put(key, value);
+ return this;
+ }
+ /**
+ * map<string, string> metadata = 2;
+ */
+
+ public Builder putAllMetadata(
+ java.util.Mapstring 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();
+ /**
+ * .dapr.StateOptions options = 3;
+ */
+ io.dapr.DaprProtos.StateOptionsOrBuilder getOptionsOrBuilder();
+ }
+ /**
+ * Protobuf type {@code dapr.DeleteStateEnvelope}
+ */
+ public static final class DeleteStateEnvelope extends
+ com.google.protobuf.GeneratedMessageV3 implements
+ // @@protoc_insertion_point(message_implements:dapr.DeleteStateEnvelope)
+ DeleteStateEnvelopeOrBuilder {
+ private static final long serialVersionUID = 0L;
+ // Use DeleteStateEnvelope.newBuilder() to construct.
+ private DeleteStateEnvelope(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
+ super(builder);
+ }
+ private DeleteStateEnvelope() {
+ key_ = "";
+ etag_ = "";
+ }
+
+ @java.lang.Override
+ @SuppressWarnings({"unused"})
+ protected java.lang.Object newInstance(
+ UnusedPrivateParameter unused) {
+ return new DeleteStateEnvelope();
+ }
+
+ @java.lang.Override
+ public final com.google.protobuf.UnknownFieldSet
+ getUnknownFields() {
+ return this.unknownFields;
+ }
+ private DeleteStateEnvelope(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ this();
+ if (extensionRegistry == null) {
+ throw new java.lang.NullPointerException();
+ }
+ com.google.protobuf.UnknownFieldSet.Builder unknownFields =
+ com.google.protobuf.UnknownFieldSet.newBuilder();
+ try {
+ boolean done = false;
+ while (!done) {
+ int tag = input.readTag();
+ switch (tag) {
+ case 0:
+ done = true;
+ break;
+ case 10: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ key_ = s;
+ break;
+ }
+ case 18: {
+ java.lang.String s = input.readStringRequireUtf8();
+
+ etag_ = s;
+ break;
+ }
+ case 26: {
+ io.dapr.DaprProtos.StateOptions.Builder subBuilder = null;
+ if (options_ != null) {
+ subBuilder = options_.toBuilder();
+ }
+ options_ = input.readMessage(io.dapr.DaprProtos.StateOptions.parser(), extensionRegistry);
+ if (subBuilder != null) {
+ subBuilder.mergeFrom(options_);
+ options_ = subBuilder.buildPartial();
+ }
+
+ break;
+ }
+ default: {
+ if (!parseUnknownField(
+ input, unknownFields, extensionRegistry, tag)) {
+ done = true;
+ }
+ break;
+ }
+ }
+ }
+ } catch (com.google.protobuf.InvalidProtocolBufferException e) {
+ throw e.setUnfinishedMessage(this);
+ } catch (java.io.IOException e) {
+ throw new com.google.protobuf.InvalidProtocolBufferException(
+ e).setUnfinishedMessage(this);
+ } finally {
+ this.unknownFields = unknownFields.build();
+ makeExtensionsImmutable();
+ }
+ }
+ public static final com.google.protobuf.Descriptors.Descriptor
+ getDescriptor() {
+ return io.dapr.DaprProtos.internal_static_dapr_DeleteStateEnvelope_descriptor;
+ }
+
+ @java.lang.Override
+ protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
+ internalGetFieldAccessorTable() {
+ return io.dapr.DaprProtos.internal_static_dapr_DeleteStateEnvelope_fieldAccessorTable
+ .ensureFieldAccessorsInitialized(
+ io.dapr.DaprProtos.DeleteStateEnvelope.class, io.dapr.DaprProtos.DeleteStateEnvelope.Builder.class);
+ }
+
+ public static final int KEY_FIELD_NUMBER = 1;
+ private volatile java.lang.Object key_;
+ /**
+ * string key = 1;
+ * @return The key.
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ }
+ }
+ /**
+ * string key = 1;
+ * @return The bytes for key.
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int ETAG_FIELD_NUMBER = 2;
+ private volatile java.lang.Object etag_;
+ /**
+ * string etag = 2;
+ * @return The etag.
+ */
+ public java.lang.String getEtag() {
+ java.lang.Object ref = etag_;
+ if (ref instanceof java.lang.String) {
+ return (java.lang.String) ref;
+ } else {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ etag_ = s;
+ return s;
+ }
+ }
+ /**
+ * string etag = 2;
+ * @return The bytes for etag.
+ */
+ public com.google.protobuf.ByteString
+ getEtagBytes() {
+ java.lang.Object ref = etag_;
+ if (ref instanceof java.lang.String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ etag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+
+ public static final int OPTIONS_FIELD_NUMBER = 3;
+ 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_;
+ }
+ /**
+ * .dapr.StateOptions options = 3;
+ */
+ public io.dapr.DaprProtos.StateOptionsOrBuilder getOptionsOrBuilder() {
+ return getOptions();
+ }
+
+ private byte memoizedIsInitialized = -1;
+ @java.lang.Override
+ public final boolean isInitialized() {
+ byte isInitialized = memoizedIsInitialized;
+ if (isInitialized == 1) return true;
+ if (isInitialized == 0) return false;
+
+ memoizedIsInitialized = 1;
+ return true;
+ }
+
+ @java.lang.Override
+ public void writeTo(com.google.protobuf.CodedOutputStream output)
+ throws java.io.IOException {
+ if (!getKeyBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
+ }
+ if (!getEtagBytes().isEmpty()) {
+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_);
+ }
+ if (options_ != null) {
+ output.writeMessage(3, getOptions());
+ }
+ unknownFields.writeTo(output);
+ }
+
+ @java.lang.Override
+ public int getSerializedSize() {
+ int size = memoizedSize;
+ if (size != -1) return size;
+
+ size = 0;
+ if (!getKeyBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_);
+ }
+ if (!getEtagBytes().isEmpty()) {
+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_);
+ }
+ if (options_ != null) {
+ size += com.google.protobuf.CodedOutputStream
+ .computeMessageSize(3, getOptions());
+ }
+ size += unknownFields.getSerializedSize();
+ memoizedSize = size;
+ return size;
+ }
+
+ @java.lang.Override
+ public boolean equals(final java.lang.Object obj) {
+ if (obj == this) {
+ return true;
+ }
+ if (!(obj instanceof io.dapr.DaprProtos.DeleteStateEnvelope)) {
+ return super.equals(obj);
+ }
+ io.dapr.DaprProtos.DeleteStateEnvelope other = (io.dapr.DaprProtos.DeleteStateEnvelope) obj;
+
+ if (!getKey()
+ .equals(other.getKey())) return false;
+ if (!getEtag()
+ .equals(other.getEtag())) return false;
+ if (hasOptions() != other.hasOptions()) return false;
+ if (hasOptions()) {
+ if (!getOptions()
+ .equals(other.getOptions())) return false;
+ }
+ if (!unknownFields.equals(other.unknownFields)) return false;
+ return true;
+ }
+
+ @java.lang.Override
+ public int hashCode() {
+ if (memoizedHashCode != 0) {
+ return memoizedHashCode;
+ }
+ int hash = 41;
+ hash = (19 * hash) + getDescriptor().hashCode();
+ hash = (37 * hash) + KEY_FIELD_NUMBER;
+ hash = (53 * hash) + getKey().hashCode();
+ hash = (37 * hash) + ETAG_FIELD_NUMBER;
+ hash = (53 * hash) + getEtag().hashCode();
+ if (hasOptions()) {
+ hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
+ hash = (53 * hash) + getOptions().hashCode();
+ }
+ hash = (29 * hash) + unknownFields.hashCode();
+ memoizedHashCode = hash;
+ return hash;
+ }
+
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseFrom(
+ java.nio.ByteBuffer data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseFrom(
+ java.nio.ByteBuffer data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseFrom(
+ com.google.protobuf.ByteString data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseFrom(
+ com.google.protobuf.ByteString data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseFrom(byte[] data)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data);
+ }
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseFrom(
+ byte[] data,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws com.google.protobuf.InvalidProtocolBufferException {
+ return PARSER.parseFrom(data, extensionRegistry);
+ }
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseDelimitedFrom(java.io.InputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseDelimitedFrom(
+ java.io.InputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
+ }
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseFrom(
+ com.google.protobuf.CodedInputStream input)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input);
+ }
+ public static io.dapr.DaprProtos.DeleteStateEnvelope parseFrom(
+ com.google.protobuf.CodedInputStream input,
+ com.google.protobuf.ExtensionRegistryLite extensionRegistry)
+ throws java.io.IOException {
+ return com.google.protobuf.GeneratedMessageV3
+ .parseWithIOException(PARSER, input, extensionRegistry);
+ }
+
+ @java.lang.Override
+ public Builder newBuilderForType() { return newBuilder(); }
+ public static Builder newBuilder() {
+ return DEFAULT_INSTANCE.toBuilder();
+ }
+ public static Builder newBuilder(io.dapr.DaprProtos.DeleteStateEnvelope prototype) {
+ return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
+ }
+ @java.lang.Override
+ public Builder toBuilder() {
+ return this == DEFAULT_INSTANCE
+ ? new Builder() : new Builder().mergeFrom(this);
+ }
+
+ @java.lang.Override
+ protected Builder newBuilderForType(
+ com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
+ Builder builder = new Builder(parent);
+ return builder;
+ }
+ /**
+ * Protobuf type {@code dapr.DeleteStateEnvelope}
+ */
+ public static final class Builder extends
+ com.google.protobuf.GeneratedMessageV3.Builderstring key = 1;
+ * @return The key.
+ */
+ public java.lang.String getKey() {
+ java.lang.Object ref = key_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ key_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ * @return The bytes for key.
+ */
+ public com.google.protobuf.ByteString
+ getKeyBytes() {
+ java.lang.Object ref = key_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ key_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string key = 1;
+ * @param value The key to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKey(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ * @return This builder for chaining.
+ */
+ public Builder clearKey() {
+
+ key_ = getDefaultInstance().getKey();
+ onChanged();
+ return this;
+ }
+ /**
+ * string key = 1;
+ * @param value The bytes for key to set.
+ * @return This builder for chaining.
+ */
+ public Builder setKeyBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ key_ = value;
+ onChanged();
+ return this;
+ }
+
+ private java.lang.Object etag_ = "";
+ /**
+ * string etag = 2;
+ * @return The etag.
+ */
+ public java.lang.String getEtag() {
+ java.lang.Object ref = etag_;
+ if (!(ref instanceof java.lang.String)) {
+ com.google.protobuf.ByteString bs =
+ (com.google.protobuf.ByteString) ref;
+ java.lang.String s = bs.toStringUtf8();
+ etag_ = s;
+ return s;
+ } else {
+ return (java.lang.String) ref;
+ }
+ }
+ /**
+ * string etag = 2;
+ * @return The bytes for etag.
+ */
+ public com.google.protobuf.ByteString
+ getEtagBytes() {
+ java.lang.Object ref = etag_;
+ if (ref instanceof String) {
+ com.google.protobuf.ByteString b =
+ com.google.protobuf.ByteString.copyFromUtf8(
+ (java.lang.String) ref);
+ etag_ = b;
+ return b;
+ } else {
+ return (com.google.protobuf.ByteString) ref;
+ }
+ }
+ /**
+ * string etag = 2;
+ * @param value The etag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEtag(
+ java.lang.String value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+
+ etag_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ * string etag = 2;
+ * @return This builder for chaining.
+ */
+ public Builder clearEtag() {
+
+ etag_ = getDefaultInstance().getEtag();
+ onChanged();
+ return this;
+ }
+ /**
+ * string etag = 2;
+ * @param value The bytes for etag to set.
+ * @return This builder for chaining.
+ */
+ public Builder setEtagBytes(
+ com.google.protobuf.ByteString value) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ checkByteStringIsUtf8(value);
+
+ etag_ = value;
+ onChanged();
+ return this;
+ }
+
+ private io.dapr.DaprProtos.StateOptions options_;
+ private com.google.protobuf.SingleFieldBuilderV3<
+ 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) {
+ return options_ == null ? io.dapr.DaprProtos.StateOptions.getDefaultInstance() : options_;
+ } else {
+ return optionsBuilder_.getMessage();
+ }
+ }
+ /**
+ * .dapr.StateOptions options = 3;
+ */
+ public Builder setOptions(io.dapr.DaprProtos.StateOptions value) {
+ if (optionsBuilder_ == null) {
+ if (value == null) {
+ throw new NullPointerException();
+ }
+ options_ = value;
+ onChanged();
+ } else {
+ optionsBuilder_.setMessage(value);
+ }
+
+ return this;
+ }
+ /**
+ * .dapr.StateOptions options = 3;
+ */
+ public Builder setOptions(
+ io.dapr.DaprProtos.StateOptions.Builder builderForValue) {
+ if (optionsBuilder_ == null) {
+ options_ = builderForValue.build();
+ onChanged();
+ } else {
+ optionsBuilder_.setMessage(builderForValue.build());
+ }
+
+ return this;
+ }
+ /**
+ * .dapr.StateOptions options = 3;
+ */
+ public Builder mergeOptions(io.dapr.DaprProtos.StateOptions value) {
+ if (optionsBuilder_ == null) {
+ if (options_ != null) {
+ options_ =
+ io.dapr.DaprProtos.StateOptions.newBuilder(options_).mergeFrom(value).buildPartial();
+ } else {
+ options_ = value;
+ }
+ onChanged();
+ } else {
+ optionsBuilder_.mergeFrom(value);
+ }
+
+ return this;
+ }
+ /**
+ * .dapr.StateOptions options = 3;
+ */
+ public Builder clearOptions() {
+ if (optionsBuilder_ == null) {
+ options_ = null;
+ onChanged();
+ } else {
+ options_ = null;
+ optionsBuilder_ = null;
+ }
+
+ return this;
+ }
+ /**
+ * .dapr.StateOptions options = 3;
+ */
+ public io.dapr.DaprProtos.StateOptions.Builder getOptionsBuilder() {
+
+ onChanged();
+ return getOptionsFieldBuilder().getBuilder();
+ }
+ /**
+ * .dapr.StateOptions options = 3;
+ */
+ public io.dapr.DaprProtos.StateOptionsOrBuilder getOptionsOrBuilder() {
+ if (optionsBuilder_ != null) {
+ return optionsBuilder_.getMessageOrBuilder();
+ } else {
+ return options_ == null ?
+ io.dapr.DaprProtos.StateOptions.getDefaultInstance() : options_;
+ }
+ }
+ /**
+ * .dapr.StateOptions options = 3;
+ */
+ private com.google.protobuf.SingleFieldBuilderV3<
+ io.dapr.DaprProtos.StateOptions, io.dapr.DaprProtos.StateOptions.Builder, io.dapr.DaprProtos.StateOptionsOrBuilder>
+ getOptionsFieldBuilder() {
+ if (optionsBuilder_ == null) {
+ optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
+ io.dapr.DaprProtos.StateOptions, io.dapr.DaprProtos.StateOptions.Builder, io.dapr.DaprProtos.StateOptionsOrBuilder>(
+ getOptions(),
+ getParentForChildren(),
+ isClean());
+ options_ = null;
+ }
+ return optionsBuilder_;
+ }
+ @java.lang.Override
+ public final Builder setUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.setUnknownFields(unknownFields);
+ }
+
+ @java.lang.Override
+ public final Builder mergeUnknownFields(
+ final com.google.protobuf.UnknownFieldSet unknownFields) {
+ return super.mergeUnknownFields(unknownFields);
+ }
+
+
+ // @@protoc_insertion_point(builder_scope:dapr.DeleteStateEnvelope)
+ }
+
+ // @@protoc_insertion_point(class_scope:dapr.DeleteStateEnvelope)
+ private static final io.dapr.DaprProtos.DeleteStateEnvelope DEFAULT_INSTANCE;
+ static {
+ DEFAULT_INSTANCE = new io.dapr.DaprProtos.DeleteStateEnvelope();
+ }
+
+ public static io.dapr.DaprProtos.DeleteStateEnvelope getDefaultInstance() {
+ return DEFAULT_INSTANCE;
+ }
+
+ private static final com.google.protobuf.Parser