From 340ab1a17e9e519bb7b9f68e89ce31df10aeb558 Mon Sep 17 00:00:00 2001 From: Brendan Burns Date: Wed, 9 Oct 2019 10:29:13 -0700 Subject: [PATCH] Initial add. --- examples/components/redis.yaml | 11 + examples/components/redis_messagebus.yaml | 11 + examples/pom.xml | 65 + .../main/java/io/dapr/examples/Example.java | 49 + pom.xml | 82 + src/main/java/io/dapr/DaprClientGrpc.java | 590 + src/main/java/io/dapr/DaprClientProtos.java | 9676 +++++++++++ src/main/java/io/dapr/DaprGrpc.java | 664 + src/main/java/io/dapr/DaprProtos.java | 13828 ++++++++++++++++ 9 files changed, 24976 insertions(+) create mode 100644 examples/components/redis.yaml create mode 100644 examples/components/redis_messagebus.yaml create mode 100644 examples/pom.xml create mode 100644 examples/src/main/java/io/dapr/examples/Example.java create mode 100644 pom.xml create mode 100644 src/main/java/io/dapr/DaprClientGrpc.java create mode 100644 src/main/java/io/dapr/DaprClientProtos.java create mode 100644 src/main/java/io/dapr/DaprGrpc.java create mode 100644 src/main/java/io/dapr/DaprProtos.java 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 @@ + + 4.0.0 + io.dapr + examples + jar + 0.0.1 + dapr-client + https://github.com/dapr/dapr-client + + + UTF-8 + 1.24.0 + 3.10.0 + 3.10.0 + 1.7 + 1.7 + + + + + + io.grpc + grpc-bom + ${grpc.version} + pom + import + + + + + + + io.dapr + client + 0.0.1 + + + io.grpc + grpc-protobuf + + + io.grpc + grpc-stub + + + javax.annotation + javax.annotation-api + 1.2 + provided + + + com.google.protobuf + protobuf-java-util + ${protobuf.version} + + + + + + + + + + diff --git a/examples/src/main/java/io/dapr/examples/Example.java b/examples/src/main/java/io/dapr/examples/Example.java new file mode 100644 index 000000000..7f68533ef --- /dev/null +++ b/examples/src/main/java/io/dapr/examples/Example.java @@ -0,0 +1,49 @@ +package io.dapr.examples; + +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; + +import io.dapr.DaprGrpc; +import io.dapr.DaprGrpc.DaprBlockingStub; +import io.dapr.DaprProtos.DeleteStateEnvelope; +import io.dapr.DaprProtos.GetStateEnvelope; +import io.dapr.DaprProtos.GetStateResponseEnvelope; +import io.dapr.DaprProtos.PublishEventEnvelope; +import io.dapr.DaprProtos.SaveStateEnvelope; +import io.dapr.DaprProtos.StateRequest; +import io.grpc.ManagedChannel; +import io.grpc.ManagedChannelBuilder; + +/** + * Simple example, to run: + * mvn compile + * dapr run --grpc-port 50001 -- mvn exec:java -Dexec.mainClass=io.dapr.examples.Example + */ +public class Example { + public static void main(String[] args) { + ManagedChannel channel = + ManagedChannelBuilder.forAddress("localhost", 50001).usePlaintext().build(); + DaprBlockingStub client = DaprGrpc.newBlockingStub(channel); + + Any data = Any.newBuilder().setValue(ByteString.copyFromUtf8("foo")).build(); + client.publishEvent(PublishEventEnvelope.newBuilder().setTopic("foo").setData(data).build()); + System.out.println("Published!"); + + String key = "mykey"; + StateRequest req = StateRequest.newBuilder() + .setKey(key) + .setValue(Any.newBuilder().setValue(ByteString.copyFromUtf8("my value")).build()) + .build(); + SaveStateEnvelope state = SaveStateEnvelope.newBuilder() + .addRequests(req) + .build(); + client.saveState(state); + System.out.println("Saved!"); + + GetStateResponseEnvelope get = client.getState(GetStateEnvelope.newBuilder().setKey(key).build()); + System.out.println("Got: " + get.getData().getValue().toStringUtf8()); + + client.deleteState(DeleteStateEnvelope.newBuilder().setKey(key).build()); + System.out.println("Deleted!"); + } +} \ No newline at end of file diff --git a/pom.xml b/pom.xml new file mode 100644 index 000000000..0c1369db0 --- /dev/null +++ b/pom.xml @@ -0,0 +1,82 @@ + + 4.0.0 + io.dapr + client + jar + 0.0.1 + dapr-client + https://github.com/dapr/dapr-client + + + UTF-8 + 1.24.0 + 3.10.0 + 3.10.0 + 1.7 + 1.7 + + + + + + io.grpc + grpc-bom + ${grpc.version} + pom + import + + + + + + + io.grpc + grpc-netty-shaded + runtime + + + io.grpc + grpc-protobuf + + + io.grpc + grpc-stub + + + javax.annotation + javax.annotation-api + 1.2 + provided + + + io.grpc + grpc-testing + test + + + com.google.protobuf + protobuf-java-util + ${protobuf.version} + + + junit + junit + 4.12 + test + + + org.mockito + mockito-core + 2.25.1 + test + + + + + + + + + + diff --git a/src/main/java/io/dapr/DaprClientGrpc.java b/src/main/java/io/dapr/DaprClientGrpc.java new file mode 100644 index 000000000..3d2adf465 --- /dev/null +++ b/src/main/java/io/dapr/DaprClientGrpc.java @@ -0,0 +1,590 @@ +package io.dapr; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * 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 getOnInvokeMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "OnInvoke", + requestType = io.dapr.DaprClientProtos.InvokeEnvelope.class, + responseType = com.google.protobuf.Any.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getOnInvokeMethod() { + io.grpc.MethodDescriptor getOnInvokeMethod; + if ((getOnInvokeMethod = DaprClientGrpc.getOnInvokeMethod) == null) { + synchronized (DaprClientGrpc.class) { + if ((getOnInvokeMethod = DaprClientGrpc.getOnInvokeMethod) == null) { + DaprClientGrpc.getOnInvokeMethod = getOnInvokeMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OnInvoke")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprClientProtos.InvokeEnvelope.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Any.getDefaultInstance())) + .setSchemaDescriptor(new DaprClientMethodDescriptorSupplier("OnInvoke")) + .build(); + } + } + } + return getOnInvokeMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetTopicSubscriptionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetTopicSubscriptions", + requestType = com.google.protobuf.Empty.class, + responseType = io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetTopicSubscriptionsMethod() { + io.grpc.MethodDescriptor getGetTopicSubscriptionsMethod; + if ((getGetTopicSubscriptionsMethod = DaprClientGrpc.getGetTopicSubscriptionsMethod) == null) { + synchronized (DaprClientGrpc.class) { + if ((getGetTopicSubscriptionsMethod = DaprClientGrpc.getGetTopicSubscriptionsMethod) == null) { + DaprClientGrpc.getGetTopicSubscriptionsMethod = getGetTopicSubscriptionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTopicSubscriptions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope.getDefaultInstance())) + .setSchemaDescriptor(new DaprClientMethodDescriptorSupplier("GetTopicSubscriptions")) + .build(); + } + } + } + return getGetTopicSubscriptionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetBindingsSubscriptionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetBindingsSubscriptions", + requestType = com.google.protobuf.Empty.class, + responseType = io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetBindingsSubscriptionsMethod() { + io.grpc.MethodDescriptor getGetBindingsSubscriptionsMethod; + if ((getGetBindingsSubscriptionsMethod = DaprClientGrpc.getGetBindingsSubscriptionsMethod) == null) { + synchronized (DaprClientGrpc.class) { + if ((getGetBindingsSubscriptionsMethod = DaprClientGrpc.getGetBindingsSubscriptionsMethod) == null) { + DaprClientGrpc.getGetBindingsSubscriptionsMethod = getGetBindingsSubscriptionsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetBindingsSubscriptions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope.getDefaultInstance())) + .setSchemaDescriptor(new DaprClientMethodDescriptorSupplier("GetBindingsSubscriptions")) + .build(); + } + } + } + return getGetBindingsSubscriptionsMethod; + } + + private static volatile io.grpc.MethodDescriptor getOnBindingEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "OnBindingEvent", + requestType = io.dapr.DaprClientProtos.BindingEventEnvelope.class, + responseType = io.dapr.DaprClientProtos.BindingResponseEnvelope.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getOnBindingEventMethod() { + io.grpc.MethodDescriptor getOnBindingEventMethod; + if ((getOnBindingEventMethod = DaprClientGrpc.getOnBindingEventMethod) == null) { + synchronized (DaprClientGrpc.class) { + if ((getOnBindingEventMethod = DaprClientGrpc.getOnBindingEventMethod) == null) { + DaprClientGrpc.getOnBindingEventMethod = getOnBindingEventMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OnBindingEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprClientProtos.BindingEventEnvelope.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprClientProtos.BindingResponseEnvelope.getDefaultInstance())) + .setSchemaDescriptor(new DaprClientMethodDescriptorSupplier("OnBindingEvent")) + .build(); + } + } + } + return getOnBindingEventMethod; + } + + private static volatile io.grpc.MethodDescriptor getOnTopicEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "OnTopicEvent", + requestType = io.dapr.DaprClientProtos.CloudEventEnvelope.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getOnTopicEventMethod() { + io.grpc.MethodDescriptor getOnTopicEventMethod; + if ((getOnTopicEventMethod = DaprClientGrpc.getOnTopicEventMethod) == null) { + synchronized (DaprClientGrpc.class) { + if ((getOnTopicEventMethod = DaprClientGrpc.getOnTopicEventMethod) == null) { + DaprClientGrpc.getOnTopicEventMethod = getOnTopicEventMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "OnTopicEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprClientProtos.CloudEventEnvelope.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DaprClientMethodDescriptorSupplier("OnTopicEvent")) + .build(); + } + } + } + return getOnTopicEventMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DaprClientStub newStub(io.grpc.Channel channel) { + return new DaprClientStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DaprClientBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new DaprClientBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DaprClientFutureStub newFutureStub( + io.grpc.Channel channel) { + return new DaprClientFutureStub(channel); + } + + /** + *
+   * User Code definitions
+   * 
+ */ + public static abstract class DaprClientImplBase implements io.grpc.BindableService { + + /** + */ + public void onInvoke(io.dapr.DaprClientProtos.InvokeEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getOnInvokeMethod(), responseObserver); + } + + /** + */ + public void getTopicSubscriptions(com.google.protobuf.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetTopicSubscriptionsMethod(), responseObserver); + } + + /** + */ + public void getBindingsSubscriptions(com.google.protobuf.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetBindingsSubscriptionsMethod(), responseObserver); + } + + /** + */ + public void onBindingEvent(io.dapr.DaprClientProtos.BindingEventEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getOnBindingEventMethod(), responseObserver); + } + + /** + */ + public void onTopicEvent(io.dapr.DaprClientProtos.CloudEventEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getOnTopicEventMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getOnInvokeMethod(), + asyncUnaryCall( + new MethodHandlers< + io.dapr.DaprClientProtos.InvokeEnvelope, + com.google.protobuf.Any>( + this, METHODID_ON_INVOKE))) + .addMethod( + getGetTopicSubscriptionsMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.protobuf.Empty, + io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope>( + this, METHODID_GET_TOPIC_SUBSCRIPTIONS))) + .addMethod( + getGetBindingsSubscriptionsMethod(), + asyncUnaryCall( + new MethodHandlers< + com.google.protobuf.Empty, + io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope>( + this, METHODID_GET_BINDINGS_SUBSCRIPTIONS))) + .addMethod( + getOnBindingEventMethod(), + asyncUnaryCall( + new MethodHandlers< + io.dapr.DaprClientProtos.BindingEventEnvelope, + io.dapr.DaprClientProtos.BindingResponseEnvelope>( + this, METHODID_ON_BINDING_EVENT))) + .addMethod( + getOnTopicEventMethod(), + asyncUnaryCall( + new MethodHandlers< + io.dapr.DaprClientProtos.CloudEventEnvelope, + com.google.protobuf.Empty>( + this, METHODID_ON_TOPIC_EVENT))) + .build(); + } + } + + /** + *
+   * User Code definitions
+   * 
+ */ + public static final class DaprClientStub extends io.grpc.stub.AbstractStub { + private DaprClientStub(io.grpc.Channel channel) { + super(channel); + } + + private DaprClientStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DaprClientStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new DaprClientStub(channel, callOptions); + } + + /** + */ + public void onInvoke(io.dapr.DaprClientProtos.InvokeEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getOnInvokeMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getTopicSubscriptions(com.google.protobuf.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetTopicSubscriptionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getBindingsSubscriptions(com.google.protobuf.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetBindingsSubscriptionsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void onBindingEvent(io.dapr.DaprClientProtos.BindingEventEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getOnBindingEventMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void onTopicEvent(io.dapr.DaprClientProtos.CloudEventEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getOnTopicEventMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * User Code definitions
+   * 
+ */ + public static final class DaprClientBlockingStub extends io.grpc.stub.AbstractStub { + private DaprClientBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private DaprClientBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DaprClientBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new DaprClientBlockingStub(channel, callOptions); + } + + /** + */ + public com.google.protobuf.Any onInvoke(io.dapr.DaprClientProtos.InvokeEnvelope request) { + return blockingUnaryCall( + getChannel(), getOnInvokeMethod(), getCallOptions(), request); + } + + /** + */ + public io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope getTopicSubscriptions(com.google.protobuf.Empty request) { + return blockingUnaryCall( + getChannel(), getGetTopicSubscriptionsMethod(), getCallOptions(), request); + } + + /** + */ + public io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope getBindingsSubscriptions(com.google.protobuf.Empty request) { + return blockingUnaryCall( + getChannel(), getGetBindingsSubscriptionsMethod(), getCallOptions(), request); + } + + /** + */ + public io.dapr.DaprClientProtos.BindingResponseEnvelope onBindingEvent(io.dapr.DaprClientProtos.BindingEventEnvelope request) { + return blockingUnaryCall( + getChannel(), getOnBindingEventMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty onTopicEvent(io.dapr.DaprClientProtos.CloudEventEnvelope request) { + return blockingUnaryCall( + getChannel(), getOnTopicEventMethod(), getCallOptions(), request); + } + } + + /** + *
+   * User Code definitions
+   * 
+ */ + public static final class DaprClientFutureStub extends io.grpc.stub.AbstractStub { + private DaprClientFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private DaprClientFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DaprClientFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new DaprClientFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture onInvoke( + io.dapr.DaprClientProtos.InvokeEnvelope request) { + return futureUnaryCall( + getChannel().newCall(getOnInvokeMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getTopicSubscriptions( + com.google.protobuf.Empty request) { + return futureUnaryCall( + getChannel().newCall(getGetTopicSubscriptionsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getBindingsSubscriptions( + com.google.protobuf.Empty request) { + return futureUnaryCall( + getChannel().newCall(getGetBindingsSubscriptionsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture onBindingEvent( + io.dapr.DaprClientProtos.BindingEventEnvelope request) { + return futureUnaryCall( + getChannel().newCall(getOnBindingEventMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture onTopicEvent( + io.dapr.DaprClientProtos.CloudEventEnvelope request) { + return futureUnaryCall( + getChannel().newCall(getOnTopicEventMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_ON_INVOKE = 0; + private static final int METHODID_GET_TOPIC_SUBSCRIPTIONS = 1; + private static final int METHODID_GET_BINDINGS_SUBSCRIPTIONS = 2; + private static final int METHODID_ON_BINDING_EVENT = 3; + private static final int METHODID_ON_TOPIC_EVENT = 4; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final DaprClientImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DaprClientImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_ON_INVOKE: + serviceImpl.onInvoke((io.dapr.DaprClientProtos.InvokeEnvelope) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TOPIC_SUBSCRIPTIONS: + serviceImpl.getTopicSubscriptions((com.google.protobuf.Empty) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_BINDINGS_SUBSCRIPTIONS: + serviceImpl.getBindingsSubscriptions((com.google.protobuf.Empty) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ON_BINDING_EVENT: + serviceImpl.onBindingEvent((io.dapr.DaprClientProtos.BindingEventEnvelope) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ON_TOPIC_EVENT: + serviceImpl.onTopicEvent((io.dapr.DaprClientProtos.CloudEventEnvelope) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class DaprClientBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DaprClientBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return io.dapr.DaprClientProtos.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("DaprClient"); + } + } + + private static final class DaprClientFileDescriptorSupplier + extends DaprClientBaseDescriptorSupplier { + DaprClientFileDescriptorSupplier() {} + } + + private static final class DaprClientMethodDescriptorSupplier + extends DaprClientBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DaprClientMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DaprClientGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DaprClientFileDescriptorSupplier()) + .addMethod(getOnInvokeMethod()) + .addMethod(getGetTopicSubscriptionsMethod()) + .addMethod(getGetBindingsSubscriptionsMethod()) + .addMethod(getOnBindingEventMethod()) + .addMethod(getOnTopicEventMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/src/main/java/io/dapr/DaprClientProtos.java b/src/main/java/io/dapr/DaprClientProtos.java new file mode 100644 index 000000000..8c3712e92 --- /dev/null +++ b/src/main/java/io/dapr/DaprClientProtos.java @@ -0,0 +1,9676 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: daprclient/daprclient.proto + +package io.dapr; + +public final class DaprClientProtos { + private DaprClientProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface CloudEventEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:daprclient.CloudEventEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * 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.Builder implements + // @@protoc_insertion_point(builder_implements:daprclient.CloudEventEnvelope) + io.dapr.DaprClientProtos.CloudEventEnvelopeOrBuilder { + 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); + } + + // Construct using io.dapr.DaprClientProtos.CloudEventEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + source_ = ""; + + type_ = ""; + + specVersion_ = ""; + + dataContentType_ = ""; + + topic_ = ""; + + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprClientProtos.internal_static_daprclient_CloudEventEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.CloudEventEnvelope getDefaultInstanceForType() { + return io.dapr.DaprClientProtos.CloudEventEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprClientProtos.CloudEventEnvelope build() { + io.dapr.DaprClientProtos.CloudEventEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.CloudEventEnvelope buildPartial() { + io.dapr.DaprClientProtos.CloudEventEnvelope result = new io.dapr.DaprClientProtos.CloudEventEnvelope(this); + result.id_ = id_; + result.source_ = source_; + result.type_ = type_; + result.specVersion_ = specVersion_; + result.dataContentType_ = dataContentType_; + result.topic_ = topic_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprClientProtos.CloudEventEnvelope) { + return mergeFrom((io.dapr.DaprClientProtos.CloudEventEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprClientProtos.CloudEventEnvelope other) { + if (other == io.dapr.DaprClientProtos.CloudEventEnvelope.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + onChanged(); + } + if (!other.getType().isEmpty()) { + type_ = other.type_; + onChanged(); + } + if (!other.getSpecVersion().isEmpty()) { + specVersion_ = other.specVersion_; + onChanged(); + } + if (!other.getDataContentType().isEmpty()) { + dataContentType_ = other.dataContentType_; + onChanged(); + } + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + if (other.hasData()) { + mergeData(other.getData()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprClientProtos.CloudEventEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprClientProtos.CloudEventEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private 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)) { + 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudEventEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CloudEventEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.CloudEventEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingEventEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:daprclient.BindingEventEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .google.protobuf.Any data = 2; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .google.protobuf.Any data = 2; + * @return The data. + */ + com.google.protobuf.Any getData(); + /** + * .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.Map + getMetadata(); + /** + * map<string, string> metadata = 3; + */ + java.util.Map + getMetadataMap(); + /** + * map<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.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + 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_BindingEventEnvelope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprClientProtos.internal_static_daprclient_BindingEventEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprClientProtos.BindingEventEnvelope.class, io.dapr.DaprClientProtos.BindingEventEnvelope.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string 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 + .newDefaultInstance( + io.dapr.DaprClientProtos.internal_static_daprclient_BindingEventEnvelope_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 3; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 3; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (data_ != null) { + output.writeMessage(2, getData()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 3); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getData()); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, metadata__); + } + 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.BindingEventEnvelope)) { + return super.equals(obj); + } + io.dapr.DaprClientProtos.BindingEventEnvelope other = (io.dapr.DaprClientProtos.BindingEventEnvelope) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) return false; + } + if (!internalGetMetadata().equals( + other.internalGetMetadata())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.dapr.DaprClientProtos.BindingEventEnvelope parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprClientProtos.BindingEventEnvelope 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.BindingEventEnvelope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprClientProtos.BindingEventEnvelope 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.BindingEventEnvelope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprClientProtos.BindingEventEnvelope parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprClientProtos.BindingEventEnvelope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprClientProtos.BindingEventEnvelope 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.BindingEventEnvelope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprClientProtos.BindingEventEnvelope 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.BindingEventEnvelope parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprClientProtos.BindingEventEnvelope 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.BindingEventEnvelope 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.BindingEventEnvelope} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:daprclient.BindingEventEnvelope) + io.dapr.DaprClientProtos.BindingEventEnvelopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprClientProtos.internal_static_daprclient_BindingEventEnvelope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprClientProtos.internal_static_daprclient_BindingEventEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprClientProtos.BindingEventEnvelope.class, io.dapr.DaprClientProtos.BindingEventEnvelope.Builder.class); + } + + // Construct using io.dapr.DaprClientProtos.BindingEventEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + internalGetMutableMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprClientProtos.internal_static_daprclient_BindingEventEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.BindingEventEnvelope getDefaultInstanceForType() { + return io.dapr.DaprClientProtos.BindingEventEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprClientProtos.BindingEventEnvelope build() { + io.dapr.DaprClientProtos.BindingEventEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.BindingEventEnvelope buildPartial() { + io.dapr.DaprClientProtos.BindingEventEnvelope result = new io.dapr.DaprClientProtos.BindingEventEnvelope(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprClientProtos.BindingEventEnvelope) { + return mergeFrom((io.dapr.DaprClientProtos.BindingEventEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprClientProtos.BindingEventEnvelope other) { + if (other == io.dapr.DaprClientProtos.BindingEventEnvelope.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasData()) { + mergeData(other.getData()); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprClientProtos.BindingEventEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprClientProtos.BindingEventEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string 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.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged();; + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 3; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 3; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + * map<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.Map + getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + * map<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 values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + 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.BindingEventEnvelope) + } + + // @@protoc_insertion_point(class_scope:daprclient.BindingEventEnvelope) + private static final io.dapr.DaprClientProtos.BindingEventEnvelope DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprClientProtos.BindingEventEnvelope(); + } + + public static io.dapr.DaprClientProtos.BindingEventEnvelope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingEventEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingEventEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.BindingEventEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface BindingResponseEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:daprclient.BindingResponseEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * .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.List + getToList(); + /** + * repeated string to = 2; + * @return The count of to. + */ + int getToCount(); + /** + * repeated string to = 2; + * @param index The index of the element to return. + * @return The to at the given index. + */ + java.lang.String getTo(int index); + /** + * repeated string to = 2; + * @param index The index of the value to return. + * @return The bytes of the to at the given index. + */ + com.google.protobuf.ByteString + getToBytes(int index); + + /** + * repeated .daprclient.State state = 3; + */ + java.util.List + getStateList(); + /** + * repeated .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 + 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(); + mutable_bitField0_ |= 0x00000002; + } + state_.add( + input.readMessage(io.dapr.DaprClientProtos.State.parser(), extensionRegistry)); + break; + } + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + + concurrency_ = 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)) { + to_ = to_.getUnmodifiableView(); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + state_ = java.util.Collections.unmodifiableList(state_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprClientProtos.internal_static_daprclient_BindingResponseEnvelope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprClientProtos.internal_static_daprclient_BindingResponseEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprClientProtos.BindingResponseEnvelope.class, io.dapr.DaprClientProtos.BindingResponseEnvelope.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.Any data_; + /** + * .google.protobuf.Any data = 1; + * @return Whether the data field is set. + */ + public boolean hasData() { + return data_ != null; + } + /** + * .google.protobuf.Any data = 1; + * @return The data. + */ + public com.google.protobuf.Any getData() { + return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; + } + /** + * .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.List state_; + /** + * repeated .daprclient.State state = 3; + */ + public java.util.List getStateList() { + return state_; + } + /** + * repeated .daprclient.State state = 3; + */ + public java.util.List + 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 implements + // @@protoc_insertion_point(builder_implements:daprclient.BindingResponseEnvelope) + io.dapr.DaprClientProtos.BindingResponseEnvelopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprClientProtos.internal_static_daprclient_BindingResponseEnvelope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprClientProtos.internal_static_daprclient_BindingResponseEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprClientProtos.BindingResponseEnvelope.class, io.dapr.DaprClientProtos.BindingResponseEnvelope.Builder.class); + } + + // Construct using io.dapr.DaprClientProtos.BindingResponseEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStateFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + to_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + if (stateBuilder_ == null) { + state_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + stateBuilder_.clear(); + } + concurrency_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprClientProtos.internal_static_daprclient_BindingResponseEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.BindingResponseEnvelope getDefaultInstanceForType() { + return io.dapr.DaprClientProtos.BindingResponseEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprClientProtos.BindingResponseEnvelope build() { + io.dapr.DaprClientProtos.BindingResponseEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.BindingResponseEnvelope buildPartial() { + io.dapr.DaprClientProtos.BindingResponseEnvelope result = new io.dapr.DaprClientProtos.BindingResponseEnvelope(this); + int from_bitField0_ = bitField0_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + if (((bitField0_ & 0x00000001) != 0)) { + to_ = to_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.to_ = to_; + if (stateBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + state_ = java.util.Collections.unmodifiableList(state_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.state_ = state_; + } else { + result.state_ = stateBuilder_.build(); + } + result.concurrency_ = concurrency_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprClientProtos.BindingResponseEnvelope) { + return mergeFrom((io.dapr.DaprClientProtos.BindingResponseEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprClientProtos.BindingResponseEnvelope other) { + if (other == io.dapr.DaprClientProtos.BindingResponseEnvelope.getDefaultInstance()) return this; + if (other.hasData()) { + mergeData(other.getData()); + } + if (!other.to_.isEmpty()) { + if (to_.isEmpty()) { + to_ = other.to_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToIsMutable(); + to_.addAll(other.to_); + } + onChanged(); + } + if (stateBuilder_ == null) { + if (!other.state_.isEmpty()) { + if (state_.isEmpty()) { + state_ = other.state_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureStateIsMutable(); + state_.addAll(other.state_); + } + onChanged(); + } + } else { + if (!other.state_.isEmpty()) { + if (stateBuilder_.isEmpty()) { + stateBuilder_.dispose(); + stateBuilder_ = null; + state_ = other.state_; + bitField0_ = (bitField0_ & ~0x00000002); + stateBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getStateFieldBuilder() : null; + } else { + stateBuilder_.addAllMessages(other.state_); + } + } + } + if (!other.getConcurrency().isEmpty()) { + concurrency_ = other.concurrency_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprClientProtos.BindingResponseEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprClientProtos.BindingResponseEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + 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 = 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.Iterable values) { + ensureToIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, to_); + onChanged(); + return this; + } + /** + * repeated 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.List state_ = + java.util.Collections.emptyList(); + private void ensureStateIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + state_ = new java.util.ArrayList(state_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.dapr.DaprClientProtos.State, io.dapr.DaprClientProtos.State.Builder, io.dapr.DaprClientProtos.StateOrBuilder> stateBuilder_; + + /** + * repeated .daprclient.State state = 3; + */ + public java.util.List getStateList() { + if (stateBuilder_ == null) { + return java.util.Collections.unmodifiableList(state_); + } else { + return stateBuilder_.getMessageList(); + } + } + /** + * repeated .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 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 + 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.List + getStateBuilderList() { + return getStateFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.dapr.DaprClientProtos.State, io.dapr.DaprClientProtos.State.Builder, io.dapr.DaprClientProtos.StateOrBuilder> + getStateFieldBuilder() { + if (stateBuilder_ == null) { + stateBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.dapr.DaprClientProtos.State, io.dapr.DaprClientProtos.State.Builder, io.dapr.DaprClientProtos.StateOrBuilder>( + state_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + state_ = null; + } + return stateBuilder_; + } + + private 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)) { + 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public BindingResponseEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new BindingResponseEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.BindingResponseEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InvokeEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:daprclient.InvokeEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * string method = 1; + * @return The method. + */ + java.lang.String getMethod(); + /** + * string method = 1; + * @return The bytes for method. + */ + com.google.protobuf.ByteString + getMethodBytes(); + + /** + * .google.protobuf.Any data = 2; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .google.protobuf.Any data = 2; + * @return The data. + */ + com.google.protobuf.Any getData(); + /** + * .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.Map + getMetadata(); + /** + * map<string, string> metadata = 3; + */ + java.util.Map + getMetadataMap(); + /** + * map<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.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + 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_InvokeEnvelope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprClientProtos.internal_static_daprclient_InvokeEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprClientProtos.InvokeEnvelope.class, io.dapr.DaprClientProtos.InvokeEnvelope.Builder.class); + } + + public static final int METHOD_FIELD_NUMBER = 1; + private volatile java.lang.Object method_; + /** + * string 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 + .newDefaultInstance( + io.dapr.DaprClientProtos.internal_static_daprclient_InvokeEnvelope_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 3; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 3; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 (!getMethodBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); + } + if (data_ != null) { + output.writeMessage(2, getData()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 3); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getMethodBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getData()); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, metadata__); + } + 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.InvokeEnvelope)) { + return super.equals(obj); + } + io.dapr.DaprClientProtos.InvokeEnvelope other = (io.dapr.DaprClientProtos.InvokeEnvelope) obj; + + if (!getMethod() + .equals(other.getMethod())) return false; + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) return false; + } + if (!internalGetMetadata().equals( + other.internalGetMetadata())) 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) + METHOD_FIELD_NUMBER; + hash = (53 * hash) + getMethod().hashCode(); + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.dapr.DaprClientProtos.InvokeEnvelope parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprClientProtos.InvokeEnvelope 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.InvokeEnvelope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprClientProtos.InvokeEnvelope 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.InvokeEnvelope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprClientProtos.InvokeEnvelope parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprClientProtos.InvokeEnvelope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprClientProtos.InvokeEnvelope 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.InvokeEnvelope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprClientProtos.InvokeEnvelope 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.InvokeEnvelope parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprClientProtos.InvokeEnvelope 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.InvokeEnvelope 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.InvokeEnvelope} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:daprclient.InvokeEnvelope) + io.dapr.DaprClientProtos.InvokeEnvelopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprClientProtos.internal_static_daprclient_InvokeEnvelope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprClientProtos.internal_static_daprclient_InvokeEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprClientProtos.InvokeEnvelope.class, io.dapr.DaprClientProtos.InvokeEnvelope.Builder.class); + } + + // Construct using io.dapr.DaprClientProtos.InvokeEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + method_ = ""; + + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + internalGetMutableMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprClientProtos.internal_static_daprclient_InvokeEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.InvokeEnvelope getDefaultInstanceForType() { + return io.dapr.DaprClientProtos.InvokeEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprClientProtos.InvokeEnvelope build() { + io.dapr.DaprClientProtos.InvokeEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.InvokeEnvelope buildPartial() { + io.dapr.DaprClientProtos.InvokeEnvelope result = new io.dapr.DaprClientProtos.InvokeEnvelope(this); + int from_bitField0_ = bitField0_; + result.method_ = method_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprClientProtos.InvokeEnvelope) { + return mergeFrom((io.dapr.DaprClientProtos.InvokeEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprClientProtos.InvokeEnvelope other) { + if (other == io.dapr.DaprClientProtos.InvokeEnvelope.getDefaultInstance()) return this; + if (!other.getMethod().isEmpty()) { + method_ = other.method_; + onChanged(); + } + if (other.hasData()) { + mergeData(other.getData()); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprClientProtos.InvokeEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprClientProtos.InvokeEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object method_ = ""; + /** + * string 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.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged();; + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 3; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 3; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + * map<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.Map + getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + * map<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 values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + 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.InvokeEnvelope) + } + + // @@protoc_insertion_point(class_scope:daprclient.InvokeEnvelope) + private static final io.dapr.DaprClientProtos.InvokeEnvelope DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprClientProtos.InvokeEnvelope(); + } + + public static io.dapr.DaprClientProtos.InvokeEnvelope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvokeEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InvokeEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.InvokeEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetTopicSubscriptionsEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:daprclient.GetTopicSubscriptionsEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string topics = 1; + * @return A list containing the topics. + */ + java.util.List + getTopicsList(); + /** + * repeated string topics = 1; + * @return The count of topics. + */ + int getTopicsCount(); + /** + * repeated string topics = 1; + * @param index The index of the element to return. + * @return The topics at the given index. + */ + java.lang.String getTopics(int index); + /** + * repeated string topics = 1; + * @param index The index of the value to return. + * @return The bytes of the topics at the given index. + */ + com.google.protobuf.ByteString + getTopicsBytes(int index); + } + /** + * 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.Builder implements + // @@protoc_insertion_point(builder_implements:daprclient.GetTopicSubscriptionsEnvelope) + io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelopeOrBuilder { + 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); + } + + // Construct using io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprClientProtos.internal_static_daprclient_GetTopicSubscriptionsEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope getDefaultInstanceForType() { + return io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope build() { + io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope buildPartial() { + io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope result = new io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + topics_ = topics_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.topics_ = topics_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope) { + return mergeFrom((io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope other) { + if (other == io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope.getDefaultInstance()) return this; + if (!other.topics_.isEmpty()) { + if (topics_.isEmpty()) { + topics_ = other.topics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureTopicsIsMutable(); + topics_.addAll(other.topics_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList topics_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureTopicsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + topics_ = new com.google.protobuf.LazyStringArrayList(topics_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated 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.Iterable values) { + ensureTopicsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, topics_); + onChanged(); + return this; + } + /** + * repeated 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetTopicSubscriptionsEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetTopicSubscriptionsEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.GetTopicSubscriptionsEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetBindingsSubscriptionsEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:daprclient.GetBindingsSubscriptionsEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string bindings = 1; + * @return A list containing the bindings. + */ + java.util.List + getBindingsList(); + /** + * repeated string bindings = 1; + * @return The count of bindings. + */ + int getBindingsCount(); + /** + * repeated string bindings = 1; + * @param index The index of the element to return. + * @return The bindings at the given index. + */ + java.lang.String getBindings(int index); + /** + * repeated string bindings = 1; + * @param index The index of the value to return. + * @return The bytes of the bindings at the given index. + */ + com.google.protobuf.ByteString + getBindingsBytes(int index); + } + /** + * 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.Builder implements + // @@protoc_insertion_point(builder_implements:daprclient.GetBindingsSubscriptionsEnvelope) + io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelopeOrBuilder { + 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); + } + + // Construct using io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bindings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprClientProtos.internal_static_daprclient_GetBindingsSubscriptionsEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope getDefaultInstanceForType() { + return io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope build() { + io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope buildPartial() { + io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope result = new io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope(this); + int from_bitField0_ = bitField0_; + if (((bitField0_ & 0x00000001) != 0)) { + bindings_ = bindings_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.bindings_ = bindings_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope) { + return mergeFrom((io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope other) { + if (other == io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope.getDefaultInstance()) return this; + if (!other.bindings_.isEmpty()) { + if (bindings_.isEmpty()) { + bindings_ = other.bindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureBindingsIsMutable(); + bindings_.addAll(other.bindings_); + } + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private com.google.protobuf.LazyStringList bindings_ = com.google.protobuf.LazyStringArrayList.EMPTY; + private void ensureBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + bindings_ = new com.google.protobuf.LazyStringArrayList(bindings_); + bitField0_ |= 0x00000001; + } + } + /** + * repeated 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.Iterable values) { + ensureBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, bindings_); + onChanged(); + return this; + } + /** + * repeated 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetBindingsSubscriptionsEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetBindingsSubscriptionsEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.GetBindingsSubscriptionsEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StateOrBuilder extends + // @@protoc_insertion_point(interface_extends:daprclient.State) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * @return The key. + */ + java.lang.String getKey(); + /** + * string key = 1; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * .google.protobuf.Any value = 2; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * .google.protobuf.Any value = 2; + * @return The value. + */ + com.google.protobuf.Any getValue(); + /** + * .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.Map + getMetadata(); + /** + * map<string, string> metadata = 4; + */ + java.util.Map + getMetadataMap(); + /** + * map<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.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + break; + } + case 42: { + io.dapr.DaprClientProtos.StateOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); + } + options_ = input.readMessage(io.dapr.DaprClientProtos.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.DaprClientProtos.internal_static_daprclient_State_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprClientProtos.internal_static_daprclient_State_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprClientProtos.State.class, io.dapr.DaprClientProtos.State.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 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 + .newDefaultInstance( + io.dapr.DaprClientProtos.internal_static_daprclient_State_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OPTIONS_FIELD_NUMBER = 5; + private io.dapr.DaprClientProtos.StateOptions options_; + /** + * .daprclient.StateOptions options = 5; + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return options_ != null; + } + /** + * .daprclient.StateOptions options = 5; + * @return The options. + */ + public io.dapr.DaprClientProtos.StateOptions getOptions() { + return options_ == null ? io.dapr.DaprClientProtos.StateOptions.getDefaultInstance() : options_; + } + /** + * .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.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metadata__); + } + if (options_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, 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.DaprClientProtos.State)) { + return super.equals(obj); + } + io.dapr.DaprClientProtos.State other = (io.dapr.DaprClientProtos.State) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) 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(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().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.DaprClientProtos.State parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprClientProtos.State 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.State parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprClientProtos.State 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.State parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprClientProtos.State parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprClientProtos.State parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprClientProtos.State 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.State parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprClientProtos.State 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.State parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprClientProtos.State 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.State 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.State} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:daprclient.State) + io.dapr.DaprClientProtos.StateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprClientProtos.internal_static_daprclient_State_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprClientProtos.internal_static_daprclient_State_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprClientProtos.State.class, io.dapr.DaprClientProtos.State.Builder.class); + } + + // Construct using io.dapr.DaprClientProtos.State.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + etag_ = ""; + + internalGetMutableMetadata().clear(); + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprClientProtos.internal_static_daprclient_State_descriptor; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.State getDefaultInstanceForType() { + return io.dapr.DaprClientProtos.State.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprClientProtos.State build() { + io.dapr.DaprClientProtos.State result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.State buildPartial() { + io.dapr.DaprClientProtos.State result = new io.dapr.DaprClientProtos.State(this); + int from_bitField0_ = bitField0_; + result.key_ = key_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + result.etag_ = etag_; + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprClientProtos.State) { + return mergeFrom((io.dapr.DaprClientProtos.State)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprClientProtos.State other) { + if (other == io.dapr.DaprClientProtos.State.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprClientProtos.State parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprClientProtos.State) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private 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)) { + 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.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged();; + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + * map<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.Map + getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + * map<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 values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + return this; + } + + private io.dapr.DaprClientProtos.StateOptions options_; + private com.google.protobuf.SingleFieldBuilderV3< + io.dapr.DaprClientProtos.StateOptions, io.dapr.DaprClientProtos.StateOptions.Builder, io.dapr.DaprClientProtos.StateOptionsOrBuilder> optionsBuilder_; + /** + * .daprclient.StateOptions options = 5; + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + * .daprclient.StateOptions options = 5; + * @return The options. + */ + public io.dapr.DaprClientProtos.StateOptions getOptions() { + if (optionsBuilder_ == null) { + 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public State parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new State(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.State getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StateOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:daprclient.StateOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * string concurrency = 1; + * @return The concurrency. + */ + java.lang.String getConcurrency(); + /** + * string concurrency = 1; + * @return The bytes for concurrency. + */ + com.google.protobuf.ByteString + getConcurrencyBytes(); + + /** + * string consistency = 2; + * @return The consistency. + */ + java.lang.String getConsistency(); + /** + * string consistency = 2; + * @return The bytes for consistency. + */ + com.google.protobuf.ByteString + getConsistencyBytes(); + + /** + * .daprclient.RetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. + */ + boolean hasRetryPolicy(); + /** + * .daprclient.RetryPolicy retryPolicy = 3; + * @return The retryPolicy. + */ + io.dapr.DaprClientProtos.RetryPolicy getRetryPolicy(); + /** + * .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.Builder implements + // @@protoc_insertion_point(builder_implements:daprclient.StateOptions) + io.dapr.DaprClientProtos.StateOptionsOrBuilder { + 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); + } + + // Construct using io.dapr.DaprClientProtos.StateOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + concurrency_ = ""; + + consistency_ = ""; + + if (retryPolicyBuilder_ == null) { + retryPolicy_ = null; + } else { + retryPolicy_ = null; + retryPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprClientProtos.internal_static_daprclient_StateOptions_descriptor; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.StateOptions getDefaultInstanceForType() { + return io.dapr.DaprClientProtos.StateOptions.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprClientProtos.StateOptions build() { + io.dapr.DaprClientProtos.StateOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.StateOptions buildPartial() { + io.dapr.DaprClientProtos.StateOptions result = new io.dapr.DaprClientProtos.StateOptions(this); + result.concurrency_ = concurrency_; + result.consistency_ = consistency_; + if (retryPolicyBuilder_ == null) { + result.retryPolicy_ = retryPolicy_; + } else { + result.retryPolicy_ = retryPolicyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprClientProtos.StateOptions) { + return mergeFrom((io.dapr.DaprClientProtos.StateOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprClientProtos.StateOptions other) { + if (other == io.dapr.DaprClientProtos.StateOptions.getDefaultInstance()) return this; + if (!other.getConcurrency().isEmpty()) { + concurrency_ = other.concurrency_; + onChanged(); + } + if (!other.getConsistency().isEmpty()) { + consistency_ = other.consistency_; + onChanged(); + } + if (other.hasRetryPolicy()) { + mergeRetryPolicy(other.getRetryPolicy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprClientProtos.StateOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprClientProtos.StateOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private 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)) { + 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.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.StateOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RetryPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:daprclient.RetryPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 threshold = 1; + * @return The threshold. + */ + int getThreshold(); + + /** + * string pattern = 2; + * @return The pattern. + */ + java.lang.String getPattern(); + /** + * string pattern = 2; + * @return The bytes for pattern. + */ + com.google.protobuf.ByteString + getPatternBytes(); + + /** + * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. + */ + boolean hasInterval(); + /** + * .google.protobuf.Duration interval = 3; + * @return The interval. + */ + com.google.protobuf.Duration getInterval(); + /** + * .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.Builder implements + // @@protoc_insertion_point(builder_implements:daprclient.RetryPolicy) + io.dapr.DaprClientProtos.RetryPolicyOrBuilder { + 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); + } + + // Construct using io.dapr.DaprClientProtos.RetryPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + threshold_ = 0; + + pattern_ = ""; + + if (intervalBuilder_ == null) { + interval_ = null; + } else { + interval_ = null; + intervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprClientProtos.internal_static_daprclient_RetryPolicy_descriptor; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.RetryPolicy getDefaultInstanceForType() { + return io.dapr.DaprClientProtos.RetryPolicy.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprClientProtos.RetryPolicy build() { + io.dapr.DaprClientProtos.RetryPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.RetryPolicy buildPartial() { + io.dapr.DaprClientProtos.RetryPolicy result = new io.dapr.DaprClientProtos.RetryPolicy(this); + result.threshold_ = threshold_; + result.pattern_ = pattern_; + if (intervalBuilder_ == null) { + result.interval_ = interval_; + } else { + result.interval_ = intervalBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprClientProtos.RetryPolicy) { + return mergeFrom((io.dapr.DaprClientProtos.RetryPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprClientProtos.RetryPolicy other) { + if (other == io.dapr.DaprClientProtos.RetryPolicy.getDefaultInstance()) return this; + if (other.getThreshold() != 0) { + setThreshold(other.getThreshold()); + } + if (!other.getPattern().isEmpty()) { + pattern_ = other.pattern_; + onChanged(); + } + if (other.hasInterval()) { + mergeInterval(other.getInterval()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprClientProtos.RetryPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprClientProtos.RetryPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int threshold_ ; + /** + * int32 threshold = 1; + * @return The threshold. + */ + public int getThreshold() { + return threshold_; + } + /** + * int32 threshold = 1; + * @param value The threshold to set. + * @return This builder for chaining. + */ + public Builder setThreshold(int value) { + + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RetryPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprClientProtos.RetryPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_CloudEventEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_CloudEventEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_BindingEventEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_BindingEventEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_BindingEventEnvelope_MetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_BindingEventEnvelope_MetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_BindingResponseEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_BindingResponseEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_InvokeEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_InvokeEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_InvokeEnvelope_MetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_InvokeEnvelope_MetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_GetTopicSubscriptionsEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_GetTopicSubscriptionsEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_GetBindingsSubscriptionsEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_GetBindingsSubscriptionsEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_State_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_State_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_State_MetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_State_MetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_StateOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_StateOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_daprclient_RetryPolicy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_daprclient_RetryPolicy_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\033daprclient/daprclient.proto\022\ndaprclien" + + "t\032\031google/protobuf/any.proto\032\033google/pro" + + "tobuf/empty.proto\032\036google/protobuf/durat" + + "ion.proto\"\237\001\n\022CloudEventEnvelope\022\n\n\002id\030\001" + + " \001(\t\022\016\n\006source\030\002 \001(\t\022\014\n\004type\030\003 \001(\t\022\023\n\013sp" + + "ecVersion\030\004 \001(\t\022\027\n\017dataContentType\030\005 \001(\t" + + "\022\r\n\005topic\030\006 \001(\t\022\"\n\004data\030\007 \001(\0132\024.google.p" + + "rotobuf.Any\"\273\001\n\024BindingEventEnvelope\022\014\n\004" + + "name\030\001 \001(\t\022\"\n\004data\030\002 \001(\0132\024.google.protob" + + "uf.Any\022@\n\010metadata\030\003 \003(\0132..daprclient.Bi" + + "ndingEventEnvelope.MetadataEntry\032/\n\rMeta" + + "dataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028" + + "\001\"\200\001\n\027BindingResponseEnvelope\022\"\n\004data\030\001 " + + "\001(\0132\024.google.protobuf.Any\022\n\n\002to\030\002 \003(\t\022 \n" + + "\005state\030\003 \003(\0132\021.daprclient.State\022\023\n\013concu" + + "rrency\030\004 \001(\t\"\261\001\n\016InvokeEnvelope\022\016\n\006metho" + + "d\030\001 \001(\t\022\"\n\004data\030\002 \001(\0132\024.google.protobuf." + + "Any\022:\n\010metadata\030\003 \003(\0132(.daprclient.Invok" + + "eEnvelope.MetadataEntry\032/\n\rMetadataEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"/\n\035GetT" + + "opicSubscriptionsEnvelope\022\016\n\006topics\030\001 \003(" + + "\t\"4\n GetBindingsSubscriptionsEnvelope\022\020\n" + + "\010bindings\030\001 \003(\t\"\326\001\n\005State\022\013\n\003key\030\001 \001(\t\022#" + + "\n\005value\030\002 \001(\0132\024.google.protobuf.Any\022\014\n\004e" + + "tag\030\003 \001(\t\0221\n\010metadata\030\004 \003(\0132\037.daprclient" + + ".State.MetadataEntry\022)\n\007options\030\005 \001(\0132\030." + + "daprclient.StateOptions\032/\n\rMetadataEntry" + + "\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"f\n\014Stat" + + "eOptions\022\023\n\013concurrency\030\001 \001(\t\022\023\n\013consist" + + "ency\030\002 \001(\t\022,\n\013retryPolicy\030\003 \001(\0132\027.daprcl" + + "ient.RetryPolicy\"^\n\013RetryPolicy\022\021\n\tthres" + + "hold\030\001 \001(\005\022\017\n\007pattern\030\002 \001(\t\022+\n\010interval\030" + + "\003 \001(\0132\031.google.protobuf.Duration2\263\003\n\nDap" + + "rClient\022>\n\010OnInvoke\022\032.daprclient.InvokeE" + + "nvelope\032\024.google.protobuf.Any\"\000\022\\\n\025GetTo" + + "picSubscriptions\022\026.google.protobuf.Empty" + + "\032).daprclient.GetTopicSubscriptionsEnvel" + + "ope\"\000\022b\n\030GetBindingsSubscriptions\022\026.goog" + + "le.protobuf.Empty\032,.daprclient.GetBindin" + + "gsSubscriptionsEnvelope\"\000\022Y\n\016OnBindingEv" + + "ent\022 .daprclient.BindingEventEnvelope\032#." + + "daprclient.BindingResponseEnvelope\"\000\022H\n\014" + + "OnTopicEvent\022\036.daprclient.CloudEventEnve" + + "lope\032\026.google.protobuf.Empty\"\000B\033\n\007io.dap" + + "rB\020DaprClientProtosb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_daprclient_CloudEventEnvelope_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_daprclient_CloudEventEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_CloudEventEnvelope_descriptor, + new java.lang.String[] { "Id", "Source", "Type", "SpecVersion", "DataContentType", "Topic", "Data", }); + internal_static_daprclient_BindingEventEnvelope_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_daprclient_BindingEventEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_BindingEventEnvelope_descriptor, + new java.lang.String[] { "Name", "Data", "Metadata", }); + internal_static_daprclient_BindingEventEnvelope_MetadataEntry_descriptor = + internal_static_daprclient_BindingEventEnvelope_descriptor.getNestedTypes().get(0); + internal_static_daprclient_BindingEventEnvelope_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_BindingEventEnvelope_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_daprclient_BindingResponseEnvelope_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_daprclient_BindingResponseEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_BindingResponseEnvelope_descriptor, + new java.lang.String[] { "Data", "To", "State", "Concurrency", }); + internal_static_daprclient_InvokeEnvelope_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_daprclient_InvokeEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_InvokeEnvelope_descriptor, + new java.lang.String[] { "Method", "Data", "Metadata", }); + internal_static_daprclient_InvokeEnvelope_MetadataEntry_descriptor = + internal_static_daprclient_InvokeEnvelope_descriptor.getNestedTypes().get(0); + internal_static_daprclient_InvokeEnvelope_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_InvokeEnvelope_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_daprclient_GetTopicSubscriptionsEnvelope_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_daprclient_GetTopicSubscriptionsEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_GetTopicSubscriptionsEnvelope_descriptor, + new java.lang.String[] { "Topics", }); + internal_static_daprclient_GetBindingsSubscriptionsEnvelope_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_daprclient_GetBindingsSubscriptionsEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_GetBindingsSubscriptionsEnvelope_descriptor, + new java.lang.String[] { "Bindings", }); + internal_static_daprclient_State_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_daprclient_State_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_State_descriptor, + new java.lang.String[] { "Key", "Value", "Etag", "Metadata", "Options", }); + internal_static_daprclient_State_MetadataEntry_descriptor = + internal_static_daprclient_State_descriptor.getNestedTypes().get(0); + internal_static_daprclient_State_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_State_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_daprclient_StateOptions_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_daprclient_StateOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_StateOptions_descriptor, + new java.lang.String[] { "Concurrency", "Consistency", "RetryPolicy", }); + internal_static_daprclient_RetryPolicy_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_daprclient_RetryPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_daprclient_RetryPolicy_descriptor, + new java.lang.String[] { "Threshold", "Pattern", "Interval", }); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/io/dapr/DaprGrpc.java b/src/main/java/io/dapr/DaprGrpc.java new file mode 100644 index 000000000..cab4028f5 --- /dev/null +++ b/src/main/java/io/dapr/DaprGrpc.java @@ -0,0 +1,664 @@ +package io.dapr; + +import static io.grpc.MethodDescriptor.generateFullMethodName; +import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ClientCalls.asyncClientStreamingCall; +import static io.grpc.stub.ClientCalls.asyncServerStreamingCall; +import static io.grpc.stub.ClientCalls.asyncUnaryCall; +import static io.grpc.stub.ClientCalls.blockingServerStreamingCall; +import static io.grpc.stub.ClientCalls.blockingUnaryCall; +import static io.grpc.stub.ClientCalls.futureUnaryCall; +import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall; +import static io.grpc.stub.ServerCalls.asyncClientStreamingCall; +import static io.grpc.stub.ServerCalls.asyncServerStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnaryCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall; +import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; + +/** + *
+ * 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 getPublishEventMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PublishEvent", + requestType = io.dapr.DaprProtos.PublishEventEnvelope.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPublishEventMethod() { + io.grpc.MethodDescriptor getPublishEventMethod; + if ((getPublishEventMethod = DaprGrpc.getPublishEventMethod) == null) { + synchronized (DaprGrpc.class) { + if ((getPublishEventMethod = DaprGrpc.getPublishEventMethod) == null) { + DaprGrpc.getPublishEventMethod = getPublishEventMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PublishEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprProtos.PublishEventEnvelope.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DaprMethodDescriptorSupplier("PublishEvent")) + .build(); + } + } + } + return getPublishEventMethod; + } + + private static volatile io.grpc.MethodDescriptor getInvokeServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "InvokeService", + requestType = io.dapr.DaprProtos.InvokeServiceEnvelope.class, + responseType = io.dapr.DaprProtos.InvokeServiceResponseEnvelope.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getInvokeServiceMethod() { + io.grpc.MethodDescriptor getInvokeServiceMethod; + if ((getInvokeServiceMethod = DaprGrpc.getInvokeServiceMethod) == null) { + synchronized (DaprGrpc.class) { + if ((getInvokeServiceMethod = DaprGrpc.getInvokeServiceMethod) == null) { + DaprGrpc.getInvokeServiceMethod = getInvokeServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InvokeService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprProtos.InvokeServiceEnvelope.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprProtos.InvokeServiceResponseEnvelope.getDefaultInstance())) + .setSchemaDescriptor(new DaprMethodDescriptorSupplier("InvokeService")) + .build(); + } + } + } + return getInvokeServiceMethod; + } + + private static volatile io.grpc.MethodDescriptor getInvokeBindingMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "InvokeBinding", + requestType = io.dapr.DaprProtos.InvokeBindingEnvelope.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getInvokeBindingMethod() { + io.grpc.MethodDescriptor getInvokeBindingMethod; + if ((getInvokeBindingMethod = DaprGrpc.getInvokeBindingMethod) == null) { + synchronized (DaprGrpc.class) { + if ((getInvokeBindingMethod = DaprGrpc.getInvokeBindingMethod) == null) { + DaprGrpc.getInvokeBindingMethod = getInvokeBindingMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InvokeBinding")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprProtos.InvokeBindingEnvelope.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DaprMethodDescriptorSupplier("InvokeBinding")) + .build(); + } + } + } + return getInvokeBindingMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetState", + requestType = io.dapr.DaprProtos.GetStateEnvelope.class, + responseType = io.dapr.DaprProtos.GetStateResponseEnvelope.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetStateMethod() { + io.grpc.MethodDescriptor getGetStateMethod; + if ((getGetStateMethod = DaprGrpc.getGetStateMethod) == null) { + synchronized (DaprGrpc.class) { + if ((getGetStateMethod = DaprGrpc.getGetStateMethod) == null) { + DaprGrpc.getGetStateMethod = getGetStateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprProtos.GetStateEnvelope.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprProtos.GetStateResponseEnvelope.getDefaultInstance())) + .setSchemaDescriptor(new DaprMethodDescriptorSupplier("GetState")) + .build(); + } + } + } + return getGetStateMethod; + } + + private static volatile io.grpc.MethodDescriptor getSaveStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SaveState", + requestType = io.dapr.DaprProtos.SaveStateEnvelope.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSaveStateMethod() { + io.grpc.MethodDescriptor getSaveStateMethod; + if ((getSaveStateMethod = DaprGrpc.getSaveStateMethod) == null) { + synchronized (DaprGrpc.class) { + if ((getSaveStateMethod = DaprGrpc.getSaveStateMethod) == null) { + DaprGrpc.getSaveStateMethod = getSaveStateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SaveState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprProtos.SaveStateEnvelope.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DaprMethodDescriptorSupplier("SaveState")) + .build(); + } + } + } + return getSaveStateMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteStateMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteState", + requestType = io.dapr.DaprProtos.DeleteStateEnvelope.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteStateMethod() { + io.grpc.MethodDescriptor getDeleteStateMethod; + if ((getDeleteStateMethod = DaprGrpc.getDeleteStateMethod) == null) { + synchronized (DaprGrpc.class) { + if ((getDeleteStateMethod = DaprGrpc.getDeleteStateMethod) == null) { + DaprGrpc.getDeleteStateMethod = getDeleteStateMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteState")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + io.dapr.DaprProtos.DeleteStateEnvelope.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DaprMethodDescriptorSupplier("DeleteState")) + .build(); + } + } + } + return getDeleteStateMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DaprStub newStub(io.grpc.Channel channel) { + return new DaprStub(channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DaprBlockingStub newBlockingStub( + io.grpc.Channel channel) { + return new DaprBlockingStub(channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DaprFutureStub newFutureStub( + io.grpc.Channel channel) { + return new DaprFutureStub(channel); + } + + /** + *
+   * Dapr definitions
+   * 
+ */ + public static abstract class DaprImplBase implements io.grpc.BindableService { + + /** + */ + public void publishEvent(io.dapr.DaprProtos.PublishEventEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getPublishEventMethod(), responseObserver); + } + + /** + */ + public void invokeService(io.dapr.DaprProtos.InvokeServiceEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getInvokeServiceMethod(), responseObserver); + } + + /** + */ + public void invokeBinding(io.dapr.DaprProtos.InvokeBindingEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getInvokeBindingMethod(), responseObserver); + } + + /** + */ + public void getState(io.dapr.DaprProtos.GetStateEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getGetStateMethod(), responseObserver); + } + + /** + */ + public void saveState(io.dapr.DaprProtos.SaveStateEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getSaveStateMethod(), responseObserver); + } + + /** + */ + public void deleteState(io.dapr.DaprProtos.DeleteStateEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnimplementedUnaryCall(getDeleteStateMethod(), responseObserver); + } + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getPublishEventMethod(), + asyncUnaryCall( + new MethodHandlers< + io.dapr.DaprProtos.PublishEventEnvelope, + com.google.protobuf.Empty>( + this, METHODID_PUBLISH_EVENT))) + .addMethod( + getInvokeServiceMethod(), + asyncUnaryCall( + new MethodHandlers< + io.dapr.DaprProtos.InvokeServiceEnvelope, + io.dapr.DaprProtos.InvokeServiceResponseEnvelope>( + this, METHODID_INVOKE_SERVICE))) + .addMethod( + getInvokeBindingMethod(), + asyncUnaryCall( + new MethodHandlers< + io.dapr.DaprProtos.InvokeBindingEnvelope, + com.google.protobuf.Empty>( + this, METHODID_INVOKE_BINDING))) + .addMethod( + getGetStateMethod(), + asyncUnaryCall( + new MethodHandlers< + io.dapr.DaprProtos.GetStateEnvelope, + io.dapr.DaprProtos.GetStateResponseEnvelope>( + this, METHODID_GET_STATE))) + .addMethod( + getSaveStateMethod(), + asyncUnaryCall( + new MethodHandlers< + io.dapr.DaprProtos.SaveStateEnvelope, + com.google.protobuf.Empty>( + this, METHODID_SAVE_STATE))) + .addMethod( + getDeleteStateMethod(), + asyncUnaryCall( + new MethodHandlers< + io.dapr.DaprProtos.DeleteStateEnvelope, + com.google.protobuf.Empty>( + this, METHODID_DELETE_STATE))) + .build(); + } + } + + /** + *
+   * Dapr definitions
+   * 
+ */ + public static final class DaprStub extends io.grpc.stub.AbstractStub { + private DaprStub(io.grpc.Channel channel) { + super(channel); + } + + private DaprStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DaprStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new DaprStub(channel, callOptions); + } + + /** + */ + public void publishEvent(io.dapr.DaprProtos.PublishEventEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getPublishEventMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void invokeService(io.dapr.DaprProtos.InvokeServiceEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getInvokeServiceMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void invokeBinding(io.dapr.DaprProtos.InvokeBindingEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getInvokeBindingMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getState(io.dapr.DaprProtos.GetStateEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getGetStateMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void saveState(io.dapr.DaprProtos.SaveStateEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getSaveStateMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void deleteState(io.dapr.DaprProtos.DeleteStateEnvelope request, + io.grpc.stub.StreamObserver responseObserver) { + asyncUnaryCall( + getChannel().newCall(getDeleteStateMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + *
+   * Dapr definitions
+   * 
+ */ + public static final class DaprBlockingStub extends io.grpc.stub.AbstractStub { + private DaprBlockingStub(io.grpc.Channel channel) { + super(channel); + } + + private DaprBlockingStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DaprBlockingStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new DaprBlockingStub(channel, callOptions); + } + + /** + */ + public com.google.protobuf.Empty publishEvent(io.dapr.DaprProtos.PublishEventEnvelope request) { + return blockingUnaryCall( + getChannel(), getPublishEventMethod(), getCallOptions(), request); + } + + /** + */ + public io.dapr.DaprProtos.InvokeServiceResponseEnvelope invokeService(io.dapr.DaprProtos.InvokeServiceEnvelope request) { + return blockingUnaryCall( + getChannel(), getInvokeServiceMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty invokeBinding(io.dapr.DaprProtos.InvokeBindingEnvelope request) { + return blockingUnaryCall( + getChannel(), getInvokeBindingMethod(), getCallOptions(), request); + } + + /** + */ + public io.dapr.DaprProtos.GetStateResponseEnvelope getState(io.dapr.DaprProtos.GetStateEnvelope request) { + return blockingUnaryCall( + getChannel(), getGetStateMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty saveState(io.dapr.DaprProtos.SaveStateEnvelope request) { + return blockingUnaryCall( + getChannel(), getSaveStateMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty deleteState(io.dapr.DaprProtos.DeleteStateEnvelope request) { + return blockingUnaryCall( + getChannel(), getDeleteStateMethod(), getCallOptions(), request); + } + } + + /** + *
+   * Dapr definitions
+   * 
+ */ + public static final class DaprFutureStub extends io.grpc.stub.AbstractStub { + private DaprFutureStub(io.grpc.Channel channel) { + super(channel); + } + + private DaprFutureStub(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DaprFutureStub build(io.grpc.Channel channel, + io.grpc.CallOptions callOptions) { + return new DaprFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture publishEvent( + io.dapr.DaprProtos.PublishEventEnvelope request) { + return futureUnaryCall( + getChannel().newCall(getPublishEventMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture invokeService( + io.dapr.DaprProtos.InvokeServiceEnvelope request) { + return futureUnaryCall( + getChannel().newCall(getInvokeServiceMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture invokeBinding( + io.dapr.DaprProtos.InvokeBindingEnvelope request) { + return futureUnaryCall( + getChannel().newCall(getInvokeBindingMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getState( + io.dapr.DaprProtos.GetStateEnvelope request) { + return futureUnaryCall( + getChannel().newCall(getGetStateMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture saveState( + io.dapr.DaprProtos.SaveStateEnvelope request) { + return futureUnaryCall( + getChannel().newCall(getSaveStateMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture deleteState( + io.dapr.DaprProtos.DeleteStateEnvelope request) { + return futureUnaryCall( + getChannel().newCall(getDeleteStateMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_PUBLISH_EVENT = 0; + private static final int METHODID_INVOKE_SERVICE = 1; + private static final int METHODID_INVOKE_BINDING = 2; + private static final int METHODID_GET_STATE = 3; + private static final int METHODID_SAVE_STATE = 4; + private static final int METHODID_DELETE_STATE = 5; + + private static final class MethodHandlers implements + io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final DaprImplBase serviceImpl; + private final int methodId; + + MethodHandlers(DaprImplBase serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_PUBLISH_EVENT: + serviceImpl.publishEvent((io.dapr.DaprProtos.PublishEventEnvelope) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_INVOKE_SERVICE: + serviceImpl.invokeService((io.dapr.DaprProtos.InvokeServiceEnvelope) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_INVOKE_BINDING: + serviceImpl.invokeBinding((io.dapr.DaprProtos.InvokeBindingEnvelope) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_STATE: + serviceImpl.getState((io.dapr.DaprProtos.GetStateEnvelope) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SAVE_STATE: + serviceImpl.saveState((io.dapr.DaprProtos.SaveStateEnvelope) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_STATE: + serviceImpl.deleteState((io.dapr.DaprProtos.DeleteStateEnvelope) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + private static abstract class DaprBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DaprBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return io.dapr.DaprProtos.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Dapr"); + } + } + + private static final class DaprFileDescriptorSupplier + extends DaprBaseDescriptorSupplier { + DaprFileDescriptorSupplier() {} + } + + private static final class DaprMethodDescriptorSupplier + extends DaprBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + DaprMethodDescriptorSupplier(String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (DaprGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DaprFileDescriptorSupplier()) + .addMethod(getPublishEventMethod()) + .addMethod(getInvokeServiceMethod()) + .addMethod(getInvokeBindingMethod()) + .addMethod(getGetStateMethod()) + .addMethod(getSaveStateMethod()) + .addMethod(getDeleteStateMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/src/main/java/io/dapr/DaprProtos.java b/src/main/java/io/dapr/DaprProtos.java new file mode 100644 index 000000000..640ee1afb --- /dev/null +++ b/src/main/java/io/dapr/DaprProtos.java @@ -0,0 +1,13828 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: dapr/dapr.proto + +package io.dapr; + +public final class DaprProtos { + private DaprProtos() {} + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + public interface InvokeServiceResponseEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.InvokeServiceResponseEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * .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.Map + getMetadata(); + /** + * map<string, string> metadata = 2; + */ + java.util.Map + getMetadataMap(); + /** + * map<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 + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + 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_InvokeServiceResponseEnvelope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeServiceResponseEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.InvokeServiceResponseEnvelope.class, io.dapr.DaprProtos.InvokeServiceResponseEnvelope.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.Any data_; + /** + * .google.protobuf.Any data = 1; + * @return Whether the data field is set. + */ + public boolean hasData() { + return data_ != null; + } + /** + * .google.protobuf.Any data = 1; + * @return The data. + */ + public com.google.protobuf.Any getData() { + return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; + } + /** + * .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 + .newDefaultInstance( + io.dapr.DaprProtos.internal_static_dapr_InvokeServiceResponseEnvelope_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 2; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 2; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 2); + 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()); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, metadata__); + } + 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.InvokeServiceResponseEnvelope)) { + return super.equals(obj); + } + io.dapr.DaprProtos.InvokeServiceResponseEnvelope other = (io.dapr.DaprProtos.InvokeServiceResponseEnvelope) obj; + + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) return false; + } + if (!internalGetMetadata().equals( + other.internalGetMetadata())) 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 (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.dapr.DaprProtos.InvokeServiceResponseEnvelope parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.InvokeServiceResponseEnvelope 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.InvokeServiceResponseEnvelope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.InvokeServiceResponseEnvelope 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.InvokeServiceResponseEnvelope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.InvokeServiceResponseEnvelope parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.InvokeServiceResponseEnvelope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.InvokeServiceResponseEnvelope 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.InvokeServiceResponseEnvelope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.InvokeServiceResponseEnvelope 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.InvokeServiceResponseEnvelope parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.InvokeServiceResponseEnvelope 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.InvokeServiceResponseEnvelope 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.InvokeServiceResponseEnvelope} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.InvokeServiceResponseEnvelope) + io.dapr.DaprProtos.InvokeServiceResponseEnvelopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeServiceResponseEnvelope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 2: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 2: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeServiceResponseEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.InvokeServiceResponseEnvelope.class, io.dapr.DaprProtos.InvokeServiceResponseEnvelope.Builder.class); + } + + // Construct using io.dapr.DaprProtos.InvokeServiceResponseEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + internalGetMutableMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeServiceResponseEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeServiceResponseEnvelope getDefaultInstanceForType() { + return io.dapr.DaprProtos.InvokeServiceResponseEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeServiceResponseEnvelope build() { + io.dapr.DaprProtos.InvokeServiceResponseEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeServiceResponseEnvelope buildPartial() { + io.dapr.DaprProtos.InvokeServiceResponseEnvelope result = new io.dapr.DaprProtos.InvokeServiceResponseEnvelope(this); + int from_bitField0_ = bitField0_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.InvokeServiceResponseEnvelope) { + return mergeFrom((io.dapr.DaprProtos.InvokeServiceResponseEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.InvokeServiceResponseEnvelope other) { + if (other == io.dapr.DaprProtos.InvokeServiceResponseEnvelope.getDefaultInstance()) return this; + if (other.hasData()) { + mergeData(other.getData()); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.InvokeServiceResponseEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.InvokeServiceResponseEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + 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 = 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.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged();; + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 2; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 2; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + * map<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.Map + getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + * map<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.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + 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:dapr.InvokeServiceResponseEnvelope) + } + + // @@protoc_insertion_point(class_scope:dapr.InvokeServiceResponseEnvelope) + private static final io.dapr.DaprProtos.InvokeServiceResponseEnvelope DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.InvokeServiceResponseEnvelope(); + } + + public static io.dapr.DaprProtos.InvokeServiceResponseEnvelope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvokeServiceResponseEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InvokeServiceResponseEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeServiceResponseEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface DeleteStateEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.DeleteStateEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * @return The key. + */ + java.lang.String getKey(); + /** + * string key = 1; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * string etag = 2; + * @return The etag. + */ + java.lang.String getEtag(); + /** + * string etag = 2; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + + /** + * .dapr.StateOptions options = 3; + * @return Whether the options field is set. + */ + boolean hasOptions(); + /** + * .dapr.StateOptions options = 3; + * @return The options. + */ + io.dapr.DaprProtos.StateOptions getOptions(); + /** + * .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.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.DeleteStateEnvelope) + io.dapr.DaprProtos.DeleteStateEnvelopeOrBuilder { + 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); + } + + // Construct using io.dapr.DaprProtos.DeleteStateEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + etag_ = ""; + + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_DeleteStateEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.DeleteStateEnvelope getDefaultInstanceForType() { + return io.dapr.DaprProtos.DeleteStateEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.DeleteStateEnvelope build() { + io.dapr.DaprProtos.DeleteStateEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.DeleteStateEnvelope buildPartial() { + io.dapr.DaprProtos.DeleteStateEnvelope result = new io.dapr.DaprProtos.DeleteStateEnvelope(this); + result.key_ = key_; + result.etag_ = etag_; + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.DeleteStateEnvelope) { + return mergeFrom((io.dapr.DaprProtos.DeleteStateEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.DeleteStateEnvelope other) { + if (other == io.dapr.DaprProtos.DeleteStateEnvelope.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.DeleteStateEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.DeleteStateEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private 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)) { + 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 + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteStateEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteStateEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.DeleteStateEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface SaveStateEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.SaveStateEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .dapr.StateRequest requests = 1; + */ + java.util.List + getRequestsList(); + /** + * repeated .dapr.StateRequest requests = 1; + */ + io.dapr.DaprProtos.StateRequest getRequests(int index); + /** + * repeated .dapr.StateRequest requests = 1; + */ + int getRequestsCount(); + /** + * repeated .dapr.StateRequest requests = 1; + */ + java.util.List + getRequestsOrBuilderList(); + /** + * repeated .dapr.StateRequest requests = 1; + */ + io.dapr.DaprProtos.StateRequestOrBuilder getRequestsOrBuilder( + int index); + } + /** + * Protobuf type {@code dapr.SaveStateEnvelope} + */ + public static final class SaveStateEnvelope extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.SaveStateEnvelope) + SaveStateEnvelopeOrBuilder { + private static final long serialVersionUID = 0L; + // Use SaveStateEnvelope.newBuilder() to construct. + private SaveStateEnvelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SaveStateEnvelope() { + requests_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SaveStateEnvelope(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private SaveStateEnvelope( + 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: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + requests_.add( + input.readMessage(io.dapr.DaprProtos.StateRequest.parser(), extensionRegistry)); + 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)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_SaveStateEnvelope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_SaveStateEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.SaveStateEnvelope.class, io.dapr.DaprProtos.SaveStateEnvelope.Builder.class); + } + + public static final int REQUESTS_FIELD_NUMBER = 1; + private java.util.List requests_; + /** + * repeated .dapr.StateRequest requests = 1; + */ + public java.util.List getRequestsList() { + return requests_; + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + return requests_; + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public int getRequestsCount() { + return requests_.size(); + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public io.dapr.DaprProtos.StateRequest getRequests(int index) { + return requests_.get(index); + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public io.dapr.DaprProtos.StateRequestOrBuilder getRequestsOrBuilder( + int index) { + return requests_.get(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 < requests_.size(); i++) { + output.writeMessage(1, requests_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < requests_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, requests_.get(i)); + } + 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.SaveStateEnvelope)) { + return super.equals(obj); + } + io.dapr.DaprProtos.SaveStateEnvelope other = (io.dapr.DaprProtos.SaveStateEnvelope) obj; + + if (!getRequestsList() + .equals(other.getRequestsList())) 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 (getRequestsCount() > 0) { + hash = (37 * hash) + REQUESTS_FIELD_NUMBER; + hash = (53 * hash) + getRequestsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.dapr.DaprProtos.SaveStateEnvelope parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.SaveStateEnvelope 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.SaveStateEnvelope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.SaveStateEnvelope 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.SaveStateEnvelope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.SaveStateEnvelope parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.SaveStateEnvelope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.SaveStateEnvelope 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.SaveStateEnvelope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.SaveStateEnvelope 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.SaveStateEnvelope parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.SaveStateEnvelope 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.SaveStateEnvelope 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.SaveStateEnvelope} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.SaveStateEnvelope) + io.dapr.DaprProtos.SaveStateEnvelopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_SaveStateEnvelope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_SaveStateEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.SaveStateEnvelope.class, io.dapr.DaprProtos.SaveStateEnvelope.Builder.class); + } + + // Construct using io.dapr.DaprProtos.SaveStateEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getRequestsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + requestsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_SaveStateEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.SaveStateEnvelope getDefaultInstanceForType() { + return io.dapr.DaprProtos.SaveStateEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.SaveStateEnvelope build() { + io.dapr.DaprProtos.SaveStateEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.SaveStateEnvelope buildPartial() { + io.dapr.DaprProtos.SaveStateEnvelope result = new io.dapr.DaprProtos.SaveStateEnvelope(this); + int from_bitField0_ = bitField0_; + if (requestsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + requests_ = java.util.Collections.unmodifiableList(requests_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.requests_ = requests_; + } else { + result.requests_ = requestsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.SaveStateEnvelope) { + return mergeFrom((io.dapr.DaprProtos.SaveStateEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.SaveStateEnvelope other) { + if (other == io.dapr.DaprProtos.SaveStateEnvelope.getDefaultInstance()) return this; + if (requestsBuilder_ == null) { + if (!other.requests_.isEmpty()) { + if (requests_.isEmpty()) { + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRequestsIsMutable(); + requests_.addAll(other.requests_); + } + onChanged(); + } + } else { + if (!other.requests_.isEmpty()) { + if (requestsBuilder_.isEmpty()) { + requestsBuilder_.dispose(); + requestsBuilder_ = null; + requests_ = other.requests_; + bitField0_ = (bitField0_ & ~0x00000001); + requestsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getRequestsFieldBuilder() : null; + } else { + requestsBuilder_.addAllMessages(other.requests_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.SaveStateEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.SaveStateEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List requests_ = + java.util.Collections.emptyList(); + private void ensureRequestsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + requests_ = new java.util.ArrayList(requests_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + io.dapr.DaprProtos.StateRequest, io.dapr.DaprProtos.StateRequest.Builder, io.dapr.DaprProtos.StateRequestOrBuilder> requestsBuilder_; + + /** + * repeated .dapr.StateRequest requests = 1; + */ + public java.util.List getRequestsList() { + if (requestsBuilder_ == null) { + return java.util.Collections.unmodifiableList(requests_); + } else { + return requestsBuilder_.getMessageList(); + } + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public int getRequestsCount() { + if (requestsBuilder_ == null) { + return requests_.size(); + } else { + return requestsBuilder_.getCount(); + } + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public io.dapr.DaprProtos.StateRequest getRequests(int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); + } else { + return requestsBuilder_.getMessage(index); + } + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public Builder setRequests( + int index, io.dapr.DaprProtos.StateRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.set(index, value); + onChanged(); + } else { + requestsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public Builder setRequests( + int index, io.dapr.DaprProtos.StateRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.set(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public Builder addRequests(io.dapr.DaprProtos.StateRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(value); + onChanged(); + } else { + requestsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public Builder addRequests( + int index, io.dapr.DaprProtos.StateRequest value) { + if (requestsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRequestsIsMutable(); + requests_.add(index, value); + onChanged(); + } else { + requestsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public Builder addRequests( + io.dapr.DaprProtos.StateRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public Builder addRequests( + int index, io.dapr.DaprProtos.StateRequest.Builder builderForValue) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(index, builderForValue.build()); + onChanged(); + } else { + requestsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public Builder addAllRequests( + java.lang.Iterable values) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, requests_); + onChanged(); + } else { + requestsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public Builder clearRequests() { + if (requestsBuilder_ == null) { + requests_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + requestsBuilder_.clear(); + } + return this; + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public Builder removeRequests(int index) { + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.remove(index); + onChanged(); + } else { + requestsBuilder_.remove(index); + } + return this; + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public io.dapr.DaprProtos.StateRequest.Builder getRequestsBuilder( + int index) { + return getRequestsFieldBuilder().getBuilder(index); + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public io.dapr.DaprProtos.StateRequestOrBuilder getRequestsOrBuilder( + int index) { + if (requestsBuilder_ == null) { + return requests_.get(index); } else { + return requestsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public java.util.List + getRequestsOrBuilderList() { + if (requestsBuilder_ != null) { + return requestsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(requests_); + } + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public io.dapr.DaprProtos.StateRequest.Builder addRequestsBuilder() { + return getRequestsFieldBuilder().addBuilder( + io.dapr.DaprProtos.StateRequest.getDefaultInstance()); + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public io.dapr.DaprProtos.StateRequest.Builder addRequestsBuilder( + int index) { + return getRequestsFieldBuilder().addBuilder( + index, io.dapr.DaprProtos.StateRequest.getDefaultInstance()); + } + /** + * repeated .dapr.StateRequest requests = 1; + */ + public java.util.List + getRequestsBuilderList() { + return getRequestsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + io.dapr.DaprProtos.StateRequest, io.dapr.DaprProtos.StateRequest.Builder, io.dapr.DaprProtos.StateRequestOrBuilder> + getRequestsFieldBuilder() { + if (requestsBuilder_ == null) { + requestsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + io.dapr.DaprProtos.StateRequest, io.dapr.DaprProtos.StateRequest.Builder, io.dapr.DaprProtos.StateRequestOrBuilder>( + requests_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + requests_ = null; + } + return requestsBuilder_; + } + @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.SaveStateEnvelope) + } + + // @@protoc_insertion_point(class_scope:dapr.SaveStateEnvelope) + private static final io.dapr.DaprProtos.SaveStateEnvelope DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.SaveStateEnvelope(); + } + + public static io.dapr.DaprProtos.SaveStateEnvelope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SaveStateEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SaveStateEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.SaveStateEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetStateEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.GetStateEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * @return The key. + */ + java.lang.String getKey(); + /** + * string key = 1; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * string consistency = 2; + * @return The consistency. + */ + java.lang.String getConsistency(); + /** + * string consistency = 2; + * @return The bytes for consistency. + */ + com.google.protobuf.ByteString + getConsistencyBytes(); + } + /** + * Protobuf type {@code dapr.GetStateEnvelope} + */ + public static final class GetStateEnvelope extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.GetStateEnvelope) + GetStateEnvelopeOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetStateEnvelope.newBuilder() to construct. + private GetStateEnvelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetStateEnvelope() { + key_ = ""; + consistency_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetStateEnvelope(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetStateEnvelope( + 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(); + + consistency_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_GetStateEnvelope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_GetStateEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.GetStateEnvelope.class, io.dapr.DaprProtos.GetStateEnvelope.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 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; + } + } + + 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 (!getConsistencyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, consistency_); + } + 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 (!getConsistencyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, consistency_); + } + 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.GetStateEnvelope)) { + return super.equals(obj); + } + io.dapr.DaprProtos.GetStateEnvelope other = (io.dapr.DaprProtos.GetStateEnvelope) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (!getConsistency() + .equals(other.getConsistency())) 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) + CONSISTENCY_FIELD_NUMBER; + hash = (53 * hash) + getConsistency().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.dapr.DaprProtos.GetStateEnvelope parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.GetStateEnvelope 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.GetStateEnvelope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.GetStateEnvelope 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.GetStateEnvelope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.GetStateEnvelope parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.GetStateEnvelope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.GetStateEnvelope 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.GetStateEnvelope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.GetStateEnvelope 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.GetStateEnvelope parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.GetStateEnvelope 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.GetStateEnvelope 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.GetStateEnvelope} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.GetStateEnvelope) + io.dapr.DaprProtos.GetStateEnvelopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_GetStateEnvelope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_GetStateEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.GetStateEnvelope.class, io.dapr.DaprProtos.GetStateEnvelope.Builder.class); + } + + // Construct using io.dapr.DaprProtos.GetStateEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + consistency_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_GetStateEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.GetStateEnvelope getDefaultInstanceForType() { + return io.dapr.DaprProtos.GetStateEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.GetStateEnvelope build() { + io.dapr.DaprProtos.GetStateEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.GetStateEnvelope buildPartial() { + io.dapr.DaprProtos.GetStateEnvelope result = new io.dapr.DaprProtos.GetStateEnvelope(this); + result.key_ = key_; + result.consistency_ = consistency_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.GetStateEnvelope) { + return mergeFrom((io.dapr.DaprProtos.GetStateEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.GetStateEnvelope other) { + if (other == io.dapr.DaprProtos.GetStateEnvelope.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (!other.getConsistency().isEmpty()) { + consistency_ = other.consistency_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.GetStateEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.GetStateEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private 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)) { + 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 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; + } + @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.GetStateEnvelope) + } + + // @@protoc_insertion_point(class_scope:dapr.GetStateEnvelope) + private static final io.dapr.DaprProtos.GetStateEnvelope DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.GetStateEnvelope(); + } + + public static io.dapr.DaprProtos.GetStateEnvelope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStateEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetStateEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.GetStateEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface GetStateResponseEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.GetStateResponseEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * .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(); + + /** + * string etag = 2; + * @return The etag. + */ + java.lang.String getEtag(); + /** + * string etag = 2; + * @return The bytes for etag. + */ + com.google.protobuf.ByteString + getEtagBytes(); + } + /** + * Protobuf type {@code dapr.GetStateResponseEnvelope} + */ + public static final class GetStateResponseEnvelope extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.GetStateResponseEnvelope) + GetStateResponseEnvelopeOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetStateResponseEnvelope.newBuilder() to construct. + private GetStateResponseEnvelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetStateResponseEnvelope() { + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetStateResponseEnvelope(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private GetStateResponseEnvelope( + 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: { + 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(); + + etag_ = s; + break; + } + default: { + if (!parseUnknownField( + input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException( + e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_GetStateResponseEnvelope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_GetStateResponseEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.GetStateResponseEnvelope.class, io.dapr.DaprProtos.GetStateResponseEnvelope.Builder.class); + } + + public static final int DATA_FIELD_NUMBER = 1; + private com.google.protobuf.Any data_; + /** + * .google.protobuf.Any data = 1; + * @return Whether the data field is set. + */ + public boolean hasData() { + return data_ != null; + } + /** + * .google.protobuf.Any data = 1; + * @return The data. + */ + public com.google.protobuf.Any getData() { + return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; + } + /** + * .google.protobuf.Any data = 1; + */ + public com.google.protobuf.AnyOrBuilder getDataOrBuilder() { + return getData(); + } + + 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; + } + } + + 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()); + } + if (!getEtagBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_); + } + 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()); + } + if (!getEtagBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, etag_); + } + 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.GetStateResponseEnvelope)) { + return super.equals(obj); + } + io.dapr.DaprProtos.GetStateResponseEnvelope other = (io.dapr.DaprProtos.GetStateResponseEnvelope) obj; + + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) return false; + } + if (!getEtag() + .equals(other.getEtag())) 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(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.dapr.DaprProtos.GetStateResponseEnvelope parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.GetStateResponseEnvelope 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.GetStateResponseEnvelope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.GetStateResponseEnvelope 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.GetStateResponseEnvelope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.GetStateResponseEnvelope parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.GetStateResponseEnvelope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.GetStateResponseEnvelope 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.GetStateResponseEnvelope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.GetStateResponseEnvelope 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.GetStateResponseEnvelope parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.GetStateResponseEnvelope 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.GetStateResponseEnvelope 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.GetStateResponseEnvelope} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.GetStateResponseEnvelope) + io.dapr.DaprProtos.GetStateResponseEnvelopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_GetStateResponseEnvelope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_GetStateResponseEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.GetStateResponseEnvelope.class, io.dapr.DaprProtos.GetStateResponseEnvelope.Builder.class); + } + + // Construct using io.dapr.DaprProtos.GetStateResponseEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + etag_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_GetStateResponseEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.GetStateResponseEnvelope getDefaultInstanceForType() { + return io.dapr.DaprProtos.GetStateResponseEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.GetStateResponseEnvelope build() { + io.dapr.DaprProtos.GetStateResponseEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.GetStateResponseEnvelope buildPartial() { + io.dapr.DaprProtos.GetStateResponseEnvelope result = new io.dapr.DaprProtos.GetStateResponseEnvelope(this); + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + result.etag_ = etag_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.GetStateResponseEnvelope) { + return mergeFrom((io.dapr.DaprProtos.GetStateResponseEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.GetStateResponseEnvelope other) { + if (other == io.dapr.DaprProtos.GetStateResponseEnvelope.getDefaultInstance()) return this; + if (other.hasData()) { + mergeData(other.getData()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.GetStateResponseEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.GetStateResponseEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + 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 = 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 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; + } + @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.GetStateResponseEnvelope) + } + + // @@protoc_insertion_point(class_scope:dapr.GetStateResponseEnvelope) + private static final io.dapr.DaprProtos.GetStateResponseEnvelope DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.GetStateResponseEnvelope(); + } + + public static io.dapr.DaprProtos.GetStateResponseEnvelope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetStateResponseEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetStateResponseEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.GetStateResponseEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InvokeBindingEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.InvokeBindingEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * @return The name. + */ + java.lang.String getName(); + /** + * string name = 1; + * @return The bytes for name. + */ + com.google.protobuf.ByteString + getNameBytes(); + + /** + * .google.protobuf.Any data = 2; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .google.protobuf.Any data = 2; + * @return The data. + */ + com.google.protobuf.Any getData(); + /** + * .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.Map + getMetadata(); + /** + * map<string, string> metadata = 3; + */ + java.util.Map + getMetadataMap(); + /** + * map<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 dapr.InvokeBindingEnvelope} + */ + public static final class InvokeBindingEnvelope extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.InvokeBindingEnvelope) + InvokeBindingEnvelopeOrBuilder { + private static final long serialVersionUID = 0L; + // Use InvokeBindingEnvelope.newBuilder() to construct. + private InvokeBindingEnvelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InvokeBindingEnvelope() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InvokeBindingEnvelope(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InvokeBindingEnvelope( + 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.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + 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_InvokeBindingEnvelope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeBindingEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.InvokeBindingEnvelope.class, io.dapr.DaprProtos.InvokeBindingEnvelope.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * string 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 + .newDefaultInstance( + io.dapr.DaprProtos.internal_static_dapr_InvokeBindingEnvelope_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 3; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 3; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (data_ != null) { + output.writeMessage(2, getData()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 3); + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getData()); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, metadata__); + } + 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.InvokeBindingEnvelope)) { + return super.equals(obj); + } + io.dapr.DaprProtos.InvokeBindingEnvelope other = (io.dapr.DaprProtos.InvokeBindingEnvelope) obj; + + if (!getName() + .equals(other.getName())) return false; + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) return false; + } + if (!internalGetMetadata().equals( + other.internalGetMetadata())) 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) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.dapr.DaprProtos.InvokeBindingEnvelope parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.InvokeBindingEnvelope 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.InvokeBindingEnvelope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.InvokeBindingEnvelope 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.InvokeBindingEnvelope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.InvokeBindingEnvelope parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.InvokeBindingEnvelope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.InvokeBindingEnvelope 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.InvokeBindingEnvelope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.InvokeBindingEnvelope 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.InvokeBindingEnvelope parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.InvokeBindingEnvelope 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.InvokeBindingEnvelope 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.InvokeBindingEnvelope} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.InvokeBindingEnvelope) + io.dapr.DaprProtos.InvokeBindingEnvelopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeBindingEnvelope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 3: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 3: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeBindingEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.InvokeBindingEnvelope.class, io.dapr.DaprProtos.InvokeBindingEnvelope.Builder.class); + } + + // Construct using io.dapr.DaprProtos.InvokeBindingEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + internalGetMutableMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeBindingEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeBindingEnvelope getDefaultInstanceForType() { + return io.dapr.DaprProtos.InvokeBindingEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeBindingEnvelope build() { + io.dapr.DaprProtos.InvokeBindingEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeBindingEnvelope buildPartial() { + io.dapr.DaprProtos.InvokeBindingEnvelope result = new io.dapr.DaprProtos.InvokeBindingEnvelope(this); + int from_bitField0_ = bitField0_; + result.name_ = name_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.InvokeBindingEnvelope) { + return mergeFrom((io.dapr.DaprProtos.InvokeBindingEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.InvokeBindingEnvelope other) { + if (other == io.dapr.DaprProtos.InvokeBindingEnvelope.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasData()) { + mergeData(other.getData()); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.InvokeBindingEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.InvokeBindingEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * string 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.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged();; + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 3; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 3; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + * map<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.Map + getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + * map<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 values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + 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:dapr.InvokeBindingEnvelope) + } + + // @@protoc_insertion_point(class_scope:dapr.InvokeBindingEnvelope) + private static final io.dapr.DaprProtos.InvokeBindingEnvelope DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.InvokeBindingEnvelope(); + } + + public static io.dapr.DaprProtos.InvokeBindingEnvelope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvokeBindingEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InvokeBindingEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeBindingEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface InvokeServiceEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.InvokeServiceEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string method = 2; + * @return The method. + */ + java.lang.String getMethod(); + /** + * string method = 2; + * @return The bytes for method. + */ + com.google.protobuf.ByteString + getMethodBytes(); + + /** + * .google.protobuf.Any data = 3; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .google.protobuf.Any data = 3; + * @return The data. + */ + com.google.protobuf.Any getData(); + /** + * .google.protobuf.Any data = 3; + */ + com.google.protobuf.AnyOrBuilder getDataOrBuilder(); + + /** + * 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.Map + getMetadata(); + /** + * map<string, string> metadata = 4; + */ + java.util.Map + getMetadataMap(); + /** + * map<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); + } + /** + * Protobuf type {@code dapr.InvokeServiceEnvelope} + */ + public static final class InvokeServiceEnvelope extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.InvokeServiceEnvelope) + InvokeServiceEnvelopeOrBuilder { + private static final long serialVersionUID = 0L; + // Use InvokeServiceEnvelope.newBuilder() to construct. + private InvokeServiceEnvelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private InvokeServiceEnvelope() { + id_ = ""; + method_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new InvokeServiceEnvelope(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private InvokeServiceEnvelope( + 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(); + + id_ = s; + break; + } + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + + method_ = s; + break; + } + case 26: { + 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 34: { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + mutable_bitField0_ |= 0x00000001; + } + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + 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_InvokeServiceEnvelope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeServiceEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.InvokeServiceEnvelope.class, io.dapr.DaprProtos.InvokeServiceEnvelope.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 METHOD_FIELD_NUMBER = 2; + private volatile java.lang.Object method_; + /** + * string method = 2; + * @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 = 2; + * @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 = 3; + private com.google.protobuf.Any data_; + /** + * .google.protobuf.Any data = 3; + * @return Whether the data field is set. + */ + public boolean hasData() { + return data_ != null; + } + /** + * .google.protobuf.Any data = 3; + * @return The data. + */ + public com.google.protobuf.Any getData() { + return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; + } + /** + * .google.protobuf.Any data = 3; + */ + public com.google.protobuf.AnyOrBuilder getDataOrBuilder() { + return getData(); + } + + 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 + .newDefaultInstance( + io.dapr.DaprProtos.internal_static_dapr_InvokeServiceEnvelope_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 (!getMethodBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, method_); + } + if (data_ != null) { + output.writeMessage(3, getData()); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 4); + 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 (!getMethodBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, method_); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getData()); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metadata__); + } + 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.InvokeServiceEnvelope)) { + return super.equals(obj); + } + io.dapr.DaprProtos.InvokeServiceEnvelope other = (io.dapr.DaprProtos.InvokeServiceEnvelope) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getMethod() + .equals(other.getMethod())) return false; + if (hasData() != other.hasData()) return false; + if (hasData()) { + if (!getData() + .equals(other.getData())) return false; + } + if (!internalGetMetadata().equals( + other.internalGetMetadata())) 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) + METHOD_FIELD_NUMBER; + hash = (53 * hash) + getMethod().hashCode(); + if (hasData()) { + hash = (37 * hash) + DATA_FIELD_NUMBER; + hash = (53 * hash) + getData().hashCode(); + } + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static io.dapr.DaprProtos.InvokeServiceEnvelope parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.InvokeServiceEnvelope 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.InvokeServiceEnvelope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.InvokeServiceEnvelope 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.InvokeServiceEnvelope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.InvokeServiceEnvelope parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.InvokeServiceEnvelope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.InvokeServiceEnvelope 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.InvokeServiceEnvelope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.InvokeServiceEnvelope 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.InvokeServiceEnvelope parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.InvokeServiceEnvelope 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.InvokeServiceEnvelope 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.InvokeServiceEnvelope} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.InvokeServiceEnvelope) + io.dapr.DaprProtos.InvokeServiceEnvelopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeServiceEnvelope_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeServiceEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.InvokeServiceEnvelope.class, io.dapr.DaprProtos.InvokeServiceEnvelope.Builder.class); + } + + // Construct using io.dapr.DaprProtos.InvokeServiceEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + method_ = ""; + + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + internalGetMutableMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_InvokeServiceEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeServiceEnvelope getDefaultInstanceForType() { + return io.dapr.DaprProtos.InvokeServiceEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeServiceEnvelope build() { + io.dapr.DaprProtos.InvokeServiceEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeServiceEnvelope buildPartial() { + io.dapr.DaprProtos.InvokeServiceEnvelope result = new io.dapr.DaprProtos.InvokeServiceEnvelope(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + result.method_ = method_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.InvokeServiceEnvelope) { + return mergeFrom((io.dapr.DaprProtos.InvokeServiceEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.InvokeServiceEnvelope other) { + if (other == io.dapr.DaprProtos.InvokeServiceEnvelope.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (!other.getMethod().isEmpty()) { + method_ = other.method_; + onChanged(); + } + if (other.hasData()) { + mergeData(other.getData()); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.InvokeServiceEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.InvokeServiceEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private 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)) { + 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 method_ = ""; + /** + * string method = 2; + * @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 = 2; + * @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 = 2; + * @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 = 2; + * @return This builder for chaining. + */ + public Builder clearMethod() { + + method_ = getDefaultInstance().getMethod(); + onChanged(); + return this; + } + /** + * string method = 2; + * @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 = 3; + * @return Whether the data field is set. + */ + public boolean hasData() { + return dataBuilder_ != null || data_ != null; + } + /** + * .google.protobuf.Any data = 3; + * @return The data. + */ + public com.google.protobuf.Any getData() { + if (dataBuilder_ == null) { + return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; + } else { + return dataBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Any data = 3; + */ + 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 = 3; + */ + 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 = 3; + */ + 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 = 3; + */ + public Builder clearData() { + if (dataBuilder_ == null) { + data_ = null; + onChanged(); + } else { + data_ = null; + dataBuilder_ = null; + } + + return this; + } + /** + * .google.protobuf.Any data = 3; + */ + public com.google.protobuf.Any.Builder getDataBuilder() { + + onChanged(); + return getDataFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Any data = 3; + */ + 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 = 3; + */ + 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.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged();; + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + * map<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.Map + getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + * map<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 values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + 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:dapr.InvokeServiceEnvelope) + } + + // @@protoc_insertion_point(class_scope:dapr.InvokeServiceEnvelope) + private static final io.dapr.DaprProtos.InvokeServiceEnvelope DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.InvokeServiceEnvelope(); + } + + public static io.dapr.DaprProtos.InvokeServiceEnvelope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InvokeServiceEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new InvokeServiceEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.InvokeServiceEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface PublishEventEnvelopeOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.PublishEventEnvelope) + com.google.protobuf.MessageOrBuilder { + + /** + * string topic = 1; + * @return The topic. + */ + java.lang.String getTopic(); + /** + * string topic = 1; + * @return The bytes for topic. + */ + com.google.protobuf.ByteString + getTopicBytes(); + + /** + * .google.protobuf.Any data = 2; + * @return Whether the data field is set. + */ + boolean hasData(); + /** + * .google.protobuf.Any data = 2; + * @return The data. + */ + com.google.protobuf.Any getData(); + /** + * .google.protobuf.Any data = 2; + */ + com.google.protobuf.AnyOrBuilder getDataOrBuilder(); + } + /** + * Protobuf type {@code dapr.PublishEventEnvelope} + */ + public static final class PublishEventEnvelope extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.PublishEventEnvelope) + PublishEventEnvelopeOrBuilder { + private static final long serialVersionUID = 0L; + // Use PublishEventEnvelope.newBuilder() to construct. + private PublishEventEnvelope(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PublishEventEnvelope() { + topic_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PublishEventEnvelope(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private PublishEventEnvelope( + 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(); + + topic_ = 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; + } + 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_PublishEventEnvelope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_PublishEventEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.PublishEventEnvelope.class, io.dapr.DaprProtos.PublishEventEnvelope.Builder.class); + } + + public static final int TOPIC_FIELD_NUMBER = 1; + private volatile java.lang.Object topic_; + /** + * string topic = 1; + * @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 = 1; + * @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 = 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(); + } + + 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 (!getTopicBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, topic_); + } + if (data_ != null) { + output.writeMessage(2, getData()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getTopicBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, topic_); + } + if (data_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, 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.DaprProtos.PublishEventEnvelope)) { + return super.equals(obj); + } + io.dapr.DaprProtos.PublishEventEnvelope other = (io.dapr.DaprProtos.PublishEventEnvelope) obj; + + 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) + 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.DaprProtos.PublishEventEnvelope parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.PublishEventEnvelope 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.PublishEventEnvelope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.PublishEventEnvelope 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.PublishEventEnvelope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.PublishEventEnvelope parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.PublishEventEnvelope parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.PublishEventEnvelope 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.PublishEventEnvelope parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.PublishEventEnvelope 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.PublishEventEnvelope parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.PublishEventEnvelope 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.PublishEventEnvelope 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.PublishEventEnvelope} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.PublishEventEnvelope) + io.dapr.DaprProtos.PublishEventEnvelopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_PublishEventEnvelope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_PublishEventEnvelope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.PublishEventEnvelope.class, io.dapr.DaprProtos.PublishEventEnvelope.Builder.class); + } + + // Construct using io.dapr.DaprProtos.PublishEventEnvelope.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + topic_ = ""; + + if (dataBuilder_ == null) { + data_ = null; + } else { + data_ = null; + dataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_PublishEventEnvelope_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.PublishEventEnvelope getDefaultInstanceForType() { + return io.dapr.DaprProtos.PublishEventEnvelope.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.PublishEventEnvelope build() { + io.dapr.DaprProtos.PublishEventEnvelope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.PublishEventEnvelope buildPartial() { + io.dapr.DaprProtos.PublishEventEnvelope result = new io.dapr.DaprProtos.PublishEventEnvelope(this); + result.topic_ = topic_; + if (dataBuilder_ == null) { + result.data_ = data_; + } else { + result.data_ = dataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.PublishEventEnvelope) { + return mergeFrom((io.dapr.DaprProtos.PublishEventEnvelope)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.PublishEventEnvelope other) { + if (other == io.dapr.DaprProtos.PublishEventEnvelope.getDefaultInstance()) return this; + if (!other.getTopic().isEmpty()) { + topic_ = other.topic_; + onChanged(); + } + if (other.hasData()) { + mergeData(other.getData()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.PublishEventEnvelope parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.PublishEventEnvelope) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object topic_ = ""; + /** + * string topic = 1; + * @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 = 1; + * @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 = 1; + * @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 = 1; + * @return This builder for chaining. + */ + public Builder clearTopic() { + + topic_ = getDefaultInstance().getTopic(); + onChanged(); + return this; + } + /** + * string topic = 1; + * @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 = 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_; + } + @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.PublishEventEnvelope) + } + + // @@protoc_insertion_point(class_scope:dapr.PublishEventEnvelope) + private static final io.dapr.DaprProtos.PublishEventEnvelope DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.PublishEventEnvelope(); + } + + public static io.dapr.DaprProtos.PublishEventEnvelope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublishEventEnvelope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new PublishEventEnvelope(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.PublishEventEnvelope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StateOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.State) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * @return The key. + */ + java.lang.String getKey(); + /** + * string key = 1; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * .google.protobuf.Any value = 2; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * .google.protobuf.Any value = 2; + * @return The value. + */ + com.google.protobuf.Any getValue(); + /** + * .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.Map + getMetadata(); + /** + * map<string, string> metadata = 4; + */ + java.util.Map + getMetadataMap(); + /** + * map<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); + + /** + * .dapr.StateOptions options = 5; + * @return Whether the options field is set. + */ + boolean hasOptions(); + /** + * .dapr.StateOptions options = 5; + * @return The options. + */ + io.dapr.DaprProtos.StateOptions getOptions(); + /** + * .dapr.StateOptions options = 5; + */ + io.dapr.DaprProtos.StateOptionsOrBuilder getOptionsOrBuilder(); + } + /** + * Protobuf type {@code dapr.State} + */ + public static final class State extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.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.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + break; + } + case 42: { + 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_State_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_State_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.State.class, io.dapr.DaprProtos.State.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 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 + .newDefaultInstance( + io.dapr.DaprProtos.internal_static_dapr_State_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OPTIONS_FIELD_NUMBER = 5; + private io.dapr.DaprProtos.StateOptions options_; + /** + * .dapr.StateOptions options = 5; + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return options_ != null; + } + /** + * .dapr.StateOptions options = 5; + * @return The options. + */ + public io.dapr.DaprProtos.StateOptions getOptions() { + return options_ == null ? io.dapr.DaprProtos.StateOptions.getDefaultInstance() : options_; + } + /** + * .dapr.StateOptions options = 5; + */ + 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 (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.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metadata__); + } + if (options_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, 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.State)) { + return super.equals(obj); + } + io.dapr.DaprProtos.State other = (io.dapr.DaprProtos.State) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) 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(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().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.State parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.State 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.State parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.State 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.State parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.State parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.State parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.State 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.State parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.State 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.State parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.State 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.State 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.State} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.State) + io.dapr.DaprProtos.StateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_State_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_State_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.State.class, io.dapr.DaprProtos.State.Builder.class); + } + + // Construct using io.dapr.DaprProtos.State.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + etag_ = ""; + + internalGetMutableMetadata().clear(); + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_State_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.State getDefaultInstanceForType() { + return io.dapr.DaprProtos.State.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.State build() { + io.dapr.DaprProtos.State result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.State buildPartial() { + io.dapr.DaprProtos.State result = new io.dapr.DaprProtos.State(this); + int from_bitField0_ = bitField0_; + result.key_ = key_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + result.etag_ = etag_; + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.State) { + return mergeFrom((io.dapr.DaprProtos.State)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.State other) { + if (other == io.dapr.DaprProtos.State.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.State parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.State) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private 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)) { + 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.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged();; + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + * map<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.Map + getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + * map<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 values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + 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 = 5; + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + * .dapr.StateOptions options = 5; + * @return The options. + */ + public io.dapr.DaprProtos.StateOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null ? io.dapr.DaprProtos.StateOptions.getDefaultInstance() : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + /** + * .dapr.StateOptions options = 5; + */ + 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 = 5; + */ + 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 = 5; + */ + 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 = 5; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = null; + onChanged(); + } else { + options_ = null; + optionsBuilder_ = null; + } + + return this; + } + /** + * .dapr.StateOptions options = 5; + */ + public io.dapr.DaprProtos.StateOptions.Builder getOptionsBuilder() { + + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + /** + * .dapr.StateOptions options = 5; + */ + 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 = 5; + */ + 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.State) + } + + // @@protoc_insertion_point(class_scope:dapr.State) + private static final io.dapr.DaprProtos.State DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.State(); + } + + public static io.dapr.DaprProtos.State getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public State parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new State(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.State getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StateOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.StateOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * string concurrency = 1; + * @return The concurrency. + */ + java.lang.String getConcurrency(); + /** + * string concurrency = 1; + * @return The bytes for concurrency. + */ + com.google.protobuf.ByteString + getConcurrencyBytes(); + + /** + * string consistency = 2; + * @return The consistency. + */ + java.lang.String getConsistency(); + /** + * string consistency = 2; + * @return The bytes for consistency. + */ + com.google.protobuf.ByteString + getConsistencyBytes(); + + /** + * .dapr.RetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. + */ + boolean hasRetryPolicy(); + /** + * .dapr.RetryPolicy retryPolicy = 3; + * @return The retryPolicy. + */ + io.dapr.DaprProtos.RetryPolicy getRetryPolicy(); + /** + * .dapr.RetryPolicy retryPolicy = 3; + */ + io.dapr.DaprProtos.RetryPolicyOrBuilder getRetryPolicyOrBuilder(); + } + /** + * Protobuf type {@code dapr.StateOptions} + */ + public static final class StateOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.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.DaprProtos.RetryPolicy.Builder subBuilder = null; + if (retryPolicy_ != null) { + subBuilder = retryPolicy_.toBuilder(); + } + retryPolicy_ = input.readMessage(io.dapr.DaprProtos.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.DaprProtos.internal_static_dapr_StateOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_StateOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.StateOptions.class, io.dapr.DaprProtos.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.DaprProtos.RetryPolicy retryPolicy_; + /** + * .dapr.RetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. + */ + public boolean hasRetryPolicy() { + return retryPolicy_ != null; + } + /** + * .dapr.RetryPolicy retryPolicy = 3; + * @return The retryPolicy. + */ + public io.dapr.DaprProtos.RetryPolicy getRetryPolicy() { + return retryPolicy_ == null ? io.dapr.DaprProtos.RetryPolicy.getDefaultInstance() : retryPolicy_; + } + /** + * .dapr.RetryPolicy retryPolicy = 3; + */ + public io.dapr.DaprProtos.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.DaprProtos.StateOptions)) { + return super.equals(obj); + } + io.dapr.DaprProtos.StateOptions other = (io.dapr.DaprProtos.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.DaprProtos.StateOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.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.DaprProtos.StateOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.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.DaprProtos.StateOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.StateOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.StateOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.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.DaprProtos.StateOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.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.DaprProtos.StateOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.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.DaprProtos.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 dapr.StateOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.StateOptions) + io.dapr.DaprProtos.StateOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_StateOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_StateOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.StateOptions.class, io.dapr.DaprProtos.StateOptions.Builder.class); + } + + // Construct using io.dapr.DaprProtos.StateOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + concurrency_ = ""; + + consistency_ = ""; + + if (retryPolicyBuilder_ == null) { + retryPolicy_ = null; + } else { + retryPolicy_ = null; + retryPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_StateOptions_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateOptions getDefaultInstanceForType() { + return io.dapr.DaprProtos.StateOptions.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.StateOptions build() { + io.dapr.DaprProtos.StateOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateOptions buildPartial() { + io.dapr.DaprProtos.StateOptions result = new io.dapr.DaprProtos.StateOptions(this); + result.concurrency_ = concurrency_; + result.consistency_ = consistency_; + if (retryPolicyBuilder_ == null) { + result.retryPolicy_ = retryPolicy_; + } else { + result.retryPolicy_ = retryPolicyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.StateOptions) { + return mergeFrom((io.dapr.DaprProtos.StateOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.StateOptions other) { + if (other == io.dapr.DaprProtos.StateOptions.getDefaultInstance()) return this; + if (!other.getConcurrency().isEmpty()) { + concurrency_ = other.concurrency_; + onChanged(); + } + if (!other.getConsistency().isEmpty()) { + consistency_ = other.consistency_; + onChanged(); + } + if (other.hasRetryPolicy()) { + mergeRetryPolicy(other.getRetryPolicy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.StateOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.StateOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private 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)) { + 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.DaprProtos.RetryPolicy retryPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + io.dapr.DaprProtos.RetryPolicy, io.dapr.DaprProtos.RetryPolicy.Builder, io.dapr.DaprProtos.RetryPolicyOrBuilder> retryPolicyBuilder_; + /** + * .dapr.RetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. + */ + public boolean hasRetryPolicy() { + return retryPolicyBuilder_ != null || retryPolicy_ != null; + } + /** + * .dapr.RetryPolicy retryPolicy = 3; + * @return The retryPolicy. + */ + public io.dapr.DaprProtos.RetryPolicy getRetryPolicy() { + if (retryPolicyBuilder_ == null) { + return retryPolicy_ == null ? io.dapr.DaprProtos.RetryPolicy.getDefaultInstance() : retryPolicy_; + } else { + return retryPolicyBuilder_.getMessage(); + } + } + /** + * .dapr.RetryPolicy retryPolicy = 3; + */ + public Builder setRetryPolicy(io.dapr.DaprProtos.RetryPolicy value) { + if (retryPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retryPolicy_ = value; + onChanged(); + } else { + retryPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * .dapr.RetryPolicy retryPolicy = 3; + */ + public Builder setRetryPolicy( + io.dapr.DaprProtos.RetryPolicy.Builder builderForValue) { + if (retryPolicyBuilder_ == null) { + retryPolicy_ = builderForValue.build(); + onChanged(); + } else { + retryPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .dapr.RetryPolicy retryPolicy = 3; + */ + public Builder mergeRetryPolicy(io.dapr.DaprProtos.RetryPolicy value) { + if (retryPolicyBuilder_ == null) { + if (retryPolicy_ != null) { + retryPolicy_ = + io.dapr.DaprProtos.RetryPolicy.newBuilder(retryPolicy_).mergeFrom(value).buildPartial(); + } else { + retryPolicy_ = value; + } + onChanged(); + } else { + retryPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .dapr.RetryPolicy retryPolicy = 3; + */ + public Builder clearRetryPolicy() { + if (retryPolicyBuilder_ == null) { + retryPolicy_ = null; + onChanged(); + } else { + retryPolicy_ = null; + retryPolicyBuilder_ = null; + } + + return this; + } + /** + * .dapr.RetryPolicy retryPolicy = 3; + */ + public io.dapr.DaprProtos.RetryPolicy.Builder getRetryPolicyBuilder() { + + onChanged(); + return getRetryPolicyFieldBuilder().getBuilder(); + } + /** + * .dapr.RetryPolicy retryPolicy = 3; + */ + public io.dapr.DaprProtos.RetryPolicyOrBuilder getRetryPolicyOrBuilder() { + if (retryPolicyBuilder_ != null) { + return retryPolicyBuilder_.getMessageOrBuilder(); + } else { + return retryPolicy_ == null ? + io.dapr.DaprProtos.RetryPolicy.getDefaultInstance() : retryPolicy_; + } + } + /** + * .dapr.RetryPolicy retryPolicy = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.dapr.DaprProtos.RetryPolicy, io.dapr.DaprProtos.RetryPolicy.Builder, io.dapr.DaprProtos.RetryPolicyOrBuilder> + getRetryPolicyFieldBuilder() { + if (retryPolicyBuilder_ == null) { + retryPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.dapr.DaprProtos.RetryPolicy, io.dapr.DaprProtos.RetryPolicy.Builder, io.dapr.DaprProtos.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:dapr.StateOptions) + } + + // @@protoc_insertion_point(class_scope:dapr.StateOptions) + private static final io.dapr.DaprProtos.StateOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.StateOptions(); + } + + public static io.dapr.DaprProtos.StateOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface RetryPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.RetryPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 threshold = 1; + * @return The threshold. + */ + int getThreshold(); + + /** + * string pattern = 2; + * @return The pattern. + */ + java.lang.String getPattern(); + /** + * string pattern = 2; + * @return The bytes for pattern. + */ + com.google.protobuf.ByteString + getPatternBytes(); + + /** + * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. + */ + boolean hasInterval(); + /** + * .google.protobuf.Duration interval = 3; + * @return The interval. + */ + com.google.protobuf.Duration getInterval(); + /** + * .google.protobuf.Duration interval = 3; + */ + com.google.protobuf.DurationOrBuilder getIntervalOrBuilder(); + } + /** + * Protobuf type {@code dapr.RetryPolicy} + */ + public static final class RetryPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.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.DaprProtos.internal_static_dapr_RetryPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_RetryPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.RetryPolicy.class, io.dapr.DaprProtos.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.DaprProtos.RetryPolicy)) { + return super.equals(obj); + } + io.dapr.DaprProtos.RetryPolicy other = (io.dapr.DaprProtos.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.DaprProtos.RetryPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.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.DaprProtos.RetryPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.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.DaprProtos.RetryPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.RetryPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.RetryPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.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.DaprProtos.RetryPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.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.DaprProtos.RetryPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.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.DaprProtos.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 dapr.RetryPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.RetryPolicy) + io.dapr.DaprProtos.RetryPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_RetryPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_RetryPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.RetryPolicy.class, io.dapr.DaprProtos.RetryPolicy.Builder.class); + } + + // Construct using io.dapr.DaprProtos.RetryPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + threshold_ = 0; + + pattern_ = ""; + + if (intervalBuilder_ == null) { + interval_ = null; + } else { + interval_ = null; + intervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_RetryPolicy_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.RetryPolicy getDefaultInstanceForType() { + return io.dapr.DaprProtos.RetryPolicy.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.RetryPolicy build() { + io.dapr.DaprProtos.RetryPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.RetryPolicy buildPartial() { + io.dapr.DaprProtos.RetryPolicy result = new io.dapr.DaprProtos.RetryPolicy(this); + result.threshold_ = threshold_; + result.pattern_ = pattern_; + if (intervalBuilder_ == null) { + result.interval_ = interval_; + } else { + result.interval_ = intervalBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.RetryPolicy) { + return mergeFrom((io.dapr.DaprProtos.RetryPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.RetryPolicy other) { + if (other == io.dapr.DaprProtos.RetryPolicy.getDefaultInstance()) return this; + if (other.getThreshold() != 0) { + setThreshold(other.getThreshold()); + } + if (!other.getPattern().isEmpty()) { + pattern_ = other.pattern_; + onChanged(); + } + if (other.hasInterval()) { + mergeInterval(other.getInterval()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.RetryPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.RetryPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int threshold_ ; + /** + * int32 threshold = 1; + * @return The threshold. + */ + public int getThreshold() { + return threshold_; + } + /** + * int32 threshold = 1; + * @param value The threshold to set. + * @return This builder for chaining. + */ + public Builder setThreshold(int value) { + + 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:dapr.RetryPolicy) + } + + // @@protoc_insertion_point(class_scope:dapr.RetryPolicy) + private static final io.dapr.DaprProtos.RetryPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.RetryPolicy(); + } + + public static io.dapr.DaprProtos.RetryPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RetryPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RetryPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.RetryPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StateRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.StateRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1; + * @return The key. + */ + java.lang.String getKey(); + /** + * string key = 1; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * .google.protobuf.Any value = 2; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * .google.protobuf.Any value = 2; + * @return The value. + */ + com.google.protobuf.Any getValue(); + /** + * .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.Map + getMetadata(); + /** + * map<string, string> metadata = 4; + */ + java.util.Map + getMetadataMap(); + /** + * map<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); + + /** + * .dapr.StateRequestOptions options = 5; + * @return Whether the options field is set. + */ + boolean hasOptions(); + /** + * .dapr.StateRequestOptions options = 5; + * @return The options. + */ + io.dapr.DaprProtos.StateRequestOptions getOptions(); + /** + * .dapr.StateRequestOptions options = 5; + */ + io.dapr.DaprProtos.StateRequestOptionsOrBuilder getOptionsOrBuilder(); + } + /** + * Protobuf type {@code dapr.StateRequest} + */ + public static final class StateRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.StateRequest) + StateRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use StateRequest.newBuilder() to construct. + private StateRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StateRequest() { + key_ = ""; + etag_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StateRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StateRequest( + 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.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + metadata_.getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + break; + } + case 42: { + io.dapr.DaprProtos.StateRequestOptions.Builder subBuilder = null; + if (options_ != null) { + subBuilder = options_.toBuilder(); + } + options_ = input.readMessage(io.dapr.DaprProtos.StateRequestOptions.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_StateRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_StateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.StateRequest.class, io.dapr.DaprProtos.StateRequest.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 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 + .newDefaultInstance( + io.dapr.DaprProtos.internal_static_dapr_StateRequest_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int OPTIONS_FIELD_NUMBER = 5; + private io.dapr.DaprProtos.StateRequestOptions options_; + /** + * .dapr.StateRequestOptions options = 5; + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return options_ != null; + } + /** + * .dapr.StateRequestOptions options = 5; + * @return The options. + */ + public io.dapr.DaprProtos.StateRequestOptions getOptions() { + return options_ == null ? io.dapr.DaprProtos.StateRequestOptions.getDefaultInstance() : options_; + } + /** + * .dapr.StateRequestOptions options = 5; + */ + public io.dapr.DaprProtos.StateRequestOptionsOrBuilder 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.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, metadata__); + } + if (options_ != null) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, 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.StateRequest)) { + return super.equals(obj); + } + io.dapr.DaprProtos.StateRequest other = (io.dapr.DaprProtos.StateRequest) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (!getEtag() + .equals(other.getEtag())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) 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(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().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.StateRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.StateRequest 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.StateRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.StateRequest 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.StateRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.StateRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.StateRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.StateRequest 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.StateRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.StateRequest 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.StateRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.StateRequest 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.StateRequest 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.StateRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.StateRequest) + io.dapr.DaprProtos.StateRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_StateRequest_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMapField( + int number) { + switch (number) { + case 4: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapField internalGetMutableMapField( + int number) { + switch (number) { + case 4: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_StateRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.StateRequest.class, io.dapr.DaprProtos.StateRequest.Builder.class); + } + + // Construct using io.dapr.DaprProtos.StateRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + key_ = ""; + + if (valueBuilder_ == null) { + value_ = null; + } else { + value_ = null; + valueBuilder_ = null; + } + etag_ = ""; + + internalGetMutableMetadata().clear(); + if (optionsBuilder_ == null) { + options_ = null; + } else { + options_ = null; + optionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_StateRequest_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRequest getDefaultInstanceForType() { + return io.dapr.DaprProtos.StateRequest.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRequest build() { + io.dapr.DaprProtos.StateRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRequest buildPartial() { + io.dapr.DaprProtos.StateRequest result = new io.dapr.DaprProtos.StateRequest(this); + int from_bitField0_ = bitField0_; + result.key_ = key_; + if (valueBuilder_ == null) { + result.value_ = value_; + } else { + result.value_ = valueBuilder_.build(); + } + result.etag_ = etag_; + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + if (optionsBuilder_ == null) { + result.options_ = options_; + } else { + result.options_ = optionsBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.StateRequest) { + return mergeFrom((io.dapr.DaprProtos.StateRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.StateRequest other) { + if (other == io.dapr.DaprProtos.StateRequest.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + onChanged(); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + if (other.hasOptions()) { + mergeOptions(other.getOptions()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.StateRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.StateRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private 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)) { + 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.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + onChanged();; + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + return metadata_; + } + + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * 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.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 4; + */ + + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<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.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 4; + */ + + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new java.lang.NullPointerException(); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearMetadata() { + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + * map<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.Map + getMutableMetadata() { + return internalGetMutableMetadata().getMutableMap(); + } + /** + * map<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 values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + return this; + } + + private io.dapr.DaprProtos.StateRequestOptions options_; + private com.google.protobuf.SingleFieldBuilderV3< + io.dapr.DaprProtos.StateRequestOptions, io.dapr.DaprProtos.StateRequestOptions.Builder, io.dapr.DaprProtos.StateRequestOptionsOrBuilder> optionsBuilder_; + /** + * .dapr.StateRequestOptions options = 5; + * @return Whether the options field is set. + */ + public boolean hasOptions() { + return optionsBuilder_ != null || options_ != null; + } + /** + * .dapr.StateRequestOptions options = 5; + * @return The options. + */ + public io.dapr.DaprProtos.StateRequestOptions getOptions() { + if (optionsBuilder_ == null) { + return options_ == null ? io.dapr.DaprProtos.StateRequestOptions.getDefaultInstance() : options_; + } else { + return optionsBuilder_.getMessage(); + } + } + /** + * .dapr.StateRequestOptions options = 5; + */ + public Builder setOptions(io.dapr.DaprProtos.StateRequestOptions value) { + if (optionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + options_ = value; + onChanged(); + } else { + optionsBuilder_.setMessage(value); + } + + return this; + } + /** + * .dapr.StateRequestOptions options = 5; + */ + public Builder setOptions( + io.dapr.DaprProtos.StateRequestOptions.Builder builderForValue) { + if (optionsBuilder_ == null) { + options_ = builderForValue.build(); + onChanged(); + } else { + optionsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .dapr.StateRequestOptions options = 5; + */ + public Builder mergeOptions(io.dapr.DaprProtos.StateRequestOptions value) { + if (optionsBuilder_ == null) { + if (options_ != null) { + options_ = + io.dapr.DaprProtos.StateRequestOptions.newBuilder(options_).mergeFrom(value).buildPartial(); + } else { + options_ = value; + } + onChanged(); + } else { + optionsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .dapr.StateRequestOptions options = 5; + */ + public Builder clearOptions() { + if (optionsBuilder_ == null) { + options_ = null; + onChanged(); + } else { + options_ = null; + optionsBuilder_ = null; + } + + return this; + } + /** + * .dapr.StateRequestOptions options = 5; + */ + public io.dapr.DaprProtos.StateRequestOptions.Builder getOptionsBuilder() { + + onChanged(); + return getOptionsFieldBuilder().getBuilder(); + } + /** + * .dapr.StateRequestOptions options = 5; + */ + public io.dapr.DaprProtos.StateRequestOptionsOrBuilder getOptionsOrBuilder() { + if (optionsBuilder_ != null) { + return optionsBuilder_.getMessageOrBuilder(); + } else { + return options_ == null ? + io.dapr.DaprProtos.StateRequestOptions.getDefaultInstance() : options_; + } + } + /** + * .dapr.StateRequestOptions options = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.dapr.DaprProtos.StateRequestOptions, io.dapr.DaprProtos.StateRequestOptions.Builder, io.dapr.DaprProtos.StateRequestOptionsOrBuilder> + getOptionsFieldBuilder() { + if (optionsBuilder_ == null) { + optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.dapr.DaprProtos.StateRequestOptions, io.dapr.DaprProtos.StateRequestOptions.Builder, io.dapr.DaprProtos.StateRequestOptionsOrBuilder>( + 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.StateRequest) + } + + // @@protoc_insertion_point(class_scope:dapr.StateRequest) + private static final io.dapr.DaprProtos.StateRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.StateRequest(); + } + + public static io.dapr.DaprProtos.StateRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StateRequestOptionsOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.StateRequestOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * string concurrency = 1; + * @return The concurrency. + */ + java.lang.String getConcurrency(); + /** + * string concurrency = 1; + * @return The bytes for concurrency. + */ + com.google.protobuf.ByteString + getConcurrencyBytes(); + + /** + * string consistency = 2; + * @return The consistency. + */ + java.lang.String getConsistency(); + /** + * string consistency = 2; + * @return The bytes for consistency. + */ + com.google.protobuf.ByteString + getConsistencyBytes(); + + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. + */ + boolean hasRetryPolicy(); + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + * @return The retryPolicy. + */ + io.dapr.DaprProtos.StateRetryPolicy getRetryPolicy(); + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + */ + io.dapr.DaprProtos.StateRetryPolicyOrBuilder getRetryPolicyOrBuilder(); + } + /** + * Protobuf type {@code dapr.StateRequestOptions} + */ + public static final class StateRequestOptions extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.StateRequestOptions) + StateRequestOptionsOrBuilder { + private static final long serialVersionUID = 0L; + // Use StateRequestOptions.newBuilder() to construct. + private StateRequestOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StateRequestOptions() { + concurrency_ = ""; + consistency_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StateRequestOptions(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StateRequestOptions( + 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.DaprProtos.StateRetryPolicy.Builder subBuilder = null; + if (retryPolicy_ != null) { + subBuilder = retryPolicy_.toBuilder(); + } + retryPolicy_ = input.readMessage(io.dapr.DaprProtos.StateRetryPolicy.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.DaprProtos.internal_static_dapr_StateRequestOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_StateRequestOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.StateRequestOptions.class, io.dapr.DaprProtos.StateRequestOptions.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.DaprProtos.StateRetryPolicy retryPolicy_; + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. + */ + public boolean hasRetryPolicy() { + return retryPolicy_ != null; + } + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + * @return The retryPolicy. + */ + public io.dapr.DaprProtos.StateRetryPolicy getRetryPolicy() { + return retryPolicy_ == null ? io.dapr.DaprProtos.StateRetryPolicy.getDefaultInstance() : retryPolicy_; + } + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + */ + public io.dapr.DaprProtos.StateRetryPolicyOrBuilder 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.DaprProtos.StateRequestOptions)) { + return super.equals(obj); + } + io.dapr.DaprProtos.StateRequestOptions other = (io.dapr.DaprProtos.StateRequestOptions) 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.DaprProtos.StateRequestOptions parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.StateRequestOptions 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.StateRequestOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.StateRequestOptions 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.StateRequestOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.StateRequestOptions parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.StateRequestOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.StateRequestOptions 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.StateRequestOptions parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.StateRequestOptions 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.StateRequestOptions parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.StateRequestOptions 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.StateRequestOptions 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.StateRequestOptions} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.StateRequestOptions) + io.dapr.DaprProtos.StateRequestOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_StateRequestOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_StateRequestOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.StateRequestOptions.class, io.dapr.DaprProtos.StateRequestOptions.Builder.class); + } + + // Construct using io.dapr.DaprProtos.StateRequestOptions.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + concurrency_ = ""; + + consistency_ = ""; + + if (retryPolicyBuilder_ == null) { + retryPolicy_ = null; + } else { + retryPolicy_ = null; + retryPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_StateRequestOptions_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRequestOptions getDefaultInstanceForType() { + return io.dapr.DaprProtos.StateRequestOptions.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRequestOptions build() { + io.dapr.DaprProtos.StateRequestOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRequestOptions buildPartial() { + io.dapr.DaprProtos.StateRequestOptions result = new io.dapr.DaprProtos.StateRequestOptions(this); + result.concurrency_ = concurrency_; + result.consistency_ = consistency_; + if (retryPolicyBuilder_ == null) { + result.retryPolicy_ = retryPolicy_; + } else { + result.retryPolicy_ = retryPolicyBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.StateRequestOptions) { + return mergeFrom((io.dapr.DaprProtos.StateRequestOptions)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.StateRequestOptions other) { + if (other == io.dapr.DaprProtos.StateRequestOptions.getDefaultInstance()) return this; + if (!other.getConcurrency().isEmpty()) { + concurrency_ = other.concurrency_; + onChanged(); + } + if (!other.getConsistency().isEmpty()) { + consistency_ = other.consistency_; + onChanged(); + } + if (other.hasRetryPolicy()) { + mergeRetryPolicy(other.getRetryPolicy()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.StateRequestOptions parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.StateRequestOptions) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private 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)) { + 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.DaprProtos.StateRetryPolicy retryPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + io.dapr.DaprProtos.StateRetryPolicy, io.dapr.DaprProtos.StateRetryPolicy.Builder, io.dapr.DaprProtos.StateRetryPolicyOrBuilder> retryPolicyBuilder_; + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + * @return Whether the retryPolicy field is set. + */ + public boolean hasRetryPolicy() { + return retryPolicyBuilder_ != null || retryPolicy_ != null; + } + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + * @return The retryPolicy. + */ + public io.dapr.DaprProtos.StateRetryPolicy getRetryPolicy() { + if (retryPolicyBuilder_ == null) { + return retryPolicy_ == null ? io.dapr.DaprProtos.StateRetryPolicy.getDefaultInstance() : retryPolicy_; + } else { + return retryPolicyBuilder_.getMessage(); + } + } + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + */ + public Builder setRetryPolicy(io.dapr.DaprProtos.StateRetryPolicy value) { + if (retryPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retryPolicy_ = value; + onChanged(); + } else { + retryPolicyBuilder_.setMessage(value); + } + + return this; + } + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + */ + public Builder setRetryPolicy( + io.dapr.DaprProtos.StateRetryPolicy.Builder builderForValue) { + if (retryPolicyBuilder_ == null) { + retryPolicy_ = builderForValue.build(); + onChanged(); + } else { + retryPolicyBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + */ + public Builder mergeRetryPolicy(io.dapr.DaprProtos.StateRetryPolicy value) { + if (retryPolicyBuilder_ == null) { + if (retryPolicy_ != null) { + retryPolicy_ = + io.dapr.DaprProtos.StateRetryPolicy.newBuilder(retryPolicy_).mergeFrom(value).buildPartial(); + } else { + retryPolicy_ = value; + } + onChanged(); + } else { + retryPolicyBuilder_.mergeFrom(value); + } + + return this; + } + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + */ + public Builder clearRetryPolicy() { + if (retryPolicyBuilder_ == null) { + retryPolicy_ = null; + onChanged(); + } else { + retryPolicy_ = null; + retryPolicyBuilder_ = null; + } + + return this; + } + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + */ + public io.dapr.DaprProtos.StateRetryPolicy.Builder getRetryPolicyBuilder() { + + onChanged(); + return getRetryPolicyFieldBuilder().getBuilder(); + } + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + */ + public io.dapr.DaprProtos.StateRetryPolicyOrBuilder getRetryPolicyOrBuilder() { + if (retryPolicyBuilder_ != null) { + return retryPolicyBuilder_.getMessageOrBuilder(); + } else { + return retryPolicy_ == null ? + io.dapr.DaprProtos.StateRetryPolicy.getDefaultInstance() : retryPolicy_; + } + } + /** + * .dapr.StateRetryPolicy retryPolicy = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + io.dapr.DaprProtos.StateRetryPolicy, io.dapr.DaprProtos.StateRetryPolicy.Builder, io.dapr.DaprProtos.StateRetryPolicyOrBuilder> + getRetryPolicyFieldBuilder() { + if (retryPolicyBuilder_ == null) { + retryPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + io.dapr.DaprProtos.StateRetryPolicy, io.dapr.DaprProtos.StateRetryPolicy.Builder, io.dapr.DaprProtos.StateRetryPolicyOrBuilder>( + 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:dapr.StateRequestOptions) + } + + // @@protoc_insertion_point(class_scope:dapr.StateRequestOptions) + private static final io.dapr.DaprProtos.StateRequestOptions DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.StateRequestOptions(); + } + + public static io.dapr.DaprProtos.StateRequestOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateRequestOptions parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateRequestOptions(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRequestOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + public interface StateRetryPolicyOrBuilder extends + // @@protoc_insertion_point(interface_extends:dapr.StateRetryPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 threshold = 1; + * @return The threshold. + */ + int getThreshold(); + + /** + * string pattern = 2; + * @return The pattern. + */ + java.lang.String getPattern(); + /** + * string pattern = 2; + * @return The bytes for pattern. + */ + com.google.protobuf.ByteString + getPatternBytes(); + + /** + * .google.protobuf.Duration interval = 3; + * @return Whether the interval field is set. + */ + boolean hasInterval(); + /** + * .google.protobuf.Duration interval = 3; + * @return The interval. + */ + com.google.protobuf.Duration getInterval(); + /** + * .google.protobuf.Duration interval = 3; + */ + com.google.protobuf.DurationOrBuilder getIntervalOrBuilder(); + } + /** + * Protobuf type {@code dapr.StateRetryPolicy} + */ + public static final class StateRetryPolicy extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:dapr.StateRetryPolicy) + StateRetryPolicyOrBuilder { + private static final long serialVersionUID = 0L; + // Use StateRetryPolicy.newBuilder() to construct. + private StateRetryPolicy(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private StateRetryPolicy() { + pattern_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new StateRetryPolicy(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private StateRetryPolicy( + 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.DaprProtos.internal_static_dapr_StateRetryPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_StateRetryPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.StateRetryPolicy.class, io.dapr.DaprProtos.StateRetryPolicy.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.DaprProtos.StateRetryPolicy)) { + return super.equals(obj); + } + io.dapr.DaprProtos.StateRetryPolicy other = (io.dapr.DaprProtos.StateRetryPolicy) 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.DaprProtos.StateRetryPolicy parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.StateRetryPolicy 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.StateRetryPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.StateRetryPolicy 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.StateRetryPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static io.dapr.DaprProtos.StateRetryPolicy parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static io.dapr.DaprProtos.StateRetryPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.StateRetryPolicy 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.StateRetryPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.StateRetryPolicy 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.StateRetryPolicy parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static io.dapr.DaprProtos.StateRetryPolicy 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.StateRetryPolicy 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.StateRetryPolicy} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:dapr.StateRetryPolicy) + io.dapr.DaprProtos.StateRetryPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return io.dapr.DaprProtos.internal_static_dapr_StateRetryPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return io.dapr.DaprProtos.internal_static_dapr_StateRetryPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + io.dapr.DaprProtos.StateRetryPolicy.class, io.dapr.DaprProtos.StateRetryPolicy.Builder.class); + } + + // Construct using io.dapr.DaprProtos.StateRetryPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + threshold_ = 0; + + pattern_ = ""; + + if (intervalBuilder_ == null) { + interval_ = null; + } else { + interval_ = null; + intervalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return io.dapr.DaprProtos.internal_static_dapr_StateRetryPolicy_descriptor; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRetryPolicy getDefaultInstanceForType() { + return io.dapr.DaprProtos.StateRetryPolicy.getDefaultInstance(); + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRetryPolicy build() { + io.dapr.DaprProtos.StateRetryPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRetryPolicy buildPartial() { + io.dapr.DaprProtos.StateRetryPolicy result = new io.dapr.DaprProtos.StateRetryPolicy(this); + result.threshold_ = threshold_; + result.pattern_ = pattern_; + if (intervalBuilder_ == null) { + result.interval_ = interval_; + } else { + result.interval_ = intervalBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof io.dapr.DaprProtos.StateRetryPolicy) { + return mergeFrom((io.dapr.DaprProtos.StateRetryPolicy)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(io.dapr.DaprProtos.StateRetryPolicy other) { + if (other == io.dapr.DaprProtos.StateRetryPolicy.getDefaultInstance()) return this; + if (other.getThreshold() != 0) { + setThreshold(other.getThreshold()); + } + if (!other.getPattern().isEmpty()) { + pattern_ = other.pattern_; + onChanged(); + } + if (other.hasInterval()) { + mergeInterval(other.getInterval()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + io.dapr.DaprProtos.StateRetryPolicy parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (io.dapr.DaprProtos.StateRetryPolicy) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int threshold_ ; + /** + * int32 threshold = 1; + * @return The threshold. + */ + public int getThreshold() { + return threshold_; + } + /** + * int32 threshold = 1; + * @param value The threshold to set. + * @return This builder for chaining. + */ + public Builder setThreshold(int value) { + + 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:dapr.StateRetryPolicy) + } + + // @@protoc_insertion_point(class_scope:dapr.StateRetryPolicy) + private static final io.dapr.DaprProtos.StateRetryPolicy DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new io.dapr.DaprProtos.StateRetryPolicy(); + } + + public static io.dapr.DaprProtos.StateRetryPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateRetryPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new StateRetryPolicy(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public io.dapr.DaprProtos.StateRetryPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_InvokeServiceResponseEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_InvokeServiceResponseEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_InvokeServiceResponseEnvelope_MetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_InvokeServiceResponseEnvelope_MetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_DeleteStateEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_DeleteStateEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_SaveStateEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_SaveStateEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_GetStateEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_GetStateEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_GetStateResponseEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_GetStateResponseEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_InvokeBindingEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_InvokeBindingEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_InvokeBindingEnvelope_MetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_InvokeBindingEnvelope_MetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_InvokeServiceEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_InvokeServiceEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_InvokeServiceEnvelope_MetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_InvokeServiceEnvelope_MetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_PublishEventEnvelope_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_PublishEventEnvelope_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_State_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_State_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_State_MetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_State_MetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_StateOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_StateOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_RetryPolicy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_RetryPolicy_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_StateRequest_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_StateRequest_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_StateRequest_MetadataEntry_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_StateRequest_MetadataEntry_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_StateRequestOptions_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_StateRequestOptions_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_dapr_StateRetryPolicy_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_dapr_StateRetryPolicy_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n\017dapr/dapr.proto\022\004dapr\032\031google/protobuf" + + "/any.proto\032\033google/protobuf/empty.proto\032" + + "\036google/protobuf/duration.proto\"\271\001\n\035Invo" + + "keServiceResponseEnvelope\022\"\n\004data\030\001 \001(\0132" + + "\024.google.protobuf.Any\022C\n\010metadata\030\002 \003(\0132" + + "1.dapr.InvokeServiceResponseEnvelope.Met" + + "adataEntry\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t" + + "\022\r\n\005value\030\002 \001(\t:\0028\001\"U\n\023DeleteStateEnvelo" + + "pe\022\013\n\003key\030\001 \001(\t\022\014\n\004etag\030\002 \001(\t\022#\n\007options" + + "\030\003 \001(\0132\022.dapr.StateOptions\"9\n\021SaveStateE" + + "nvelope\022$\n\010requests\030\001 \003(\0132\022.dapr.StateRe" + + "quest\"4\n\020GetStateEnvelope\022\013\n\003key\030\001 \001(\t\022\023" + + "\n\013consistency\030\002 \001(\t\"L\n\030GetStateResponseE" + + "nvelope\022\"\n\004data\030\001 \001(\0132\024.google.protobuf." + + "Any\022\014\n\004etag\030\002 \001(\t\"\267\001\n\025InvokeBindingEnvel" + + "ope\022\014\n\004name\030\001 \001(\t\022\"\n\004data\030\002 \001(\0132\024.google" + + ".protobuf.Any\022;\n\010metadata\030\003 \003(\0132).dapr.I" + + "nvokeBindingEnvelope.MetadataEntry\032/\n\rMe" + + "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"\305\001\n\025InvokeServiceEnvelope\022\n\n\002id\030\001 \001(" + + "\t\022\016\n\006method\030\002 \001(\t\022\"\n\004data\030\003 \001(\0132\024.google" + + ".protobuf.Any\022;\n\010metadata\030\004 \003(\0132).dapr.I" + + "nvokeServiceEnvelope.MetadataEntry\032/\n\rMe" + + "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"I\n\024PublishEventEnvelope\022\r\n\005topic\030\001 \001" + + "(\t\022\"\n\004data\030\002 \001(\0132\024.google.protobuf.Any\"\312" + + "\001\n\005State\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001(\0132\024.g" + + "oogle.protobuf.Any\022\014\n\004etag\030\003 \001(\t\022+\n\010meta" + + "data\030\004 \003(\0132\031.dapr.State.MetadataEntry\022#\n" + + "\007options\030\005 \001(\0132\022.dapr.StateOptions\032/\n\rMe" + + "tadataEntry\022\013\n\003key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:" + + "\0028\001\"`\n\014StateOptions\022\023\n\013concurrency\030\001 \001(\t" + + "\022\023\n\013consistency\030\002 \001(\t\022&\n\013retryPolicy\030\003 \001" + + "(\0132\021.dapr.RetryPolicy\"^\n\013RetryPolicy\022\021\n\t" + + "threshold\030\001 \001(\005\022\017\n\007pattern\030\002 \001(\t\022+\n\010inte" + + "rval\030\003 \001(\0132\031.google.protobuf.Duration\"\337\001" + + "\n\014StateRequest\022\013\n\003key\030\001 \001(\t\022#\n\005value\030\002 \001" + + "(\0132\024.google.protobuf.Any\022\014\n\004etag\030\003 \001(\t\0222" + + "\n\010metadata\030\004 \003(\0132 .dapr.StateRequest.Met" + + "adataEntry\022*\n\007options\030\005 \001(\0132\031.dapr.State" + + "RequestOptions\032/\n\rMetadataEntry\022\013\n\003key\030\001" + + " \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001\"l\n\023StateRequestO" + + "ptions\022\023\n\013concurrency\030\001 \001(\t\022\023\n\013consisten" + + "cy\030\002 \001(\t\022+\n\013retryPolicy\030\003 \001(\0132\026.dapr.Sta" + + "teRetryPolicy\"c\n\020StateRetryPolicy\022\021\n\tthr" + + "eshold\030\001 \001(\005\022\017\n\007pattern\030\002 \001(\t\022+\n\010interva" + + "l\030\003 \001(\0132\031.google.protobuf.Duration2\263\003\n\004D" + + "apr\022D\n\014PublishEvent\022\032.dapr.PublishEventE" + + "nvelope\032\026.google.protobuf.Empty\"\000\022S\n\rInv" + + "okeService\022\033.dapr.InvokeServiceEnvelope\032" + + "#.dapr.InvokeServiceResponseEnvelope\"\000\022F" + + "\n\rInvokeBinding\022\033.dapr.InvokeBindingEnve" + + "lope\032\026.google.protobuf.Empty\"\000\022D\n\010GetSta" + + "te\022\026.dapr.GetStateEnvelope\032\036.dapr.GetSta" + + "teResponseEnvelope\"\000\022>\n\tSaveState\022\027.dapr" + + ".SaveStateEnvelope\032\026.google.protobuf.Emp" + + "ty\"\000\022B\n\013DeleteState\022\031.dapr.DeleteStateEn" + + "velope\032\026.google.protobuf.Empty\"\000B\025\n\007io.d" + + "aprB\nDaprProtosb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.AnyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_dapr_InvokeServiceResponseEnvelope_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_dapr_InvokeServiceResponseEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_InvokeServiceResponseEnvelope_descriptor, + new java.lang.String[] { "Data", "Metadata", }); + internal_static_dapr_InvokeServiceResponseEnvelope_MetadataEntry_descriptor = + internal_static_dapr_InvokeServiceResponseEnvelope_descriptor.getNestedTypes().get(0); + internal_static_dapr_InvokeServiceResponseEnvelope_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_InvokeServiceResponseEnvelope_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_dapr_DeleteStateEnvelope_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_dapr_DeleteStateEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_DeleteStateEnvelope_descriptor, + new java.lang.String[] { "Key", "Etag", "Options", }); + internal_static_dapr_SaveStateEnvelope_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_dapr_SaveStateEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_SaveStateEnvelope_descriptor, + new java.lang.String[] { "Requests", }); + internal_static_dapr_GetStateEnvelope_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_dapr_GetStateEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_GetStateEnvelope_descriptor, + new java.lang.String[] { "Key", "Consistency", }); + internal_static_dapr_GetStateResponseEnvelope_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_dapr_GetStateResponseEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_GetStateResponseEnvelope_descriptor, + new java.lang.String[] { "Data", "Etag", }); + internal_static_dapr_InvokeBindingEnvelope_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_dapr_InvokeBindingEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_InvokeBindingEnvelope_descriptor, + new java.lang.String[] { "Name", "Data", "Metadata", }); + internal_static_dapr_InvokeBindingEnvelope_MetadataEntry_descriptor = + internal_static_dapr_InvokeBindingEnvelope_descriptor.getNestedTypes().get(0); + internal_static_dapr_InvokeBindingEnvelope_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_InvokeBindingEnvelope_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_dapr_InvokeServiceEnvelope_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_dapr_InvokeServiceEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_InvokeServiceEnvelope_descriptor, + new java.lang.String[] { "Id", "Method", "Data", "Metadata", }); + internal_static_dapr_InvokeServiceEnvelope_MetadataEntry_descriptor = + internal_static_dapr_InvokeServiceEnvelope_descriptor.getNestedTypes().get(0); + internal_static_dapr_InvokeServiceEnvelope_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_InvokeServiceEnvelope_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_dapr_PublishEventEnvelope_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_dapr_PublishEventEnvelope_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_PublishEventEnvelope_descriptor, + new java.lang.String[] { "Topic", "Data", }); + internal_static_dapr_State_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_dapr_State_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_State_descriptor, + new java.lang.String[] { "Key", "Value", "Etag", "Metadata", "Options", }); + internal_static_dapr_State_MetadataEntry_descriptor = + internal_static_dapr_State_descriptor.getNestedTypes().get(0); + internal_static_dapr_State_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_State_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_dapr_StateOptions_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_dapr_StateOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_StateOptions_descriptor, + new java.lang.String[] { "Concurrency", "Consistency", "RetryPolicy", }); + internal_static_dapr_RetryPolicy_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_dapr_RetryPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_RetryPolicy_descriptor, + new java.lang.String[] { "Threshold", "Pattern", "Interval", }); + internal_static_dapr_StateRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_dapr_StateRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_StateRequest_descriptor, + new java.lang.String[] { "Key", "Value", "Etag", "Metadata", "Options", }); + internal_static_dapr_StateRequest_MetadataEntry_descriptor = + internal_static_dapr_StateRequest_descriptor.getNestedTypes().get(0); + internal_static_dapr_StateRequest_MetadataEntry_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_StateRequest_MetadataEntry_descriptor, + new java.lang.String[] { "Key", "Value", }); + internal_static_dapr_StateRequestOptions_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_dapr_StateRequestOptions_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_StateRequestOptions_descriptor, + new java.lang.String[] { "Concurrency", "Consistency", "RetryPolicy", }); + internal_static_dapr_StateRetryPolicy_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_dapr_StateRetryPolicy_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_dapr_StateRetryPolicy_descriptor, + new java.lang.String[] { "Threshold", "Pattern", "Interval", }); + com.google.protobuf.AnyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +}