io.dapr.v1.DaprProtos Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dapr-sdk-autogen Show documentation
Show all versions of dapr-sdk-autogen Show documentation
Auto-generated SDK for Dapr
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: dapr.proto
package io.dapr.v1;
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 InvokeServiceRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.InvokeServiceRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* Required. Callee's app id.
*
*
* string id = 1;
* @return The id.
*/
java.lang.String getId();
/**
*
* Required. Callee's app id.
*
*
* string id = 1;
* @return The bytes for id.
*/
com.google.protobuf.ByteString
getIdBytes();
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
* @return Whether the message field is set.
*/
boolean hasMessage();
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
* @return The message.
*/
io.dapr.v1.CommonProtos.InvokeRequest getMessage();
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
*/
io.dapr.v1.CommonProtos.InvokeRequestOrBuilder getMessageOrBuilder();
}
/**
*
* InvokeServiceRequest represents the request message for Service invocation.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.InvokeServiceRequest}
*/
public static final class InvokeServiceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.InvokeServiceRequest)
InvokeServiceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use InvokeServiceRequest.newBuilder() to construct.
private InvokeServiceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private InvokeServiceRequest() {
id_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new InvokeServiceRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private InvokeServiceRequest(
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 26: {
io.dapr.v1.CommonProtos.InvokeRequest.Builder subBuilder = null;
if (message_ != null) {
subBuilder = message_.toBuilder();
}
message_ = input.readMessage(io.dapr.v1.CommonProtos.InvokeRequest.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(message_);
message_ = 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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_InvokeServiceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_InvokeServiceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.InvokeServiceRequest.class, io.dapr.v1.DaprProtos.InvokeServiceRequest.Builder.class);
}
public static final int ID_FIELD_NUMBER = 1;
private volatile java.lang.Object id_;
/**
*
* Required. Callee's app id.
*
*
* string id = 1;
* @return The id.
*/
@java.lang.Override
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;
}
}
/**
*
* Required. Callee's app id.
*
*
* string id = 1;
* @return The bytes for id.
*/
@java.lang.Override
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 MESSAGE_FIELD_NUMBER = 3;
private io.dapr.v1.CommonProtos.InvokeRequest message_;
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
* @return Whether the message field is set.
*/
@java.lang.Override
public boolean hasMessage() {
return message_ != null;
}
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
* @return The message.
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.InvokeRequest getMessage() {
return message_ == null ? io.dapr.v1.CommonProtos.InvokeRequest.getDefaultInstance() : message_;
}
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.InvokeRequestOrBuilder getMessageOrBuilder() {
return getMessage();
}
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 (message_ != null) {
output.writeMessage(3, getMessage());
}
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 (message_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getMessage());
}
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.v1.DaprProtos.InvokeServiceRequest)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.InvokeServiceRequest other = (io.dapr.v1.DaprProtos.InvokeServiceRequest) obj;
if (!getId()
.equals(other.getId())) return false;
if (hasMessage() != other.hasMessage()) return false;
if (hasMessage()) {
if (!getMessage()
.equals(other.getMessage())) 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();
if (hasMessage()) {
hash = (37 * hash) + MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getMessage().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprProtos.InvokeServiceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.InvokeServiceRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.InvokeServiceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.InvokeServiceRequest 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.v1.DaprProtos.InvokeServiceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.InvokeServiceRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.InvokeServiceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.InvokeServiceRequest 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.v1.DaprProtos.InvokeServiceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.InvokeServiceRequest 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.v1.DaprProtos.InvokeServiceRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.InvokeServiceRequest 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.v1.DaprProtos.InvokeServiceRequest 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;
}
/**
*
* InvokeServiceRequest represents the request message for Service invocation.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.InvokeServiceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.InvokeServiceRequest)
io.dapr.v1.DaprProtos.InvokeServiceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_InvokeServiceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_InvokeServiceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.InvokeServiceRequest.class, io.dapr.v1.DaprProtos.InvokeServiceRequest.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.InvokeServiceRequest.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_ = "";
if (messageBuilder_ == null) {
message_ = null;
} else {
message_ = null;
messageBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_InvokeServiceRequest_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.InvokeServiceRequest getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.InvokeServiceRequest.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.InvokeServiceRequest build() {
io.dapr.v1.DaprProtos.InvokeServiceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.InvokeServiceRequest buildPartial() {
io.dapr.v1.DaprProtos.InvokeServiceRequest result = new io.dapr.v1.DaprProtos.InvokeServiceRequest(this);
result.id_ = id_;
if (messageBuilder_ == null) {
result.message_ = message_;
} else {
result.message_ = messageBuilder_.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.v1.DaprProtos.InvokeServiceRequest) {
return mergeFrom((io.dapr.v1.DaprProtos.InvokeServiceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.InvokeServiceRequest other) {
if (other == io.dapr.v1.DaprProtos.InvokeServiceRequest.getDefaultInstance()) return this;
if (!other.getId().isEmpty()) {
id_ = other.id_;
onChanged();
}
if (other.hasMessage()) {
mergeMessage(other.getMessage());
}
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.v1.DaprProtos.InvokeServiceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.InvokeServiceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object id_ = "";
/**
*
* Required. Callee's app 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;
}
}
/**
*
* Required. Callee's app id.
*
*
* 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;
}
}
/**
*
* Required. Callee's app id.
*
*
* 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;
}
/**
*
* Required. Callee's app id.
*
*
* string id = 1;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = getDefaultInstance().getId();
onChanged();
return this;
}
/**
*
* Required. Callee's app id.
*
*
* 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 io.dapr.v1.CommonProtos.InvokeRequest message_;
private com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.InvokeRequest, io.dapr.v1.CommonProtos.InvokeRequest.Builder, io.dapr.v1.CommonProtos.InvokeRequestOrBuilder> messageBuilder_;
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
* @return Whether the message field is set.
*/
public boolean hasMessage() {
return messageBuilder_ != null || message_ != null;
}
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
* @return The message.
*/
public io.dapr.v1.CommonProtos.InvokeRequest getMessage() {
if (messageBuilder_ == null) {
return message_ == null ? io.dapr.v1.CommonProtos.InvokeRequest.getDefaultInstance() : message_;
} else {
return messageBuilder_.getMessage();
}
}
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
*/
public Builder setMessage(io.dapr.v1.CommonProtos.InvokeRequest value) {
if (messageBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
message_ = value;
onChanged();
} else {
messageBuilder_.setMessage(value);
}
return this;
}
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
*/
public Builder setMessage(
io.dapr.v1.CommonProtos.InvokeRequest.Builder builderForValue) {
if (messageBuilder_ == null) {
message_ = builderForValue.build();
onChanged();
} else {
messageBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
*/
public Builder mergeMessage(io.dapr.v1.CommonProtos.InvokeRequest value) {
if (messageBuilder_ == null) {
if (message_ != null) {
message_ =
io.dapr.v1.CommonProtos.InvokeRequest.newBuilder(message_).mergeFrom(value).buildPartial();
} else {
message_ = value;
}
onChanged();
} else {
messageBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
*/
public Builder clearMessage() {
if (messageBuilder_ == null) {
message_ = null;
onChanged();
} else {
message_ = null;
messageBuilder_ = null;
}
return this;
}
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
*/
public io.dapr.v1.CommonProtos.InvokeRequest.Builder getMessageBuilder() {
onChanged();
return getMessageFieldBuilder().getBuilder();
}
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
*/
public io.dapr.v1.CommonProtos.InvokeRequestOrBuilder getMessageOrBuilder() {
if (messageBuilder_ != null) {
return messageBuilder_.getMessageOrBuilder();
} else {
return message_ == null ?
io.dapr.v1.CommonProtos.InvokeRequest.getDefaultInstance() : message_;
}
}
/**
*
* Required. message which will be delivered to callee.
*
*
* .dapr.proto.common.v1.InvokeRequest message = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.InvokeRequest, io.dapr.v1.CommonProtos.InvokeRequest.Builder, io.dapr.v1.CommonProtos.InvokeRequestOrBuilder>
getMessageFieldBuilder() {
if (messageBuilder_ == null) {
messageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.InvokeRequest, io.dapr.v1.CommonProtos.InvokeRequest.Builder, io.dapr.v1.CommonProtos.InvokeRequestOrBuilder>(
getMessage(),
getParentForChildren(),
isClean());
message_ = null;
}
return messageBuilder_;
}
@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.proto.runtime.v1.InvokeServiceRequest)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.InvokeServiceRequest)
private static final io.dapr.v1.DaprProtos.InvokeServiceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.InvokeServiceRequest();
}
public static io.dapr.v1.DaprProtos.InvokeServiceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public InvokeServiceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new InvokeServiceRequest(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.v1.DaprProtos.InvokeServiceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.GetStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
java.lang.String getStoreName();
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
com.google.protobuf.ByteString
getStoreNameBytes();
/**
*
* The key of the desired state
*
*
* string key = 2;
* @return The key.
*/
java.lang.String getKey();
/**
*
* The key of the desired state
*
*
* string key = 2;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
* The read consistency of the state store.
*
*
* .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
* @return The enum numeric value on the wire for consistency.
*/
int getConsistencyValue();
/**
*
* The read consistency of the state store.
*
*
* .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
* @return The consistency.
*/
io.dapr.v1.CommonProtos.StateOptions.StateConsistency getConsistency();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
int getMetadataCount();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
java.util.Map
getMetadataMap();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
}
/**
*
* GetStateRequest is the message to get key-value states from specific state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.GetStateRequest}
*/
public static final class GetStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.GetStateRequest)
GetStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetStateRequest.newBuilder() to construct.
private GetStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetStateRequest() {
storeName_ = "";
key_ = "";
consistency_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetStateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetStateRequest(
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();
storeName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 24: {
int rawValue = input.readEnum();
consistency_ = rawValue;
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateRequest_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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.GetStateRequest.class, io.dapr.v1.DaprProtos.GetStateRequest.Builder.class);
}
public static final int STORE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object storeName_;
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
@java.lang.Override
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
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();
storeName_ = s;
return s;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 2;
private volatile java.lang.Object key_;
/**
*
* The key of the desired state
*
*
* string key = 2;
* @return The key.
*/
@java.lang.Override
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;
}
}
/**
*
* The key of the desired state
*
*
* string key = 2;
* @return The bytes for key.
*/
@java.lang.Override
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 = 3;
private int consistency_;
/**
*
* The read consistency of the state store.
*
*
* .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The read consistency of the state store.
*
*
* .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
* @return The consistency.
*/
@java.lang.Override public io.dapr.v1.CommonProtos.StateOptions.StateConsistency getConsistency() {
@SuppressWarnings("deprecation")
io.dapr.v1.CommonProtos.StateOptions.StateConsistency result = io.dapr.v1.CommonProtos.StateOptions.StateConsistency.valueOf(consistency_);
return result == null ? io.dapr.v1.CommonProtos.StateOptions.StateConsistency.UNRECOGNIZED : result;
}
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateRequest_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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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 (!getStoreNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storeName_);
}
if (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
}
if (consistency_ != io.dapr.v1.CommonProtos.StateOptions.StateConsistency.CONSISTENCY_UNSPECIFIED.getNumber()) {
output.writeEnum(3, consistency_);
}
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 (!getStoreNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storeName_);
}
if (!getKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
}
if (consistency_ != io.dapr.v1.CommonProtos.StateOptions.StateConsistency.CONSISTENCY_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, consistency_);
}
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.v1.DaprProtos.GetStateRequest)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.GetStateRequest other = (io.dapr.v1.DaprProtos.GetStateRequest) obj;
if (!getStoreName()
.equals(other.getStoreName())) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (consistency_ != other.consistency_) 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) + STORE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getStoreName().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + CONSISTENCY_FIELD_NUMBER;
hash = (53 * hash) + consistency_;
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.v1.DaprProtos.GetStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.GetStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetStateRequest 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.v1.DaprProtos.GetStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.GetStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetStateRequest 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.v1.DaprProtos.GetStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetStateRequest 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.v1.DaprProtos.GetStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetStateRequest 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.v1.DaprProtos.GetStateRequest 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;
}
/**
*
* GetStateRequest is the message to get key-value states from specific state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.GetStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.GetStateRequest)
io.dapr.v1.DaprProtos.GetStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateRequest_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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.GetStateRequest.class, io.dapr.v1.DaprProtos.GetStateRequest.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.GetStateRequest.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();
storeName_ = "";
key_ = "";
consistency_ = 0;
internalGetMutableMetadata().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateRequest_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetStateRequest getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.GetStateRequest.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetStateRequest build() {
io.dapr.v1.DaprProtos.GetStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetStateRequest buildPartial() {
io.dapr.v1.DaprProtos.GetStateRequest result = new io.dapr.v1.DaprProtos.GetStateRequest(this);
int from_bitField0_ = bitField0_;
result.storeName_ = storeName_;
result.key_ = key_;
result.consistency_ = consistency_;
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.v1.DaprProtos.GetStateRequest) {
return mergeFrom((io.dapr.v1.DaprProtos.GetStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.GetStateRequest other) {
if (other == io.dapr.v1.DaprProtos.GetStateRequest.getDefaultInstance()) return this;
if (!other.getStoreName().isEmpty()) {
storeName_ = other.storeName_;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (other.consistency_ != 0) {
setConsistencyValue(other.getConsistencyValue());
}
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.v1.DaprProtos.GetStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.GetStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object storeName_ = "";
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
storeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @param value The storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
storeName_ = value;
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return This builder for chaining.
*/
public Builder clearStoreName() {
storeName_ = getDefaultInstance().getStoreName();
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @param value The bytes for storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
storeName_ = value;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
*
* The key of the desired state
*
*
* string key = 2;
* @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;
}
}
/**
*
* The key of the desired state
*
*
* string key = 2;
* @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;
}
}
/**
*
* The key of the desired state
*
*
* string key = 2;
* @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;
}
/**
*
* The key of the desired state
*
*
* string key = 2;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
*
* The key of the desired state
*
*
* string key = 2;
* @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 int consistency_ = 0;
/**
*
* The read consistency of the state store.
*
*
* .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
* @return The enum numeric value on the wire for consistency.
*/
@java.lang.Override public int getConsistencyValue() {
return consistency_;
}
/**
*
* The read consistency of the state store.
*
*
* .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
* @param value The enum numeric value on the wire for consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistencyValue(int value) {
consistency_ = value;
onChanged();
return this;
}
/**
*
* The read consistency of the state store.
*
*
* .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
* @return The consistency.
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.StateOptions.StateConsistency getConsistency() {
@SuppressWarnings("deprecation")
io.dapr.v1.CommonProtos.StateOptions.StateConsistency result = io.dapr.v1.CommonProtos.StateOptions.StateConsistency.valueOf(consistency_);
return result == null ? io.dapr.v1.CommonProtos.StateOptions.StateConsistency.UNRECOGNIZED : result;
}
/**
*
* The read consistency of the state store.
*
*
* .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
* @param value The consistency to set.
* @return This builder for chaining.
*/
public Builder setConsistency(io.dapr.v1.CommonProtos.StateOptions.StateConsistency value) {
if (value == null) {
throw new NullPointerException();
}
consistency_ = value.getNumber();
onChanged();
return this;
}
/**
*
* The read consistency of the state store.
*
*
* .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
* @return This builder for chaining.
*/
public Builder clearConsistency() {
consistency_ = 0;
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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* 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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* 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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* 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.proto.runtime.v1.GetStateRequest)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.GetStateRequest)
private static final io.dapr.v1.DaprProtos.GetStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.GetStateRequest();
}
public static io.dapr.v1.DaprProtos.GetStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetStateRequest(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.v1.DaprProtos.GetStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetBulkStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.GetBulkStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
java.lang.String getStoreName();
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
com.google.protobuf.ByteString
getStoreNameBytes();
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @return A list containing the keys.
*/
java.util.List
getKeysList();
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @return The count of keys.
*/
int getKeysCount();
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
java.lang.String getKeys(int index);
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @param index The index of the value to return.
* @return The bytes of the keys at the given index.
*/
com.google.protobuf.ByteString
getKeysBytes(int index);
/**
*
* The number of parallel operations executed on the state store for a get operation.
*
*
* int32 parallelism = 3;
* @return The parallelism.
*/
int getParallelism();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
int getMetadataCount();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
java.util.Map
getMetadataMap();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
}
/**
*
* GetBulkStateRequest is the message to get a list of key-value states from specific state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.GetBulkStateRequest}
*/
public static final class GetBulkStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.GetBulkStateRequest)
GetBulkStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBulkStateRequest.newBuilder() to construct.
private GetBulkStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBulkStateRequest() {
storeName_ = "";
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetBulkStateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetBulkStateRequest(
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();
storeName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
keys_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000001;
}
keys_.add(s);
break;
}
case 24: {
parallelism_ = input.readInt32();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
keys_ = keys_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetBulkStateRequest_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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetBulkStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.GetBulkStateRequest.class, io.dapr.v1.DaprProtos.GetBulkStateRequest.Builder.class);
}
public static final int STORE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object storeName_;
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
@java.lang.Override
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
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();
storeName_ = s;
return s;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEYS_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList keys_;
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @return A list containing the keys.
*/
public com.google.protobuf.ProtocolStringList
getKeysList() {
return keys_;
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @return The count of keys.
*/
public int getKeysCount() {
return keys_.size();
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
public java.lang.String getKeys(int index) {
return keys_.get(index);
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @param index The index of the value to return.
* @return The bytes of the keys at the given index.
*/
public com.google.protobuf.ByteString
getKeysBytes(int index) {
return keys_.getByteString(index);
}
public static final int PARALLELISM_FIELD_NUMBER = 3;
private int parallelism_;
/**
*
* The number of parallel operations executed on the state store for a get operation.
*
*
* int32 parallelism = 3;
* @return The parallelism.
*/
@java.lang.Override
public int getParallelism() {
return parallelism_;
}
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetBulkStateRequest_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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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 (!getStoreNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storeName_);
}
for (int i = 0; i < keys_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keys_.getRaw(i));
}
if (parallelism_ != 0) {
output.writeInt32(3, parallelism_);
}
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 (!getStoreNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storeName_);
}
{
int dataSize = 0;
for (int i = 0; i < keys_.size(); i++) {
dataSize += computeStringSizeNoTag(keys_.getRaw(i));
}
size += dataSize;
size += 1 * getKeysList().size();
}
if (parallelism_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, parallelism_);
}
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.v1.DaprProtos.GetBulkStateRequest)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.GetBulkStateRequest other = (io.dapr.v1.DaprProtos.GetBulkStateRequest) obj;
if (!getStoreName()
.equals(other.getStoreName())) return false;
if (!getKeysList()
.equals(other.getKeysList())) return false;
if (getParallelism()
!= other.getParallelism()) 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) + STORE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getStoreName().hashCode();
if (getKeysCount() > 0) {
hash = (37 * hash) + KEYS_FIELD_NUMBER;
hash = (53 * hash) + getKeysList().hashCode();
}
hash = (37 * hash) + PARALLELISM_FIELD_NUMBER;
hash = (53 * hash) + getParallelism();
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.v1.DaprProtos.GetBulkStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetBulkStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.GetBulkStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetBulkStateRequest 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.v1.DaprProtos.GetBulkStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetBulkStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.GetBulkStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetBulkStateRequest 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.v1.DaprProtos.GetBulkStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetBulkStateRequest 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.v1.DaprProtos.GetBulkStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetBulkStateRequest 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.v1.DaprProtos.GetBulkStateRequest 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;
}
/**
*
* GetBulkStateRequest is the message to get a list of key-value states from specific state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.GetBulkStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.GetBulkStateRequest)
io.dapr.v1.DaprProtos.GetBulkStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetBulkStateRequest_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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetBulkStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.GetBulkStateRequest.class, io.dapr.v1.DaprProtos.GetBulkStateRequest.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.GetBulkStateRequest.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();
storeName_ = "";
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
parallelism_ = 0;
internalGetMutableMetadata().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetBulkStateRequest_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetBulkStateRequest getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.GetBulkStateRequest.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetBulkStateRequest build() {
io.dapr.v1.DaprProtos.GetBulkStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetBulkStateRequest buildPartial() {
io.dapr.v1.DaprProtos.GetBulkStateRequest result = new io.dapr.v1.DaprProtos.GetBulkStateRequest(this);
int from_bitField0_ = bitField0_;
result.storeName_ = storeName_;
if (((bitField0_ & 0x00000001) != 0)) {
keys_ = keys_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.keys_ = keys_;
result.parallelism_ = parallelism_;
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.v1.DaprProtos.GetBulkStateRequest) {
return mergeFrom((io.dapr.v1.DaprProtos.GetBulkStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.GetBulkStateRequest other) {
if (other == io.dapr.v1.DaprProtos.GetBulkStateRequest.getDefaultInstance()) return this;
if (!other.getStoreName().isEmpty()) {
storeName_ = other.storeName_;
onChanged();
}
if (!other.keys_.isEmpty()) {
if (keys_.isEmpty()) {
keys_ = other.keys_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureKeysIsMutable();
keys_.addAll(other.keys_);
}
onChanged();
}
if (other.getParallelism() != 0) {
setParallelism(other.getParallelism());
}
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.v1.DaprProtos.GetBulkStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.GetBulkStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object storeName_ = "";
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
storeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @param value The storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
storeName_ = value;
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return This builder for chaining.
*/
public Builder clearStoreName() {
storeName_ = getDefaultInstance().getStoreName();
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @param value The bytes for storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
storeName_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureKeysIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
keys_ = new com.google.protobuf.LazyStringArrayList(keys_);
bitField0_ |= 0x00000001;
}
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @return A list containing the keys.
*/
public com.google.protobuf.ProtocolStringList
getKeysList() {
return keys_.getUnmodifiableView();
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @return The count of keys.
*/
public int getKeysCount() {
return keys_.size();
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @param index The index of the element to return.
* @return The keys at the given index.
*/
public java.lang.String getKeys(int index) {
return keys_.get(index);
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @param index The index of the value to return.
* @return The bytes of the keys at the given index.
*/
public com.google.protobuf.ByteString
getKeysBytes(int index) {
return keys_.getByteString(index);
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @param index The index to set the value at.
* @param value The keys to set.
* @return This builder for chaining.
*/
public Builder setKeys(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
keys_.set(index, value);
onChanged();
return this;
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @param value The keys to add.
* @return This builder for chaining.
*/
public Builder addKeys(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureKeysIsMutable();
keys_.add(value);
onChanged();
return this;
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @param values The keys to add.
* @return This builder for chaining.
*/
public Builder addAllKeys(
java.lang.Iterable values) {
ensureKeysIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, keys_);
onChanged();
return this;
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @return This builder for chaining.
*/
public Builder clearKeys() {
keys_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
*
* The keys to get.
*
*
* repeated string keys = 2;
* @param value The bytes of the keys to add.
* @return This builder for chaining.
*/
public Builder addKeysBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
ensureKeysIsMutable();
keys_.add(value);
onChanged();
return this;
}
private int parallelism_ ;
/**
*
* The number of parallel operations executed on the state store for a get operation.
*
*
* int32 parallelism = 3;
* @return The parallelism.
*/
@java.lang.Override
public int getParallelism() {
return parallelism_;
}
/**
*
* The number of parallel operations executed on the state store for a get operation.
*
*
* int32 parallelism = 3;
* @param value The parallelism to set.
* @return This builder for chaining.
*/
public Builder setParallelism(int value) {
parallelism_ = value;
onChanged();
return this;
}
/**
*
* The number of parallel operations executed on the state store for a get operation.
*
*
* int32 parallelism = 3;
* @return This builder for chaining.
*/
public Builder clearParallelism() {
parallelism_ = 0;
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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 4;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* 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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* 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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* 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.proto.runtime.v1.GetBulkStateRequest)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.GetBulkStateRequest)
private static final io.dapr.v1.DaprProtos.GetBulkStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.GetBulkStateRequest();
}
public static io.dapr.v1.DaprProtos.GetBulkStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetBulkStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetBulkStateRequest(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.v1.DaprProtos.GetBulkStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetBulkStateResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.GetBulkStateResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
java.util.List
getItemsList();
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
io.dapr.v1.DaprProtos.BulkStateItem getItems(int index);
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
int getItemsCount();
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
java.util.List extends io.dapr.v1.DaprProtos.BulkStateItemOrBuilder>
getItemsOrBuilderList();
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
io.dapr.v1.DaprProtos.BulkStateItemOrBuilder getItemsOrBuilder(
int index);
}
/**
*
* GetBulkStateResponse is the response conveying the list of state values.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.GetBulkStateResponse}
*/
public static final class GetBulkStateResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.GetBulkStateResponse)
GetBulkStateResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetBulkStateResponse.newBuilder() to construct.
private GetBulkStateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetBulkStateResponse() {
items_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetBulkStateResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetBulkStateResponse(
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)) {
items_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
items_.add(
input.readMessage(io.dapr.v1.DaprProtos.BulkStateItem.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)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetBulkStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetBulkStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.GetBulkStateResponse.class, io.dapr.v1.DaprProtos.GetBulkStateResponse.Builder.class);
}
public static final int ITEMS_FIELD_NUMBER = 1;
private java.util.List items_;
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
@java.lang.Override
public java.util.List getItemsList() {
return items_;
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
@java.lang.Override
public java.util.List extends io.dapr.v1.DaprProtos.BulkStateItemOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
@java.lang.Override
public int getItemsCount() {
return items_.size();
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
@java.lang.Override
public io.dapr.v1.DaprProtos.BulkStateItem getItems(int index) {
return items_.get(index);
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
@java.lang.Override
public io.dapr.v1.DaprProtos.BulkStateItemOrBuilder getItemsOrBuilder(
int index) {
return items_.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 < items_.size(); i++) {
output.writeMessage(1, items_.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 < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, items_.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.v1.DaprProtos.GetBulkStateResponse)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.GetBulkStateResponse other = (io.dapr.v1.DaprProtos.GetBulkStateResponse) obj;
if (!getItemsList()
.equals(other.getItemsList())) 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 (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprProtos.GetBulkStateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetBulkStateResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.GetBulkStateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetBulkStateResponse 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.v1.DaprProtos.GetBulkStateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetBulkStateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.GetBulkStateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetBulkStateResponse 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.v1.DaprProtos.GetBulkStateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetBulkStateResponse 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.v1.DaprProtos.GetBulkStateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetBulkStateResponse 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.v1.DaprProtos.GetBulkStateResponse 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;
}
/**
*
* GetBulkStateResponse is the response conveying the list of state values.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.GetBulkStateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.GetBulkStateResponse)
io.dapr.v1.DaprProtos.GetBulkStateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetBulkStateResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetBulkStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.GetBulkStateResponse.class, io.dapr.v1.DaprProtos.GetBulkStateResponse.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.GetBulkStateResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getItemsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
itemsBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetBulkStateResponse_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetBulkStateResponse getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.GetBulkStateResponse.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetBulkStateResponse build() {
io.dapr.v1.DaprProtos.GetBulkStateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetBulkStateResponse buildPartial() {
io.dapr.v1.DaprProtos.GetBulkStateResponse result = new io.dapr.v1.DaprProtos.GetBulkStateResponse(this);
int from_bitField0_ = bitField0_;
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.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.v1.DaprProtos.GetBulkStateResponse) {
return mergeFrom((io.dapr.v1.DaprProtos.GetBulkStateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.GetBulkStateResponse other) {
if (other == io.dapr.v1.DaprProtos.GetBulkStateResponse.getDefaultInstance()) return this;
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000001);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
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.v1.DaprProtos.GetBulkStateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.GetBulkStateResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.DaprProtos.BulkStateItem, io.dapr.v1.DaprProtos.BulkStateItem.Builder, io.dapr.v1.DaprProtos.BulkStateItemOrBuilder> itemsBuilder_;
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public io.dapr.v1.DaprProtos.BulkStateItem getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public Builder setItems(
int index, io.dapr.v1.DaprProtos.BulkStateItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public Builder setItems(
int index, io.dapr.v1.DaprProtos.BulkStateItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public Builder addItems(io.dapr.v1.DaprProtos.BulkStateItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public Builder addItems(
int index, io.dapr.v1.DaprProtos.BulkStateItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public Builder addItems(
io.dapr.v1.DaprProtos.BulkStateItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public Builder addItems(
int index, io.dapr.v1.DaprProtos.BulkStateItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public Builder addAllItems(
java.lang.Iterable extends io.dapr.v1.DaprProtos.BulkStateItem> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public io.dapr.v1.DaprProtos.BulkStateItem.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public io.dapr.v1.DaprProtos.BulkStateItemOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public java.util.List extends io.dapr.v1.DaprProtos.BulkStateItemOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public io.dapr.v1.DaprProtos.BulkStateItem.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
io.dapr.v1.DaprProtos.BulkStateItem.getDefaultInstance());
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public io.dapr.v1.DaprProtos.BulkStateItem.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, io.dapr.v1.DaprProtos.BulkStateItem.getDefaultInstance());
}
/**
*
* The list of items containing the keys to get values for.
*
*
* repeated .dapr.proto.runtime.v1.BulkStateItem items = 1;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.DaprProtos.BulkStateItem, io.dapr.v1.DaprProtos.BulkStateItem.Builder, io.dapr.v1.DaprProtos.BulkStateItemOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.DaprProtos.BulkStateItem, io.dapr.v1.DaprProtos.BulkStateItem.Builder, io.dapr.v1.DaprProtos.BulkStateItemOrBuilder>(
items_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
@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.proto.runtime.v1.GetBulkStateResponse)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.GetBulkStateResponse)
private static final io.dapr.v1.DaprProtos.GetBulkStateResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.GetBulkStateResponse();
}
public static io.dapr.v1.DaprProtos.GetBulkStateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetBulkStateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetBulkStateResponse(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.v1.DaprProtos.GetBulkStateResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BulkStateItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.BulkStateItem)
com.google.protobuf.MessageOrBuilder {
/**
*
* state item key
*
*
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
*
* state item key
*
*
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
* The byte array data
*
*
* bytes data = 2;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 3;
* @return The etag.
*/
java.lang.String getEtag();
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 3;
* @return The bytes for etag.
*/
com.google.protobuf.ByteString
getEtagBytes();
/**
*
* The error that was returned from the state store in case of a failed get operation.
*
*
* string error = 4;
* @return The error.
*/
java.lang.String getError();
/**
*
* The error that was returned from the state store in case of a failed get operation.
*
*
* string error = 4;
* @return The bytes for error.
*/
com.google.protobuf.ByteString
getErrorBytes();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
int getMetadataCount();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
java.util.Map
getMetadataMap();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
}
/**
*
* BulkStateItem is the response item for a bulk get operation.
* Return values include the item key, data and etag.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.BulkStateItem}
*/
public static final class BulkStateItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.BulkStateItem)
BulkStateItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use BulkStateItem.newBuilder() to construct.
private BulkStateItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private BulkStateItem() {
key_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
etag_ = "";
error_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new BulkStateItem();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BulkStateItem(
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: {
data_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
etag_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
error_ = s;
break;
}
case 42: {
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_BulkStateItem_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_BulkStateItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.BulkStateItem.class, io.dapr.v1.DaprProtos.BulkStateItem.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
*
* state item key
*
*
* string key = 1;
* @return The key.
*/
@java.lang.Override
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;
}
}
/**
*
* state item key
*
*
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
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 DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
*
* The byte array data
*
*
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int ETAG_FIELD_NUMBER = 3;
private volatile java.lang.Object etag_;
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 3;
* @return The etag.
*/
@java.lang.Override
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;
}
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 3;
* @return The bytes for etag.
*/
@java.lang.Override
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 ERROR_FIELD_NUMBER = 4;
private volatile java.lang.Object error_;
/**
*
* The error that was returned from the state store in case of a failed get operation.
*
*
* string error = 4;
* @return The error.
*/
@java.lang.Override
public java.lang.String getError() {
java.lang.Object ref = error_;
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();
error_ = s;
return s;
}
}
/**
*
* The error that was returned from the state store in case of a failed get operation.
*
*
* string error = 4;
* @return The bytes for error.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
error_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METADATA_FIELD_NUMBER = 5;
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_BulkStateItem_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();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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 (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_);
}
if (!data_.isEmpty()) {
output.writeBytes(2, data_);
}
if (!getEtagBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_);
}
if (!getErrorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, error_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetadata(),
MetadataDefaultEntryHolder.defaultEntry,
5);
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 (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, data_);
}
if (!getEtagBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_);
}
if (!getErrorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, error_);
}
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(5, 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.v1.DaprProtos.BulkStateItem)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.BulkStateItem other = (io.dapr.v1.DaprProtos.BulkStateItem) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getData()
.equals(other.getData())) return false;
if (!getEtag()
.equals(other.getEtag())) return false;
if (!getError()
.equals(other.getError())) 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) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + ETAG_FIELD_NUMBER;
hash = (53 * hash) + getEtag().hashCode();
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().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.v1.DaprProtos.BulkStateItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.BulkStateItem parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.BulkStateItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.BulkStateItem 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.v1.DaprProtos.BulkStateItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.BulkStateItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.BulkStateItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.BulkStateItem 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.v1.DaprProtos.BulkStateItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.BulkStateItem 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.v1.DaprProtos.BulkStateItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.BulkStateItem 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.v1.DaprProtos.BulkStateItem 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;
}
/**
*
* BulkStateItem is the response item for a bulk get operation.
* Return values include the item key, data and etag.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.BulkStateItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.BulkStateItem)
io.dapr.v1.DaprProtos.BulkStateItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_BulkStateItem_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_BulkStateItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.BulkStateItem.class, io.dapr.v1.DaprProtos.BulkStateItem.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.BulkStateItem.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_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
etag_ = "";
error_ = "";
internalGetMutableMetadata().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_BulkStateItem_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.BulkStateItem getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.BulkStateItem.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.BulkStateItem build() {
io.dapr.v1.DaprProtos.BulkStateItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.BulkStateItem buildPartial() {
io.dapr.v1.DaprProtos.BulkStateItem result = new io.dapr.v1.DaprProtos.BulkStateItem(this);
int from_bitField0_ = bitField0_;
result.key_ = key_;
result.data_ = data_;
result.etag_ = etag_;
result.error_ = error_;
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.v1.DaprProtos.BulkStateItem) {
return mergeFrom((io.dapr.v1.DaprProtos.BulkStateItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.BulkStateItem other) {
if (other == io.dapr.v1.DaprProtos.BulkStateItem.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (!other.getEtag().isEmpty()) {
etag_ = other.etag_;
onChanged();
}
if (!other.getError().isEmpty()) {
error_ = other.error_;
onChanged();
}
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.v1.DaprProtos.BulkStateItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.BulkStateItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object key_ = "";
/**
*
* state item 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;
}
}
/**
*
* state item key
*
*
* 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;
}
}
/**
*
* state item key
*
*
* 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;
}
/**
*
* state item key
*
*
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
*
* state item key
*
*
* 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.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The byte array data
*
*
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* The byte array data
*
*
* bytes data = 2;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* The byte array data
*
*
* bytes data = 2;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.lang.Object etag_ = "";
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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;
}
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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;
}
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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;
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 3;
* @return This builder for chaining.
*/
public Builder clearEtag() {
etag_ = getDefaultInstance().getEtag();
onChanged();
return this;
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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 java.lang.Object error_ = "";
/**
*
* The error that was returned from the state store in case of a failed get operation.
*
*
* string error = 4;
* @return The error.
*/
public java.lang.String getError() {
java.lang.Object ref = error_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
error_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The error that was returned from the state store in case of a failed get operation.
*
*
* string error = 4;
* @return The bytes for error.
*/
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
error_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The error that was returned from the state store in case of a failed get operation.
*
*
* string error = 4;
* @param value The error to set.
* @return This builder for chaining.
*/
public Builder setError(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
return this;
}
/**
*
* The error that was returned from the state store in case of a failed get operation.
*
*
* string error = 4;
* @return This builder for chaining.
*/
public Builder clearError() {
error_ = getDefaultInstance().getError();
onChanged();
return this;
}
/**
*
* The error that was returned from the state store in case of a failed get operation.
*
*
* string error = 4;
* @param value The bytes for error to set.
* @return This builder for chaining.
*/
public Builder setErrorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
error_ = 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();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
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();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
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;
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 5;
*/
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.proto.runtime.v1.BulkStateItem)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.BulkStateItem)
private static final io.dapr.v1.DaprProtos.BulkStateItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.BulkStateItem();
}
public static io.dapr.v1.DaprProtos.BulkStateItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public BulkStateItem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BulkStateItem(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.v1.DaprProtos.BulkStateItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface GetStateResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.GetStateResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* The byte array data
*
*
* bytes data = 1;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 2;
* @return The etag.
*/
java.lang.String getEtag();
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 2;
* @return The bytes for etag.
*/
com.google.protobuf.ByteString
getEtagBytes();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
int getMetadataCount();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
java.util.Map
getMetadataMap();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
}
/**
*
* GetStateResponse is the response conveying the state value and etag.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.GetStateResponse}
*/
public static final class GetStateResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.GetStateResponse)
GetStateResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetStateResponse.newBuilder() to construct.
private GetStateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetStateResponse() {
data_ = com.google.protobuf.ByteString.EMPTY;
etag_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetStateResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetStateResponse(
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: {
data_ = input.readBytes();
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
etag_ = s;
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateResponse_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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.GetStateResponse.class, io.dapr.v1.DaprProtos.GetStateResponse.Builder.class);
}
public static final int DATA_FIELD_NUMBER = 1;
private com.google.protobuf.ByteString data_;
/**
*
* The byte array data
*
*
* bytes data = 1;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int ETAG_FIELD_NUMBER = 2;
private volatile java.lang.Object etag_;
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 2;
* @return The etag.
*/
@java.lang.Override
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;
}
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 2;
* @return The bytes for etag.
*/
@java.lang.Override
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 = 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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateResponse_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();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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_.isEmpty()) {
output.writeBytes(1, data_);
}
if (!getEtagBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, etag_);
}
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 (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, data_);
}
if (!getEtagBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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(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.v1.DaprProtos.GetStateResponse)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.GetStateResponse other = (io.dapr.v1.DaprProtos.GetStateResponse) obj;
if (!getData()
.equals(other.getData())) return false;
if (!getEtag()
.equals(other.getEtag())) 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) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().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();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprProtos.GetStateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetStateResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.GetStateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetStateResponse 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.v1.DaprProtos.GetStateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.GetStateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.GetStateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetStateResponse 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.v1.DaprProtos.GetStateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetStateResponse 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.v1.DaprProtos.GetStateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.GetStateResponse 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.v1.DaprProtos.GetStateResponse 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;
}
/**
*
* GetStateResponse is the response conveying the state value and etag.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.GetStateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.GetStateResponse)
io.dapr.v1.DaprProtos.GetStateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateResponse_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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.GetStateResponse.class, io.dapr.v1.DaprProtos.GetStateResponse.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.GetStateResponse.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();
data_ = com.google.protobuf.ByteString.EMPTY;
etag_ = "";
internalGetMutableMetadata().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_GetStateResponse_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetStateResponse getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.GetStateResponse.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetStateResponse build() {
io.dapr.v1.DaprProtos.GetStateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.GetStateResponse buildPartial() {
io.dapr.v1.DaprProtos.GetStateResponse result = new io.dapr.v1.DaprProtos.GetStateResponse(this);
int from_bitField0_ = bitField0_;
result.data_ = data_;
result.etag_ = etag_;
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.v1.DaprProtos.GetStateResponse) {
return mergeFrom((io.dapr.v1.DaprProtos.GetStateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.GetStateResponse other) {
if (other == io.dapr.v1.DaprProtos.GetStateResponse.getDefaultInstance()) return this;
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (!other.getEtag().isEmpty()) {
etag_ = other.etag_;
onChanged();
}
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.v1.DaprProtos.GetStateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.GetStateResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The byte array data
*
*
* bytes data = 1;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* The byte array data
*
*
* bytes data = 1;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* The byte array data
*
*
* bytes data = 1;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.lang.Object etag_ = "";
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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;
}
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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;
}
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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;
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 2;
* @return This builder for chaining.
*/
public Builder clearEtag() {
etag_ = getDefaultInstance().getEtag();
onChanged();
return this;
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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 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();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to app.
*
*
* 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();
}
/**
*
* The metadata which will be sent to app.
*
*
* 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;
}
/**
*
* The metadata which will be sent to app.
*
*
* 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.proto.runtime.v1.GetStateResponse)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.GetStateResponse)
private static final io.dapr.v1.DaprProtos.GetStateResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.GetStateResponse();
}
public static io.dapr.v1.DaprProtos.GetStateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetStateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetStateResponse(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.v1.DaprProtos.GetStateResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.DeleteStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
java.lang.String getStoreName();
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
com.google.protobuf.ByteString
getStoreNameBytes();
/**
*
* The key of the desired state
*
*
* string key = 2;
* @return The key.
*/
java.lang.String getKey();
/**
*
* The key of the desired state
*
*
* string key = 2;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
* @return Whether the etag field is set.
*/
boolean hasEtag();
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
* @return The etag.
*/
io.dapr.v1.CommonProtos.Etag getEtag();
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
*/
io.dapr.v1.CommonProtos.EtagOrBuilder getEtagOrBuilder();
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
* @return Whether the options field is set.
*/
boolean hasOptions();
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
* @return The options.
*/
io.dapr.v1.CommonProtos.StateOptions getOptions();
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
*/
io.dapr.v1.CommonProtos.StateOptionsOrBuilder getOptionsOrBuilder();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
int getMetadataCount();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
java.util.Map
getMetadataMap();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
}
/**
*
* DeleteStateRequest is the message to delete key-value states in the specific state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.DeleteStateRequest}
*/
public static final class DeleteStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.DeleteStateRequest)
DeleteStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteStateRequest.newBuilder() to construct.
private DeleteStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteStateRequest() {
storeName_ = "";
key_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteStateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteStateRequest(
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();
storeName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
key_ = s;
break;
}
case 26: {
io.dapr.v1.CommonProtos.Etag.Builder subBuilder = null;
if (etag_ != null) {
subBuilder = etag_.toBuilder();
}
etag_ = input.readMessage(io.dapr.v1.CommonProtos.Etag.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(etag_);
etag_ = subBuilder.buildPartial();
}
break;
}
case 34: {
io.dapr.v1.CommonProtos.StateOptions.Builder subBuilder = null;
if (options_ != null) {
subBuilder = options_.toBuilder();
}
options_ = input.readMessage(io.dapr.v1.CommonProtos.StateOptions.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(options_);
options_ = subBuilder.buildPartial();
}
break;
}
case 42: {
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_DeleteStateRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_DeleteStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.DeleteStateRequest.class, io.dapr.v1.DaprProtos.DeleteStateRequest.Builder.class);
}
public static final int STORE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object storeName_;
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
@java.lang.Override
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
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();
storeName_ = s;
return s;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int KEY_FIELD_NUMBER = 2;
private volatile java.lang.Object key_;
/**
*
* The key of the desired state
*
*
* string key = 2;
* @return The key.
*/
@java.lang.Override
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;
}
}
/**
*
* The key of the desired state
*
*
* string key = 2;
* @return The bytes for key.
*/
@java.lang.Override
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 = 3;
private io.dapr.v1.CommonProtos.Etag etag_;
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
* @return Whether the etag field is set.
*/
@java.lang.Override
public boolean hasEtag() {
return etag_ != null;
}
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
* @return The etag.
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.Etag getEtag() {
return etag_ == null ? io.dapr.v1.CommonProtos.Etag.getDefaultInstance() : etag_;
}
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.EtagOrBuilder getEtagOrBuilder() {
return getEtag();
}
public static final int OPTIONS_FIELD_NUMBER = 4;
private io.dapr.v1.CommonProtos.StateOptions options_;
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
* @return Whether the options field is set.
*/
@java.lang.Override
public boolean hasOptions() {
return options_ != null;
}
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
* @return The options.
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.StateOptions getOptions() {
return options_ == null ? io.dapr.v1.CommonProtos.StateOptions.getDefaultInstance() : options_;
}
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.StateOptionsOrBuilder getOptionsOrBuilder() {
return getOptions();
}
public static final int METADATA_FIELD_NUMBER = 5;
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_DeleteStateRequest_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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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 (!getStoreNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storeName_);
}
if (!getKeyBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, key_);
}
if (etag_ != null) {
output.writeMessage(3, getEtag());
}
if (options_ != null) {
output.writeMessage(4, getOptions());
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetadata(),
MetadataDefaultEntryHolder.defaultEntry,
5);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getStoreNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storeName_);
}
if (!getKeyBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, key_);
}
if (etag_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getEtag());
}
if (options_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getOptions());
}
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(5, 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.v1.DaprProtos.DeleteStateRequest)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.DeleteStateRequest other = (io.dapr.v1.DaprProtos.DeleteStateRequest) obj;
if (!getStoreName()
.equals(other.getStoreName())) return false;
if (!getKey()
.equals(other.getKey())) return false;
if (hasEtag() != other.hasEtag()) return false;
if (hasEtag()) {
if (!getEtag()
.equals(other.getEtag())) return false;
}
if (hasOptions() != other.hasOptions()) return false;
if (hasOptions()) {
if (!getOptions()
.equals(other.getOptions())) 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) + STORE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getStoreName().hashCode();
hash = (37 * hash) + KEY_FIELD_NUMBER;
hash = (53 * hash) + getKey().hashCode();
if (hasEtag()) {
hash = (37 * hash) + ETAG_FIELD_NUMBER;
hash = (53 * hash) + getEtag().hashCode();
}
if (hasOptions()) {
hash = (37 * hash) + OPTIONS_FIELD_NUMBER;
hash = (53 * hash) + getOptions().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.v1.DaprProtos.DeleteStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.DeleteStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.DeleteStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.DeleteStateRequest 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.v1.DaprProtos.DeleteStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.DeleteStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.DeleteStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.DeleteStateRequest 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.v1.DaprProtos.DeleteStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.DeleteStateRequest 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.v1.DaprProtos.DeleteStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.DeleteStateRequest 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.v1.DaprProtos.DeleteStateRequest 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;
}
/**
*
* DeleteStateRequest is the message to delete key-value states in the specific state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.DeleteStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.DeleteStateRequest)
io.dapr.v1.DaprProtos.DeleteStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_DeleteStateRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_DeleteStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.DeleteStateRequest.class, io.dapr.v1.DaprProtos.DeleteStateRequest.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.DeleteStateRequest.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();
storeName_ = "";
key_ = "";
if (etagBuilder_ == null) {
etag_ = null;
} else {
etag_ = null;
etagBuilder_ = null;
}
if (optionsBuilder_ == null) {
options_ = null;
} else {
options_ = null;
optionsBuilder_ = null;
}
internalGetMutableMetadata().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_DeleteStateRequest_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.DeleteStateRequest getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.DeleteStateRequest.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.DeleteStateRequest build() {
io.dapr.v1.DaprProtos.DeleteStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.DeleteStateRequest buildPartial() {
io.dapr.v1.DaprProtos.DeleteStateRequest result = new io.dapr.v1.DaprProtos.DeleteStateRequest(this);
int from_bitField0_ = bitField0_;
result.storeName_ = storeName_;
result.key_ = key_;
if (etagBuilder_ == null) {
result.etag_ = etag_;
} else {
result.etag_ = etagBuilder_.build();
}
if (optionsBuilder_ == null) {
result.options_ = options_;
} else {
result.options_ = optionsBuilder_.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.v1.DaprProtos.DeleteStateRequest) {
return mergeFrom((io.dapr.v1.DaprProtos.DeleteStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.DeleteStateRequest other) {
if (other == io.dapr.v1.DaprProtos.DeleteStateRequest.getDefaultInstance()) return this;
if (!other.getStoreName().isEmpty()) {
storeName_ = other.storeName_;
onChanged();
}
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (other.hasEtag()) {
mergeEtag(other.getEtag());
}
if (other.hasOptions()) {
mergeOptions(other.getOptions());
}
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.v1.DaprProtos.DeleteStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.DeleteStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object storeName_ = "";
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
storeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @param value The storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
storeName_ = value;
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return This builder for chaining.
*/
public Builder clearStoreName() {
storeName_ = getDefaultInstance().getStoreName();
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @param value The bytes for storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
storeName_ = value;
onChanged();
return this;
}
private java.lang.Object key_ = "";
/**
*
* The key of the desired state
*
*
* string key = 2;
* @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;
}
}
/**
*
* The key of the desired state
*
*
* string key = 2;
* @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;
}
}
/**
*
* The key of the desired state
*
*
* string key = 2;
* @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;
}
/**
*
* The key of the desired state
*
*
* string key = 2;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
*
* The key of the desired state
*
*
* string key = 2;
* @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 io.dapr.v1.CommonProtos.Etag etag_;
private com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.Etag, io.dapr.v1.CommonProtos.Etag.Builder, io.dapr.v1.CommonProtos.EtagOrBuilder> etagBuilder_;
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
* @return Whether the etag field is set.
*/
public boolean hasEtag() {
return etagBuilder_ != null || etag_ != null;
}
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
* @return The etag.
*/
public io.dapr.v1.CommonProtos.Etag getEtag() {
if (etagBuilder_ == null) {
return etag_ == null ? io.dapr.v1.CommonProtos.Etag.getDefaultInstance() : etag_;
} else {
return etagBuilder_.getMessage();
}
}
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
*/
public Builder setEtag(io.dapr.v1.CommonProtos.Etag value) {
if (etagBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
etag_ = value;
onChanged();
} else {
etagBuilder_.setMessage(value);
}
return this;
}
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
*/
public Builder setEtag(
io.dapr.v1.CommonProtos.Etag.Builder builderForValue) {
if (etagBuilder_ == null) {
etag_ = builderForValue.build();
onChanged();
} else {
etagBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
*/
public Builder mergeEtag(io.dapr.v1.CommonProtos.Etag value) {
if (etagBuilder_ == null) {
if (etag_ != null) {
etag_ =
io.dapr.v1.CommonProtos.Etag.newBuilder(etag_).mergeFrom(value).buildPartial();
} else {
etag_ = value;
}
onChanged();
} else {
etagBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
*/
public Builder clearEtag() {
if (etagBuilder_ == null) {
etag_ = null;
onChanged();
} else {
etag_ = null;
etagBuilder_ = null;
}
return this;
}
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
*/
public io.dapr.v1.CommonProtos.Etag.Builder getEtagBuilder() {
onChanged();
return getEtagFieldBuilder().getBuilder();
}
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
*/
public io.dapr.v1.CommonProtos.EtagOrBuilder getEtagOrBuilder() {
if (etagBuilder_ != null) {
return etagBuilder_.getMessageOrBuilder();
} else {
return etag_ == null ?
io.dapr.v1.CommonProtos.Etag.getDefaultInstance() : etag_;
}
}
/**
*
* The entity tag which represents the specific version of data.
* The exact ETag format is defined by the corresponding data store.
*
*
* .dapr.proto.common.v1.Etag etag = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.Etag, io.dapr.v1.CommonProtos.Etag.Builder, io.dapr.v1.CommonProtos.EtagOrBuilder>
getEtagFieldBuilder() {
if (etagBuilder_ == null) {
etagBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.Etag, io.dapr.v1.CommonProtos.Etag.Builder, io.dapr.v1.CommonProtos.EtagOrBuilder>(
getEtag(),
getParentForChildren(),
isClean());
etag_ = null;
}
return etagBuilder_;
}
private io.dapr.v1.CommonProtos.StateOptions options_;
private com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.StateOptions, io.dapr.v1.CommonProtos.StateOptions.Builder, io.dapr.v1.CommonProtos.StateOptionsOrBuilder> optionsBuilder_;
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
* @return Whether the options field is set.
*/
public boolean hasOptions() {
return optionsBuilder_ != null || options_ != null;
}
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
* @return The options.
*/
public io.dapr.v1.CommonProtos.StateOptions getOptions() {
if (optionsBuilder_ == null) {
return options_ == null ? io.dapr.v1.CommonProtos.StateOptions.getDefaultInstance() : options_;
} else {
return optionsBuilder_.getMessage();
}
}
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
*/
public Builder setOptions(io.dapr.v1.CommonProtos.StateOptions value) {
if (optionsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
options_ = value;
onChanged();
} else {
optionsBuilder_.setMessage(value);
}
return this;
}
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
*/
public Builder setOptions(
io.dapr.v1.CommonProtos.StateOptions.Builder builderForValue) {
if (optionsBuilder_ == null) {
options_ = builderForValue.build();
onChanged();
} else {
optionsBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
*/
public Builder mergeOptions(io.dapr.v1.CommonProtos.StateOptions value) {
if (optionsBuilder_ == null) {
if (options_ != null) {
options_ =
io.dapr.v1.CommonProtos.StateOptions.newBuilder(options_).mergeFrom(value).buildPartial();
} else {
options_ = value;
}
onChanged();
} else {
optionsBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
*/
public Builder clearOptions() {
if (optionsBuilder_ == null) {
options_ = null;
onChanged();
} else {
options_ = null;
optionsBuilder_ = null;
}
return this;
}
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
*/
public io.dapr.v1.CommonProtos.StateOptions.Builder getOptionsBuilder() {
onChanged();
return getOptionsFieldBuilder().getBuilder();
}
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
*/
public io.dapr.v1.CommonProtos.StateOptionsOrBuilder getOptionsOrBuilder() {
if (optionsBuilder_ != null) {
return optionsBuilder_.getMessageOrBuilder();
} else {
return options_ == null ?
io.dapr.v1.CommonProtos.StateOptions.getDefaultInstance() : options_;
}
}
/**
*
* State operation options which includes concurrency/
* consistency/retry_policy.
*
*
* .dapr.proto.common.v1.StateOptions options = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.StateOptions, io.dapr.v1.CommonProtos.StateOptions.Builder, io.dapr.v1.CommonProtos.StateOptionsOrBuilder>
getOptionsFieldBuilder() {
if (optionsBuilder_ == null) {
optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
io.dapr.v1.CommonProtos.StateOptions, io.dapr.v1.CommonProtos.StateOptions.Builder, io.dapr.v1.CommonProtos.StateOptionsOrBuilder>(
getOptions(),
getParentForChildren(),
isClean());
options_ = null;
}
return optionsBuilder_;
}
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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 5;
*/
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.proto.runtime.v1.DeleteStateRequest)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.DeleteStateRequest)
private static final io.dapr.v1.DaprProtos.DeleteStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.DeleteStateRequest();
}
public static io.dapr.v1.DaprProtos.DeleteStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteStateRequest(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.v1.DaprProtos.DeleteStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface DeleteBulkStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.DeleteBulkStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
java.lang.String getStoreName();
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
com.google.protobuf.ByteString
getStoreNameBytes();
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
java.util.List
getStatesList();
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
io.dapr.v1.CommonProtos.StateItem getStates(int index);
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
int getStatesCount();
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
java.util.List extends io.dapr.v1.CommonProtos.StateItemOrBuilder>
getStatesOrBuilderList();
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
io.dapr.v1.CommonProtos.StateItemOrBuilder getStatesOrBuilder(
int index);
}
/**
*
* DeleteBulkStateRequest is the message to delete a list of key-value states from specific state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.DeleteBulkStateRequest}
*/
public static final class DeleteBulkStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.DeleteBulkStateRequest)
DeleteBulkStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeleteBulkStateRequest.newBuilder() to construct.
private DeleteBulkStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeleteBulkStateRequest() {
storeName_ = "";
states_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeleteBulkStateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private DeleteBulkStateRequest(
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();
storeName_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
states_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
states_.add(
input.readMessage(io.dapr.v1.CommonProtos.StateItem.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)) {
states_ = java.util.Collections.unmodifiableList(states_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_DeleteBulkStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_DeleteBulkStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.DeleteBulkStateRequest.class, io.dapr.v1.DaprProtos.DeleteBulkStateRequest.Builder.class);
}
public static final int STORE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object storeName_;
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
@java.lang.Override
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
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();
storeName_ = s;
return s;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATES_FIELD_NUMBER = 2;
private java.util.List states_;
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public java.util.List getStatesList() {
return states_;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public java.util.List extends io.dapr.v1.CommonProtos.StateItemOrBuilder>
getStatesOrBuilderList() {
return states_;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public int getStatesCount() {
return states_.size();
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.StateItem getStates(int index) {
return states_.get(index);
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.StateItemOrBuilder getStatesOrBuilder(
int index) {
return states_.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 {
if (!getStoreNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storeName_);
}
for (int i = 0; i < states_.size(); i++) {
output.writeMessage(2, states_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getStoreNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storeName_);
}
for (int i = 0; i < states_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, states_.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.v1.DaprProtos.DeleteBulkStateRequest)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.DeleteBulkStateRequest other = (io.dapr.v1.DaprProtos.DeleteBulkStateRequest) obj;
if (!getStoreName()
.equals(other.getStoreName())) return false;
if (!getStatesList()
.equals(other.getStatesList())) 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) + STORE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getStoreName().hashCode();
if (getStatesCount() > 0) {
hash = (37 * hash) + STATES_FIELD_NUMBER;
hash = (53 * hash) + getStatesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprProtos.DeleteBulkStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.DeleteBulkStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.DeleteBulkStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.DeleteBulkStateRequest 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.v1.DaprProtos.DeleteBulkStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.DeleteBulkStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.DeleteBulkStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.DeleteBulkStateRequest 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.v1.DaprProtos.DeleteBulkStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.DeleteBulkStateRequest 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.v1.DaprProtos.DeleteBulkStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.DeleteBulkStateRequest 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.v1.DaprProtos.DeleteBulkStateRequest 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;
}
/**
*
* DeleteBulkStateRequest is the message to delete a list of key-value states from specific state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.DeleteBulkStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.DeleteBulkStateRequest)
io.dapr.v1.DaprProtos.DeleteBulkStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_DeleteBulkStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_DeleteBulkStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.DeleteBulkStateRequest.class, io.dapr.v1.DaprProtos.DeleteBulkStateRequest.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.DeleteBulkStateRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStatesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
storeName_ = "";
if (statesBuilder_ == null) {
states_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
statesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_DeleteBulkStateRequest_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.DeleteBulkStateRequest getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.DeleteBulkStateRequest.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.DeleteBulkStateRequest build() {
io.dapr.v1.DaprProtos.DeleteBulkStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.DeleteBulkStateRequest buildPartial() {
io.dapr.v1.DaprProtos.DeleteBulkStateRequest result = new io.dapr.v1.DaprProtos.DeleteBulkStateRequest(this);
int from_bitField0_ = bitField0_;
result.storeName_ = storeName_;
if (statesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
states_ = java.util.Collections.unmodifiableList(states_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.states_ = states_;
} else {
result.states_ = statesBuilder_.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.v1.DaprProtos.DeleteBulkStateRequest) {
return mergeFrom((io.dapr.v1.DaprProtos.DeleteBulkStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.DeleteBulkStateRequest other) {
if (other == io.dapr.v1.DaprProtos.DeleteBulkStateRequest.getDefaultInstance()) return this;
if (!other.getStoreName().isEmpty()) {
storeName_ = other.storeName_;
onChanged();
}
if (statesBuilder_ == null) {
if (!other.states_.isEmpty()) {
if (states_.isEmpty()) {
states_ = other.states_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStatesIsMutable();
states_.addAll(other.states_);
}
onChanged();
}
} else {
if (!other.states_.isEmpty()) {
if (statesBuilder_.isEmpty()) {
statesBuilder_.dispose();
statesBuilder_ = null;
states_ = other.states_;
bitField0_ = (bitField0_ & ~0x00000001);
statesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStatesFieldBuilder() : null;
} else {
statesBuilder_.addAllMessages(other.states_);
}
}
}
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.v1.DaprProtos.DeleteBulkStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.DeleteBulkStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object storeName_ = "";
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
storeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @param value The storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
storeName_ = value;
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return This builder for chaining.
*/
public Builder clearStoreName() {
storeName_ = getDefaultInstance().getStoreName();
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @param value The bytes for storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
storeName_ = value;
onChanged();
return this;
}
private java.util.List states_ =
java.util.Collections.emptyList();
private void ensureStatesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
states_ = new java.util.ArrayList(states_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.CommonProtos.StateItem, io.dapr.v1.CommonProtos.StateItem.Builder, io.dapr.v1.CommonProtos.StateItemOrBuilder> statesBuilder_;
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public java.util.List getStatesList() {
if (statesBuilder_ == null) {
return java.util.Collections.unmodifiableList(states_);
} else {
return statesBuilder_.getMessageList();
}
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public int getStatesCount() {
if (statesBuilder_ == null) {
return states_.size();
} else {
return statesBuilder_.getCount();
}
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public io.dapr.v1.CommonProtos.StateItem getStates(int index) {
if (statesBuilder_ == null) {
return states_.get(index);
} else {
return statesBuilder_.getMessage(index);
}
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder setStates(
int index, io.dapr.v1.CommonProtos.StateItem value) {
if (statesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatesIsMutable();
states_.set(index, value);
onChanged();
} else {
statesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder setStates(
int index, io.dapr.v1.CommonProtos.StateItem.Builder builderForValue) {
if (statesBuilder_ == null) {
ensureStatesIsMutable();
states_.set(index, builderForValue.build());
onChanged();
} else {
statesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder addStates(io.dapr.v1.CommonProtos.StateItem value) {
if (statesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatesIsMutable();
states_.add(value);
onChanged();
} else {
statesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder addStates(
int index, io.dapr.v1.CommonProtos.StateItem value) {
if (statesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatesIsMutable();
states_.add(index, value);
onChanged();
} else {
statesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder addStates(
io.dapr.v1.CommonProtos.StateItem.Builder builderForValue) {
if (statesBuilder_ == null) {
ensureStatesIsMutable();
states_.add(builderForValue.build());
onChanged();
} else {
statesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder addStates(
int index, io.dapr.v1.CommonProtos.StateItem.Builder builderForValue) {
if (statesBuilder_ == null) {
ensureStatesIsMutable();
states_.add(index, builderForValue.build());
onChanged();
} else {
statesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder addAllStates(
java.lang.Iterable extends io.dapr.v1.CommonProtos.StateItem> values) {
if (statesBuilder_ == null) {
ensureStatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, states_);
onChanged();
} else {
statesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder clearStates() {
if (statesBuilder_ == null) {
states_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
statesBuilder_.clear();
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder removeStates(int index) {
if (statesBuilder_ == null) {
ensureStatesIsMutable();
states_.remove(index);
onChanged();
} else {
statesBuilder_.remove(index);
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public io.dapr.v1.CommonProtos.StateItem.Builder getStatesBuilder(
int index) {
return getStatesFieldBuilder().getBuilder(index);
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public io.dapr.v1.CommonProtos.StateItemOrBuilder getStatesOrBuilder(
int index) {
if (statesBuilder_ == null) {
return states_.get(index); } else {
return statesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public java.util.List extends io.dapr.v1.CommonProtos.StateItemOrBuilder>
getStatesOrBuilderList() {
if (statesBuilder_ != null) {
return statesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(states_);
}
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public io.dapr.v1.CommonProtos.StateItem.Builder addStatesBuilder() {
return getStatesFieldBuilder().addBuilder(
io.dapr.v1.CommonProtos.StateItem.getDefaultInstance());
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public io.dapr.v1.CommonProtos.StateItem.Builder addStatesBuilder(
int index) {
return getStatesFieldBuilder().addBuilder(
index, io.dapr.v1.CommonProtos.StateItem.getDefaultInstance());
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public java.util.List
getStatesBuilderList() {
return getStatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.CommonProtos.StateItem, io.dapr.v1.CommonProtos.StateItem.Builder, io.dapr.v1.CommonProtos.StateItemOrBuilder>
getStatesFieldBuilder() {
if (statesBuilder_ == null) {
statesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.CommonProtos.StateItem, io.dapr.v1.CommonProtos.StateItem.Builder, io.dapr.v1.CommonProtos.StateItemOrBuilder>(
states_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
states_ = null;
}
return statesBuilder_;
}
@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.proto.runtime.v1.DeleteBulkStateRequest)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.DeleteBulkStateRequest)
private static final io.dapr.v1.DaprProtos.DeleteBulkStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.DeleteBulkStateRequest();
}
public static io.dapr.v1.DaprProtos.DeleteBulkStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeleteBulkStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new DeleteBulkStateRequest(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.v1.DaprProtos.DeleteBulkStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface SaveStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.SaveStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
java.lang.String getStoreName();
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
com.google.protobuf.ByteString
getStoreNameBytes();
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
java.util.List
getStatesList();
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
io.dapr.v1.CommonProtos.StateItem getStates(int index);
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
int getStatesCount();
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
java.util.List extends io.dapr.v1.CommonProtos.StateItemOrBuilder>
getStatesOrBuilderList();
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
io.dapr.v1.CommonProtos.StateItemOrBuilder getStatesOrBuilder(
int index);
}
/**
*
* SaveStateRequest is the message to save multiple states into state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.SaveStateRequest}
*/
public static final class SaveStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.SaveStateRequest)
SaveStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use SaveStateRequest.newBuilder() to construct.
private SaveStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SaveStateRequest() {
storeName_ = "";
states_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new SaveStateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SaveStateRequest(
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();
storeName_ = s;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
states_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
states_.add(
input.readMessage(io.dapr.v1.CommonProtos.StateItem.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)) {
states_ = java.util.Collections.unmodifiableList(states_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_SaveStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_SaveStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.SaveStateRequest.class, io.dapr.v1.DaprProtos.SaveStateRequest.Builder.class);
}
public static final int STORE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object storeName_;
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
@java.lang.Override
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
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();
storeName_ = s;
return s;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STATES_FIELD_NUMBER = 2;
private java.util.List states_;
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public java.util.List getStatesList() {
return states_;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public java.util.List extends io.dapr.v1.CommonProtos.StateItemOrBuilder>
getStatesOrBuilderList() {
return states_;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public int getStatesCount() {
return states_.size();
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.StateItem getStates(int index) {
return states_.get(index);
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
@java.lang.Override
public io.dapr.v1.CommonProtos.StateItemOrBuilder getStatesOrBuilder(
int index) {
return states_.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 {
if (!getStoreNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storeName_);
}
for (int i = 0; i < states_.size(); i++) {
output.writeMessage(2, states_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getStoreNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storeName_);
}
for (int i = 0; i < states_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, states_.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.v1.DaprProtos.SaveStateRequest)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.SaveStateRequest other = (io.dapr.v1.DaprProtos.SaveStateRequest) obj;
if (!getStoreName()
.equals(other.getStoreName())) return false;
if (!getStatesList()
.equals(other.getStatesList())) 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) + STORE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getStoreName().hashCode();
if (getStatesCount() > 0) {
hash = (37 * hash) + STATES_FIELD_NUMBER;
hash = (53 * hash) + getStatesList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprProtos.SaveStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.SaveStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.SaveStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.SaveStateRequest 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.v1.DaprProtos.SaveStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.SaveStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.SaveStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.SaveStateRequest 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.v1.DaprProtos.SaveStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.SaveStateRequest 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.v1.DaprProtos.SaveStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.SaveStateRequest 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.v1.DaprProtos.SaveStateRequest 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;
}
/**
*
* SaveStateRequest is the message to save multiple states into state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.SaveStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.SaveStateRequest)
io.dapr.v1.DaprProtos.SaveStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_SaveStateRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_SaveStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.SaveStateRequest.class, io.dapr.v1.DaprProtos.SaveStateRequest.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.SaveStateRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStatesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
storeName_ = "";
if (statesBuilder_ == null) {
states_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
statesBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_SaveStateRequest_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.SaveStateRequest getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.SaveStateRequest.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.SaveStateRequest build() {
io.dapr.v1.DaprProtos.SaveStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.SaveStateRequest buildPartial() {
io.dapr.v1.DaprProtos.SaveStateRequest result = new io.dapr.v1.DaprProtos.SaveStateRequest(this);
int from_bitField0_ = bitField0_;
result.storeName_ = storeName_;
if (statesBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
states_ = java.util.Collections.unmodifiableList(states_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.states_ = states_;
} else {
result.states_ = statesBuilder_.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.v1.DaprProtos.SaveStateRequest) {
return mergeFrom((io.dapr.v1.DaprProtos.SaveStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.SaveStateRequest other) {
if (other == io.dapr.v1.DaprProtos.SaveStateRequest.getDefaultInstance()) return this;
if (!other.getStoreName().isEmpty()) {
storeName_ = other.storeName_;
onChanged();
}
if (statesBuilder_ == null) {
if (!other.states_.isEmpty()) {
if (states_.isEmpty()) {
states_ = other.states_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureStatesIsMutable();
states_.addAll(other.states_);
}
onChanged();
}
} else {
if (!other.states_.isEmpty()) {
if (statesBuilder_.isEmpty()) {
statesBuilder_.dispose();
statesBuilder_ = null;
states_ = other.states_;
bitField0_ = (bitField0_ & ~0x00000001);
statesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getStatesFieldBuilder() : null;
} else {
statesBuilder_.addAllMessages(other.states_);
}
}
}
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.v1.DaprProtos.SaveStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.SaveStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object storeName_ = "";
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The storeName.
*/
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
storeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return The bytes for storeName.
*/
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @param value The storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
storeName_ = value;
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @return This builder for chaining.
*/
public Builder clearStoreName() {
storeName_ = getDefaultInstance().getStoreName();
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1;
* @param value The bytes for storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
storeName_ = value;
onChanged();
return this;
}
private java.util.List states_ =
java.util.Collections.emptyList();
private void ensureStatesIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
states_ = new java.util.ArrayList(states_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.CommonProtos.StateItem, io.dapr.v1.CommonProtos.StateItem.Builder, io.dapr.v1.CommonProtos.StateItemOrBuilder> statesBuilder_;
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public java.util.List getStatesList() {
if (statesBuilder_ == null) {
return java.util.Collections.unmodifiableList(states_);
} else {
return statesBuilder_.getMessageList();
}
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public int getStatesCount() {
if (statesBuilder_ == null) {
return states_.size();
} else {
return statesBuilder_.getCount();
}
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public io.dapr.v1.CommonProtos.StateItem getStates(int index) {
if (statesBuilder_ == null) {
return states_.get(index);
} else {
return statesBuilder_.getMessage(index);
}
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder setStates(
int index, io.dapr.v1.CommonProtos.StateItem value) {
if (statesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatesIsMutable();
states_.set(index, value);
onChanged();
} else {
statesBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder setStates(
int index, io.dapr.v1.CommonProtos.StateItem.Builder builderForValue) {
if (statesBuilder_ == null) {
ensureStatesIsMutable();
states_.set(index, builderForValue.build());
onChanged();
} else {
statesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder addStates(io.dapr.v1.CommonProtos.StateItem value) {
if (statesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatesIsMutable();
states_.add(value);
onChanged();
} else {
statesBuilder_.addMessage(value);
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder addStates(
int index, io.dapr.v1.CommonProtos.StateItem value) {
if (statesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureStatesIsMutable();
states_.add(index, value);
onChanged();
} else {
statesBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder addStates(
io.dapr.v1.CommonProtos.StateItem.Builder builderForValue) {
if (statesBuilder_ == null) {
ensureStatesIsMutable();
states_.add(builderForValue.build());
onChanged();
} else {
statesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder addStates(
int index, io.dapr.v1.CommonProtos.StateItem.Builder builderForValue) {
if (statesBuilder_ == null) {
ensureStatesIsMutable();
states_.add(index, builderForValue.build());
onChanged();
} else {
statesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder addAllStates(
java.lang.Iterable extends io.dapr.v1.CommonProtos.StateItem> values) {
if (statesBuilder_ == null) {
ensureStatesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, states_);
onChanged();
} else {
statesBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder clearStates() {
if (statesBuilder_ == null) {
states_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
statesBuilder_.clear();
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public Builder removeStates(int index) {
if (statesBuilder_ == null) {
ensureStatesIsMutable();
states_.remove(index);
onChanged();
} else {
statesBuilder_.remove(index);
}
return this;
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public io.dapr.v1.CommonProtos.StateItem.Builder getStatesBuilder(
int index) {
return getStatesFieldBuilder().getBuilder(index);
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public io.dapr.v1.CommonProtos.StateItemOrBuilder getStatesOrBuilder(
int index) {
if (statesBuilder_ == null) {
return states_.get(index); } else {
return statesBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public java.util.List extends io.dapr.v1.CommonProtos.StateItemOrBuilder>
getStatesOrBuilderList() {
if (statesBuilder_ != null) {
return statesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(states_);
}
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public io.dapr.v1.CommonProtos.StateItem.Builder addStatesBuilder() {
return getStatesFieldBuilder().addBuilder(
io.dapr.v1.CommonProtos.StateItem.getDefaultInstance());
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public io.dapr.v1.CommonProtos.StateItem.Builder addStatesBuilder(
int index) {
return getStatesFieldBuilder().addBuilder(
index, io.dapr.v1.CommonProtos.StateItem.getDefaultInstance());
}
/**
*
* The array of the state key values.
*
*
* repeated .dapr.proto.common.v1.StateItem states = 2;
*/
public java.util.List
getStatesBuilderList() {
return getStatesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.CommonProtos.StateItem, io.dapr.v1.CommonProtos.StateItem.Builder, io.dapr.v1.CommonProtos.StateItemOrBuilder>
getStatesFieldBuilder() {
if (statesBuilder_ == null) {
statesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.CommonProtos.StateItem, io.dapr.v1.CommonProtos.StateItem.Builder, io.dapr.v1.CommonProtos.StateItemOrBuilder>(
states_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
states_ = null;
}
return statesBuilder_;
}
@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.proto.runtime.v1.SaveStateRequest)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.SaveStateRequest)
private static final io.dapr.v1.DaprProtos.SaveStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.SaveStateRequest();
}
public static io.dapr.v1.DaprProtos.SaveStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public SaveStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SaveStateRequest(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.v1.DaprProtos.SaveStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryStateRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.QueryStateRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of state store.
*
*
* string store_name = 1 [json_name = "storeName"];
* @return The storeName.
*/
java.lang.String getStoreName();
/**
*
* The name of state store.
*
*
* string store_name = 1 [json_name = "storeName"];
* @return The bytes for storeName.
*/
com.google.protobuf.ByteString
getStoreNameBytes();
/**
*
* The query in JSON format.
*
*
* string query = 2;
* @return The query.
*/
java.lang.String getQuery();
/**
*
* The query in JSON format.
*
*
* string query = 2;
* @return The bytes for query.
*/
com.google.protobuf.ByteString
getQueryBytes();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
int getMetadataCount();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
java.util.Map
getMetadataMap();
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
}
/**
*
* QueryStateRequest is the message to query state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.QueryStateRequest}
*/
public static final class QueryStateRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.QueryStateRequest)
QueryStateRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryStateRequest.newBuilder() to construct.
private QueryStateRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryStateRequest() {
storeName_ = "";
query_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryStateRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryStateRequest(
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();
storeName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
query_ = s;
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateRequest_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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.QueryStateRequest.class, io.dapr.v1.DaprProtos.QueryStateRequest.Builder.class);
}
public static final int STORE_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object storeName_;
/**
*
* The name of state store.
*
*
* string store_name = 1 [json_name = "storeName"];
* @return The storeName.
*/
@java.lang.Override
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
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();
storeName_ = s;
return s;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1 [json_name = "storeName"];
* @return The bytes for storeName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int QUERY_FIELD_NUMBER = 2;
private volatile java.lang.Object query_;
/**
*
* The query in JSON format.
*
*
* string query = 2;
* @return The query.
*/
@java.lang.Override
public java.lang.String getQuery() {
java.lang.Object ref = query_;
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();
query_ = s;
return s;
}
}
/**
*
* The query in JSON format.
*
*
* string query = 2;
* @return The bytes for query.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getQueryBytes() {
java.lang.Object ref = query_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
query_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateRequest_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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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 (!getStoreNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, storeName_);
}
if (!getQueryBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, query_);
}
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 (!getStoreNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, storeName_);
}
if (!getQueryBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, query_);
}
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.v1.DaprProtos.QueryStateRequest)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.QueryStateRequest other = (io.dapr.v1.DaprProtos.QueryStateRequest) obj;
if (!getStoreName()
.equals(other.getStoreName())) return false;
if (!getQuery()
.equals(other.getQuery())) 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) + STORE_NAME_FIELD_NUMBER;
hash = (53 * hash) + getStoreName().hashCode();
hash = (37 * hash) + QUERY_FIELD_NUMBER;
hash = (53 * hash) + getQuery().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.v1.DaprProtos.QueryStateRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.QueryStateRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.QueryStateRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.QueryStateRequest 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.v1.DaprProtos.QueryStateRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.QueryStateRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.QueryStateRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.QueryStateRequest 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.v1.DaprProtos.QueryStateRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.QueryStateRequest 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.v1.DaprProtos.QueryStateRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.QueryStateRequest 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.v1.DaprProtos.QueryStateRequest 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;
}
/**
*
* QueryStateRequest is the message to query state store.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.QueryStateRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.QueryStateRequest)
io.dapr.v1.DaprProtos.QueryStateRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateRequest_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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.QueryStateRequest.class, io.dapr.v1.DaprProtos.QueryStateRequest.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.QueryStateRequest.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();
storeName_ = "";
query_ = "";
internalGetMutableMetadata().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateRequest_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.QueryStateRequest getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.QueryStateRequest.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.QueryStateRequest build() {
io.dapr.v1.DaprProtos.QueryStateRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.QueryStateRequest buildPartial() {
io.dapr.v1.DaprProtos.QueryStateRequest result = new io.dapr.v1.DaprProtos.QueryStateRequest(this);
int from_bitField0_ = bitField0_;
result.storeName_ = storeName_;
result.query_ = query_;
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.v1.DaprProtos.QueryStateRequest) {
return mergeFrom((io.dapr.v1.DaprProtos.QueryStateRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.QueryStateRequest other) {
if (other == io.dapr.v1.DaprProtos.QueryStateRequest.getDefaultInstance()) return this;
if (!other.getStoreName().isEmpty()) {
storeName_ = other.storeName_;
onChanged();
}
if (!other.getQuery().isEmpty()) {
query_ = other.query_;
onChanged();
}
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.v1.DaprProtos.QueryStateRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.QueryStateRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object storeName_ = "";
/**
*
* The name of state store.
*
*
* string store_name = 1 [json_name = "storeName"];
* @return The storeName.
*/
public java.lang.String getStoreName() {
java.lang.Object ref = storeName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
storeName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1 [json_name = "storeName"];
* @return The bytes for storeName.
*/
public com.google.protobuf.ByteString
getStoreNameBytes() {
java.lang.Object ref = storeName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
storeName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of state store.
*
*
* string store_name = 1 [json_name = "storeName"];
* @param value The storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
storeName_ = value;
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1 [json_name = "storeName"];
* @return This builder for chaining.
*/
public Builder clearStoreName() {
storeName_ = getDefaultInstance().getStoreName();
onChanged();
return this;
}
/**
*
* The name of state store.
*
*
* string store_name = 1 [json_name = "storeName"];
* @param value The bytes for storeName to set.
* @return This builder for chaining.
*/
public Builder setStoreNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
storeName_ = value;
onChanged();
return this;
}
private java.lang.Object query_ = "";
/**
*
* The query in JSON format.
*
*
* string query = 2;
* @return The query.
*/
public java.lang.String getQuery() {
java.lang.Object ref = query_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
query_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The query in JSON format.
*
*
* string query = 2;
* @return The bytes for query.
*/
public com.google.protobuf.ByteString
getQueryBytes() {
java.lang.Object ref = query_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
query_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The query in JSON format.
*
*
* string query = 2;
* @param value The query to set.
* @return This builder for chaining.
*/
public Builder setQuery(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
query_ = value;
onChanged();
return this;
}
/**
*
* The query in JSON format.
*
*
* string query = 2;
* @return This builder for chaining.
*/
public Builder clearQuery() {
query_ = getDefaultInstance().getQuery();
onChanged();
return this;
}
/**
*
* The query in JSON format.
*
*
* string query = 2;
* @param value The bytes for query to set.
* @return This builder for chaining.
*/
public Builder setQueryBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
query_ = 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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* 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();
}
/**
*
* The metadata which will be sent to state store components.
*
*
* 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;
}
/**
*
* The metadata which will be sent to state store components.
*
*
* 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.proto.runtime.v1.QueryStateRequest)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.QueryStateRequest)
private static final io.dapr.v1.DaprProtos.QueryStateRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.QueryStateRequest();
}
public static io.dapr.v1.DaprProtos.QueryStateRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryStateRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryStateRequest(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.v1.DaprProtos.QueryStateRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryStateItemOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.QueryStateItem)
com.google.protobuf.MessageOrBuilder {
/**
*
* The object key.
*
*
* string key = 1;
* @return The key.
*/
java.lang.String getKey();
/**
*
* The object key.
*
*
* string key = 1;
* @return The bytes for key.
*/
com.google.protobuf.ByteString
getKeyBytes();
/**
*
* The object value.
*
*
* bytes data = 2;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 3;
* @return The etag.
*/
java.lang.String getEtag();
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 3;
* @return The bytes for etag.
*/
com.google.protobuf.ByteString
getEtagBytes();
/**
*
* The error message indicating an error in processing of the query result.
*
*
* string error = 4;
* @return The error.
*/
java.lang.String getError();
/**
*
* The error message indicating an error in processing of the query result.
*
*
* string error = 4;
* @return The bytes for error.
*/
com.google.protobuf.ByteString
getErrorBytes();
}
/**
* Protobuf type {@code dapr.proto.runtime.v1.QueryStateItem}
*/
public static final class QueryStateItem extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.QueryStateItem)
QueryStateItemOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryStateItem.newBuilder() to construct.
private QueryStateItem(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryStateItem() {
key_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
etag_ = "";
error_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryStateItem();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryStateItem(
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: {
data_ = input.readBytes();
break;
}
case 26: {
java.lang.String s = input.readStringRequireUtf8();
etag_ = s;
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
error_ = 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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.QueryStateItem.class, io.dapr.v1.DaprProtos.QueryStateItem.Builder.class);
}
public static final int KEY_FIELD_NUMBER = 1;
private volatile java.lang.Object key_;
/**
*
* The object key.
*
*
* string key = 1;
* @return The key.
*/
@java.lang.Override
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;
}
}
/**
*
* The object key.
*
*
* string key = 1;
* @return The bytes for key.
*/
@java.lang.Override
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 DATA_FIELD_NUMBER = 2;
private com.google.protobuf.ByteString data_;
/**
*
* The object value.
*
*
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int ETAG_FIELD_NUMBER = 3;
private volatile java.lang.Object etag_;
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 3;
* @return The etag.
*/
@java.lang.Override
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;
}
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 3;
* @return The bytes for etag.
*/
@java.lang.Override
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 ERROR_FIELD_NUMBER = 4;
private volatile java.lang.Object error_;
/**
*
* The error message indicating an error in processing of the query result.
*
*
* string error = 4;
* @return The error.
*/
@java.lang.Override
public java.lang.String getError() {
java.lang.Object ref = error_;
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();
error_ = s;
return s;
}
}
/**
*
* The error message indicating an error in processing of the query result.
*
*
* string error = 4;
* @return The bytes for error.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
error_ = 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 (!data_.isEmpty()) {
output.writeBytes(2, data_);
}
if (!getEtagBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, etag_);
}
if (!getErrorBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, error_);
}
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 (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, data_);
}
if (!getEtagBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, etag_);
}
if (!getErrorBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, error_);
}
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.v1.DaprProtos.QueryStateItem)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.QueryStateItem other = (io.dapr.v1.DaprProtos.QueryStateItem) obj;
if (!getKey()
.equals(other.getKey())) return false;
if (!getData()
.equals(other.getData())) return false;
if (!getEtag()
.equals(other.getEtag())) return false;
if (!getError()
.equals(other.getError())) 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) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + ETAG_FIELD_NUMBER;
hash = (53 * hash) + getEtag().hashCode();
hash = (37 * hash) + ERROR_FIELD_NUMBER;
hash = (53 * hash) + getError().hashCode();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static io.dapr.v1.DaprProtos.QueryStateItem parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.QueryStateItem parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.QueryStateItem parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.QueryStateItem 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.v1.DaprProtos.QueryStateItem parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.QueryStateItem parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.QueryStateItem parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.QueryStateItem 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.v1.DaprProtos.QueryStateItem parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.QueryStateItem 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.v1.DaprProtos.QueryStateItem parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.QueryStateItem 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.v1.DaprProtos.QueryStateItem 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.proto.runtime.v1.QueryStateItem}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.QueryStateItem)
io.dapr.v1.DaprProtos.QueryStateItemOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateItem_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateItem_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.QueryStateItem.class, io.dapr.v1.DaprProtos.QueryStateItem.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.QueryStateItem.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_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
etag_ = "";
error_ = "";
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateItem_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.QueryStateItem getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.QueryStateItem.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.QueryStateItem build() {
io.dapr.v1.DaprProtos.QueryStateItem result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.QueryStateItem buildPartial() {
io.dapr.v1.DaprProtos.QueryStateItem result = new io.dapr.v1.DaprProtos.QueryStateItem(this);
result.key_ = key_;
result.data_ = data_;
result.etag_ = etag_;
result.error_ = error_;
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.v1.DaprProtos.QueryStateItem) {
return mergeFrom((io.dapr.v1.DaprProtos.QueryStateItem)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.QueryStateItem other) {
if (other == io.dapr.v1.DaprProtos.QueryStateItem.getDefaultInstance()) return this;
if (!other.getKey().isEmpty()) {
key_ = other.key_;
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (!other.getEtag().isEmpty()) {
etag_ = other.etag_;
onChanged();
}
if (!other.getError().isEmpty()) {
error_ = other.error_;
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.v1.DaprProtos.QueryStateItem parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.QueryStateItem) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private java.lang.Object key_ = "";
/**
*
* The 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;
}
}
/**
*
* The object key.
*
*
* 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;
}
}
/**
*
* The object key.
*
*
* 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;
}
/**
*
* The object key.
*
*
* string key = 1;
* @return This builder for chaining.
*/
public Builder clearKey() {
key_ = getDefaultInstance().getKey();
onChanged();
return this;
}
/**
*
* The object key.
*
*
* 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.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The object value.
*
*
* bytes data = 2;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* The object value.
*
*
* bytes data = 2;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* The object value.
*
*
* bytes data = 2;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.lang.Object etag_ = "";
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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;
}
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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;
}
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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;
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* string etag = 3;
* @return This builder for chaining.
*/
public Builder clearEtag() {
etag_ = getDefaultInstance().getEtag();
onChanged();
return this;
}
/**
*
* The entity tag which represents the specific version of data.
* ETag format is defined by the corresponding data store.
*
*
* 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 java.lang.Object error_ = "";
/**
*
* The error message indicating an error in processing of the query result.
*
*
* string error = 4;
* @return The error.
*/
public java.lang.String getError() {
java.lang.Object ref = error_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
error_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The error message indicating an error in processing of the query result.
*
*
* string error = 4;
* @return The bytes for error.
*/
public com.google.protobuf.ByteString
getErrorBytes() {
java.lang.Object ref = error_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
error_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The error message indicating an error in processing of the query result.
*
*
* string error = 4;
* @param value The error to set.
* @return This builder for chaining.
*/
public Builder setError(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
error_ = value;
onChanged();
return this;
}
/**
*
* The error message indicating an error in processing of the query result.
*
*
* string error = 4;
* @return This builder for chaining.
*/
public Builder clearError() {
error_ = getDefaultInstance().getError();
onChanged();
return this;
}
/**
*
* The error message indicating an error in processing of the query result.
*
*
* string error = 4;
* @param value The bytes for error to set.
* @return This builder for chaining.
*/
public Builder setErrorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
error_ = 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.proto.runtime.v1.QueryStateItem)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.QueryStateItem)
private static final io.dapr.v1.DaprProtos.QueryStateItem DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.QueryStateItem();
}
public static io.dapr.v1.DaprProtos.QueryStateItem getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryStateItem parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryStateItem(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.v1.DaprProtos.QueryStateItem getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface QueryStateResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.QueryStateResponse)
com.google.protobuf.MessageOrBuilder {
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
java.util.List
getResultsList();
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
io.dapr.v1.DaprProtos.QueryStateItem getResults(int index);
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
int getResultsCount();
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
java.util.List extends io.dapr.v1.DaprProtos.QueryStateItemOrBuilder>
getResultsOrBuilderList();
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
io.dapr.v1.DaprProtos.QueryStateItemOrBuilder getResultsOrBuilder(
int index);
/**
*
* Pagination token.
*
*
* string token = 2;
* @return The token.
*/
java.lang.String getToken();
/**
*
* Pagination token.
*
*
* string token = 2;
* @return The bytes for token.
*/
com.google.protobuf.ByteString
getTokenBytes();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
int getMetadataCount();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
java.util.Map
getMetadataMap();
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
}
/**
*
* QueryStateResponse is the response conveying the query results.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.QueryStateResponse}
*/
public static final class QueryStateResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.QueryStateResponse)
QueryStateResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use QueryStateResponse.newBuilder() to construct.
private QueryStateResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private QueryStateResponse() {
results_ = java.util.Collections.emptyList();
token_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new QueryStateResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private QueryStateResponse(
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)) {
results_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
results_.add(
input.readMessage(io.dapr.v1.DaprProtos.QueryStateItem.parser(), extensionRegistry));
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
token_ = s;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
metadata_ = com.google.protobuf.MapField.newMapField(
MetadataDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000002;
}
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 {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
results_ = java.util.Collections.unmodifiableList(results_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateResponse_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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.QueryStateResponse.class, io.dapr.v1.DaprProtos.QueryStateResponse.Builder.class);
}
public static final int RESULTS_FIELD_NUMBER = 1;
private java.util.List results_;
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
@java.lang.Override
public java.util.List getResultsList() {
return results_;
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
@java.lang.Override
public java.util.List extends io.dapr.v1.DaprProtos.QueryStateItemOrBuilder>
getResultsOrBuilderList() {
return results_;
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
@java.lang.Override
public int getResultsCount() {
return results_.size();
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
@java.lang.Override
public io.dapr.v1.DaprProtos.QueryStateItem getResults(int index) {
return results_.get(index);
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
@java.lang.Override
public io.dapr.v1.DaprProtos.QueryStateItemOrBuilder getResultsOrBuilder(
int index) {
return results_.get(index);
}
public static final int TOKEN_FIELD_NUMBER = 2;
private volatile java.lang.Object token_;
/**
*
* Pagination token.
*
*
* string token = 2;
* @return The token.
*/
@java.lang.Override
public java.lang.String getToken() {
java.lang.Object ref = token_;
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();
token_ = s;
return s;
}
}
/**
*
* Pagination token.
*
*
* string token = 2;
* @return The bytes for token.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTokenBytes() {
java.lang.Object ref = token_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateResponse_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();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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 {
for (int i = 0; i < results_.size(); i++) {
output.writeMessage(1, results_.get(i));
}
if (!getTokenBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, token_);
}
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;
for (int i = 0; i < results_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, results_.get(i));
}
if (!getTokenBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, token_);
}
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.v1.DaprProtos.QueryStateResponse)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.QueryStateResponse other = (io.dapr.v1.DaprProtos.QueryStateResponse) obj;
if (!getResultsList()
.equals(other.getResultsList())) return false;
if (!getToken()
.equals(other.getToken())) 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 (getResultsCount() > 0) {
hash = (37 * hash) + RESULTS_FIELD_NUMBER;
hash = (53 * hash) + getResultsList().hashCode();
}
hash = (37 * hash) + TOKEN_FIELD_NUMBER;
hash = (53 * hash) + getToken().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.v1.DaprProtos.QueryStateResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.QueryStateResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.QueryStateResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.QueryStateResponse 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.v1.DaprProtos.QueryStateResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.QueryStateResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.QueryStateResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.QueryStateResponse 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.v1.DaprProtos.QueryStateResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.QueryStateResponse 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.v1.DaprProtos.QueryStateResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.QueryStateResponse 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.v1.DaprProtos.QueryStateResponse 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;
}
/**
*
* QueryStateResponse is the response conveying the query results.
*
*
* Protobuf type {@code dapr.proto.runtime.v1.QueryStateResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.QueryStateResponse)
io.dapr.v1.DaprProtos.QueryStateResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateResponse_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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.QueryStateResponse.class, io.dapr.v1.DaprProtos.QueryStateResponse.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.QueryStateResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getResultsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
resultsBuilder_.clear();
}
token_ = "";
internalGetMutableMetadata().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_QueryStateResponse_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.QueryStateResponse getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.QueryStateResponse.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.QueryStateResponse build() {
io.dapr.v1.DaprProtos.QueryStateResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.QueryStateResponse buildPartial() {
io.dapr.v1.DaprProtos.QueryStateResponse result = new io.dapr.v1.DaprProtos.QueryStateResponse(this);
int from_bitField0_ = bitField0_;
if (resultsBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
results_ = java.util.Collections.unmodifiableList(results_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.results_ = results_;
} else {
result.results_ = resultsBuilder_.build();
}
result.token_ = token_;
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.v1.DaprProtos.QueryStateResponse) {
return mergeFrom((io.dapr.v1.DaprProtos.QueryStateResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.QueryStateResponse other) {
if (other == io.dapr.v1.DaprProtos.QueryStateResponse.getDefaultInstance()) return this;
if (resultsBuilder_ == null) {
if (!other.results_.isEmpty()) {
if (results_.isEmpty()) {
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResultsIsMutable();
results_.addAll(other.results_);
}
onChanged();
}
} else {
if (!other.results_.isEmpty()) {
if (resultsBuilder_.isEmpty()) {
resultsBuilder_.dispose();
resultsBuilder_ = null;
results_ = other.results_;
bitField0_ = (bitField0_ & ~0x00000001);
resultsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getResultsFieldBuilder() : null;
} else {
resultsBuilder_.addAllMessages(other.results_);
}
}
}
if (!other.getToken().isEmpty()) {
token_ = other.token_;
onChanged();
}
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.v1.DaprProtos.QueryStateResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.QueryStateResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List results_ =
java.util.Collections.emptyList();
private void ensureResultsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
results_ = new java.util.ArrayList(results_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.DaprProtos.QueryStateItem, io.dapr.v1.DaprProtos.QueryStateItem.Builder, io.dapr.v1.DaprProtos.QueryStateItemOrBuilder> resultsBuilder_;
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public java.util.List getResultsList() {
if (resultsBuilder_ == null) {
return java.util.Collections.unmodifiableList(results_);
} else {
return resultsBuilder_.getMessageList();
}
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public int getResultsCount() {
if (resultsBuilder_ == null) {
return results_.size();
} else {
return resultsBuilder_.getCount();
}
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public io.dapr.v1.DaprProtos.QueryStateItem getResults(int index) {
if (resultsBuilder_ == null) {
return results_.get(index);
} else {
return resultsBuilder_.getMessage(index);
}
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public Builder setResults(
int index, io.dapr.v1.DaprProtos.QueryStateItem value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.set(index, value);
onChanged();
} else {
resultsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public Builder setResults(
int index, io.dapr.v1.DaprProtos.QueryStateItem.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.set(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public Builder addResults(io.dapr.v1.DaprProtos.QueryStateItem value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(value);
onChanged();
} else {
resultsBuilder_.addMessage(value);
}
return this;
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public Builder addResults(
int index, io.dapr.v1.DaprProtos.QueryStateItem value) {
if (resultsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResultsIsMutable();
results_.add(index, value);
onChanged();
} else {
resultsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public Builder addResults(
io.dapr.v1.DaprProtos.QueryStateItem.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public Builder addResults(
int index, io.dapr.v1.DaprProtos.QueryStateItem.Builder builderForValue) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.add(index, builderForValue.build());
onChanged();
} else {
resultsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public Builder addAllResults(
java.lang.Iterable extends io.dapr.v1.DaprProtos.QueryStateItem> values) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, results_);
onChanged();
} else {
resultsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public Builder clearResults() {
if (resultsBuilder_ == null) {
results_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
resultsBuilder_.clear();
}
return this;
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public Builder removeResults(int index) {
if (resultsBuilder_ == null) {
ensureResultsIsMutable();
results_.remove(index);
onChanged();
} else {
resultsBuilder_.remove(index);
}
return this;
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public io.dapr.v1.DaprProtos.QueryStateItem.Builder getResultsBuilder(
int index) {
return getResultsFieldBuilder().getBuilder(index);
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public io.dapr.v1.DaprProtos.QueryStateItemOrBuilder getResultsOrBuilder(
int index) {
if (resultsBuilder_ == null) {
return results_.get(index); } else {
return resultsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public java.util.List extends io.dapr.v1.DaprProtos.QueryStateItemOrBuilder>
getResultsOrBuilderList() {
if (resultsBuilder_ != null) {
return resultsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(results_);
}
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public io.dapr.v1.DaprProtos.QueryStateItem.Builder addResultsBuilder() {
return getResultsFieldBuilder().addBuilder(
io.dapr.v1.DaprProtos.QueryStateItem.getDefaultInstance());
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public io.dapr.v1.DaprProtos.QueryStateItem.Builder addResultsBuilder(
int index) {
return getResultsFieldBuilder().addBuilder(
index, io.dapr.v1.DaprProtos.QueryStateItem.getDefaultInstance());
}
/**
*
* An array of query results.
*
*
* repeated .dapr.proto.runtime.v1.QueryStateItem results = 1;
*/
public java.util.List
getResultsBuilderList() {
return getResultsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.DaprProtos.QueryStateItem, io.dapr.v1.DaprProtos.QueryStateItem.Builder, io.dapr.v1.DaprProtos.QueryStateItemOrBuilder>
getResultsFieldBuilder() {
if (resultsBuilder_ == null) {
resultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
io.dapr.v1.DaprProtos.QueryStateItem, io.dapr.v1.DaprProtos.QueryStateItem.Builder, io.dapr.v1.DaprProtos.QueryStateItemOrBuilder>(
results_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
results_ = null;
}
return resultsBuilder_;
}
private java.lang.Object token_ = "";
/**
*
* Pagination token.
*
*
* string token = 2;
* @return The token.
*/
public java.lang.String getToken() {
java.lang.Object ref = token_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
token_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Pagination token.
*
*
* string token = 2;
* @return The bytes for token.
*/
public com.google.protobuf.ByteString
getTokenBytes() {
java.lang.Object ref = token_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
token_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Pagination token.
*
*
* string token = 2;
* @param value The token to set.
* @return This builder for chaining.
*/
public Builder setToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
token_ = value;
onChanged();
return this;
}
/**
*
* Pagination token.
*
*
* string token = 2;
* @return This builder for chaining.
*/
public Builder clearToken() {
token_ = getDefaultInstance().getToken();
onChanged();
return this;
}
/**
*
* Pagination token.
*
*
* string token = 2;
* @param value The bytes for token to set.
* @return This builder for chaining.
*/
public Builder setTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
token_ = 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();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to app.
*
*
* map<string, string> metadata = 3;
*/
@java.lang.Override
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;
}
/**
*
* The metadata which will be sent to app.
*
*
* 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();
}
/**
*
* The metadata which will be sent to app.
*
*
* 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;
}
/**
*
* The metadata which will be sent to app.
*
*
* 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.proto.runtime.v1.QueryStateResponse)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.QueryStateResponse)
private static final io.dapr.v1.DaprProtos.QueryStateResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.QueryStateResponse();
}
public static io.dapr.v1.DaprProtos.QueryStateResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public QueryStateResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new QueryStateResponse(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.v1.DaprProtos.QueryStateResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface PublishEventRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.PublishEventRequest)
com.google.protobuf.MessageOrBuilder {
/**
*
* The name of the pubsub component
*
*
* string pubsub_name = 1;
* @return The pubsubName.
*/
java.lang.String getPubsubName();
/**
*
* The name of the pubsub component
*
*
* string pubsub_name = 1;
* @return The bytes for pubsubName.
*/
com.google.protobuf.ByteString
getPubsubNameBytes();
/**
*
* The pubsub topic
*
*
* string topic = 2;
* @return The topic.
*/
java.lang.String getTopic();
/**
*
* The pubsub topic
*
*
* string topic = 2;
* @return The bytes for topic.
*/
com.google.protobuf.ByteString
getTopicBytes();
/**
*
* The data which will be published to topic.
*
*
* bytes data = 3;
* @return The data.
*/
com.google.protobuf.ByteString getData();
/**
*
* The content type for the data (optional).
*
*
* string data_content_type = 4;
* @return The dataContentType.
*/
java.lang.String getDataContentType();
/**
*
* The content type for the data (optional).
*
*
* string data_content_type = 4;
* @return The bytes for dataContentType.
*/
com.google.protobuf.ByteString
getDataContentTypeBytes();
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
int getMetadataCount();
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
boolean containsMetadata(
java.lang.String key);
/**
* Use {@link #getMetadataMap()} instead.
*/
@java.lang.Deprecated
java.util.Map
getMetadata();
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
java.util.Map
getMetadataMap();
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
java.lang.String getMetadataOrDefault(
java.lang.String key,
java.lang.String defaultValue);
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
java.lang.String getMetadataOrThrow(
java.lang.String key);
}
/**
*
* PublishEventRequest is the message to publish event data to pubsub topic
*
*
* Protobuf type {@code dapr.proto.runtime.v1.PublishEventRequest}
*/
public static final class PublishEventRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:dapr.proto.runtime.v1.PublishEventRequest)
PublishEventRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use PublishEventRequest.newBuilder() to construct.
private PublishEventRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private PublishEventRequest() {
pubsubName_ = "";
topic_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
dataContentType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new PublishEventRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PublishEventRequest(
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();
pubsubName_ = s;
break;
}
case 18: {
java.lang.String s = input.readStringRequireUtf8();
topic_ = s;
break;
}
case 26: {
data_ = input.readBytes();
break;
}
case 34: {
java.lang.String s = input.readStringRequireUtf8();
dataContentType_ = s;
break;
}
case 42: {
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_PublishEventRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_PublishEventRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.PublishEventRequest.class, io.dapr.v1.DaprProtos.PublishEventRequest.Builder.class);
}
public static final int PUBSUB_NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object pubsubName_;
/**
*
* The name of the pubsub component
*
*
* string pubsub_name = 1;
* @return The pubsubName.
*/
@java.lang.Override
public java.lang.String getPubsubName() {
java.lang.Object ref = pubsubName_;
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();
pubsubName_ = s;
return s;
}
}
/**
*
* The name of the pubsub component
*
*
* string pubsub_name = 1;
* @return The bytes for pubsubName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPubsubNameBytes() {
java.lang.Object ref = pubsubName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pubsubName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOPIC_FIELD_NUMBER = 2;
private volatile java.lang.Object topic_;
/**
*
* The pubsub topic
*
*
* string topic = 2;
* @return The topic.
*/
@java.lang.Override
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;
}
}
/**
*
* The pubsub topic
*
*
* string topic = 2;
* @return The bytes for topic.
*/
@java.lang.Override
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 = 3;
private com.google.protobuf.ByteString data_;
/**
*
* The data which will be published to topic.
*
*
* bytes data = 3;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
public static final int DATA_CONTENT_TYPE_FIELD_NUMBER = 4;
private volatile java.lang.Object dataContentType_;
/**
*
* The content type for the data (optional).
*
*
* string data_content_type = 4;
* @return The dataContentType.
*/
@java.lang.Override
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;
}
}
/**
*
* The content type for the data (optional).
*
*
* string data_content_type = 4;
* @return The bytes for dataContentType.
*/
@java.lang.Override
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 METADATA_FIELD_NUMBER = 5;
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.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_PublishEventRequest_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();
}
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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;
}
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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 (!getPubsubNameBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pubsubName_);
}
if (!getTopicBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, topic_);
}
if (!data_.isEmpty()) {
output.writeBytes(3, data_);
}
if (!getDataContentTypeBytes().isEmpty()) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, dataContentType_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetMetadata(),
MetadataDefaultEntryHolder.defaultEntry,
5);
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!getPubsubNameBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, pubsubName_);
}
if (!getTopicBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topic_);
}
if (!data_.isEmpty()) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, data_);
}
if (!getDataContentTypeBytes().isEmpty()) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, dataContentType_);
}
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(5, 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.v1.DaprProtos.PublishEventRequest)) {
return super.equals(obj);
}
io.dapr.v1.DaprProtos.PublishEventRequest other = (io.dapr.v1.DaprProtos.PublishEventRequest) obj;
if (!getPubsubName()
.equals(other.getPubsubName())) return false;
if (!getTopic()
.equals(other.getTopic())) return false;
if (!getData()
.equals(other.getData())) return false;
if (!getDataContentType()
.equals(other.getDataContentType())) 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) + PUBSUB_NAME_FIELD_NUMBER;
hash = (53 * hash) + getPubsubName().hashCode();
hash = (37 * hash) + TOPIC_FIELD_NUMBER;
hash = (53 * hash) + getTopic().hashCode();
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
hash = (37 * hash) + DATA_CONTENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + getDataContentType().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.v1.DaprProtos.PublishEventRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.PublishEventRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.PublishEventRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.PublishEventRequest 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.v1.DaprProtos.PublishEventRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static io.dapr.v1.DaprProtos.PublishEventRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static io.dapr.v1.DaprProtos.PublishEventRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.PublishEventRequest 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.v1.DaprProtos.PublishEventRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.PublishEventRequest 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.v1.DaprProtos.PublishEventRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static io.dapr.v1.DaprProtos.PublishEventRequest 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.v1.DaprProtos.PublishEventRequest 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;
}
/**
*
* PublishEventRequest is the message to publish event data to pubsub topic
*
*
* Protobuf type {@code dapr.proto.runtime.v1.PublishEventRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:dapr.proto.runtime.v1.PublishEventRequest)
io.dapr.v1.DaprProtos.PublishEventRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_PublishEventRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 5:
return internalGetMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 5:
return internalGetMutableMetadata();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_PublishEventRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
io.dapr.v1.DaprProtos.PublishEventRequest.class, io.dapr.v1.DaprProtos.PublishEventRequest.Builder.class);
}
// Construct using io.dapr.v1.DaprProtos.PublishEventRequest.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();
pubsubName_ = "";
topic_ = "";
data_ = com.google.protobuf.ByteString.EMPTY;
dataContentType_ = "";
internalGetMutableMetadata().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return io.dapr.v1.DaprProtos.internal_static_dapr_proto_runtime_v1_PublishEventRequest_descriptor;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.PublishEventRequest getDefaultInstanceForType() {
return io.dapr.v1.DaprProtos.PublishEventRequest.getDefaultInstance();
}
@java.lang.Override
public io.dapr.v1.DaprProtos.PublishEventRequest build() {
io.dapr.v1.DaprProtos.PublishEventRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public io.dapr.v1.DaprProtos.PublishEventRequest buildPartial() {
io.dapr.v1.DaprProtos.PublishEventRequest result = new io.dapr.v1.DaprProtos.PublishEventRequest(this);
int from_bitField0_ = bitField0_;
result.pubsubName_ = pubsubName_;
result.topic_ = topic_;
result.data_ = data_;
result.dataContentType_ = dataContentType_;
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.v1.DaprProtos.PublishEventRequest) {
return mergeFrom((io.dapr.v1.DaprProtos.PublishEventRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(io.dapr.v1.DaprProtos.PublishEventRequest other) {
if (other == io.dapr.v1.DaprProtos.PublishEventRequest.getDefaultInstance()) return this;
if (!other.getPubsubName().isEmpty()) {
pubsubName_ = other.pubsubName_;
onChanged();
}
if (!other.getTopic().isEmpty()) {
topic_ = other.topic_;
onChanged();
}
if (other.getData() != com.google.protobuf.ByteString.EMPTY) {
setData(other.getData());
}
if (!other.getDataContentType().isEmpty()) {
dataContentType_ = other.dataContentType_;
onChanged();
}
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.v1.DaprProtos.PublishEventRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (io.dapr.v1.DaprProtos.PublishEventRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object pubsubName_ = "";
/**
*
* The name of the pubsub component
*
*
* string pubsub_name = 1;
* @return The pubsubName.
*/
public java.lang.String getPubsubName() {
java.lang.Object ref = pubsubName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
pubsubName_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The name of the pubsub component
*
*
* string pubsub_name = 1;
* @return The bytes for pubsubName.
*/
public com.google.protobuf.ByteString
getPubsubNameBytes() {
java.lang.Object ref = pubsubName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
pubsubName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The name of the pubsub component
*
*
* string pubsub_name = 1;
* @param value The pubsubName to set.
* @return This builder for chaining.
*/
public Builder setPubsubName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
pubsubName_ = value;
onChanged();
return this;
}
/**
*
* The name of the pubsub component
*
*
* string pubsub_name = 1;
* @return This builder for chaining.
*/
public Builder clearPubsubName() {
pubsubName_ = getDefaultInstance().getPubsubName();
onChanged();
return this;
}
/**
*
* The name of the pubsub component
*
*
* string pubsub_name = 1;
* @param value The bytes for pubsubName to set.
* @return This builder for chaining.
*/
public Builder setPubsubNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
pubsubName_ = value;
onChanged();
return this;
}
private java.lang.Object topic_ = "";
/**
*
* The pubsub topic
*
*
* string topic = 2;
* @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;
}
}
/**
*
* The pubsub topic
*
*
* string topic = 2;
* @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;
}
}
/**
*
* The pubsub topic
*
*
* string topic = 2;
* @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;
}
/**
*
* The pubsub topic
*
*
* string topic = 2;
* @return This builder for chaining.
*/
public Builder clearTopic() {
topic_ = getDefaultInstance().getTopic();
onChanged();
return this;
}
/**
*
* The pubsub topic
*
*
* string topic = 2;
* @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.ByteString data_ = com.google.protobuf.ByteString.EMPTY;
/**
*
* The data which will be published to topic.
*
*
* bytes data = 3;
* @return The data.
*/
@java.lang.Override
public com.google.protobuf.ByteString getData() {
return data_;
}
/**
*
* The data which will be published to topic.
*
*
* bytes data = 3;
* @param value The data to set.
* @return This builder for chaining.
*/
public Builder setData(com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
return this;
}
/**
*
* The data which will be published to topic.
*
*
* bytes data = 3;
* @return This builder for chaining.
*/
public Builder clearData() {
data_ = getDefaultInstance().getData();
onChanged();
return this;
}
private java.lang.Object dataContentType_ = "";
/**
*
* The content type for the data (optional).
*
*
* string data_content_type = 4;
* @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;
}
}
/**
*
* The content type for the data (optional).
*
*
* string data_content_type = 4;
* @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;
}
}
/**
*
* The content type for the data (optional).
*
*
* string data_content_type = 4;
* @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;
}
/**
*
* The content type for the data (optional).
*
*
* string data_content_type = 4;
* @return This builder for chaining.
*/
public Builder clearDataContentType() {
dataContentType_ = getDefaultInstance().getDataContentType();
onChanged();
return this;
}
/**
*
* The content type for the data (optional).
*
*
* string data_content_type = 4;
* @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 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();
}
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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.Override
@java.lang.Deprecated
public java.util.Map getMetadata() {
return getMetadataMap();
}
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
public java.util.Map getMetadataMap() {
return internalGetMetadata().getMap();
}
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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;
}
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
@java.lang.Override
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;
}
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
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();
}
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
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;
}
/**
*
* The metadata passing to pub components
* metadata property:
* - key : the key of the message.
*
*
* map<string, string> metadata = 5;
*/
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.proto.runtime.v1.PublishEventRequest)
}
// @@protoc_insertion_point(class_scope:dapr.proto.runtime.v1.PublishEventRequest)
private static final io.dapr.v1.DaprProtos.PublishEventRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new io.dapr.v1.DaprProtos.PublishEventRequest();
}
public static io.dapr.v1.DaprProtos.PublishEventRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public PublishEventRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PublishEventRequest(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.v1.DaprProtos.PublishEventRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface BulkPublishRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:dapr.proto.runtime.v1.BulkPublishRequest)
com.google.protobuf.MessageOrBuilder {
/**
*