All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.dapr.v1.CommonProtos Maven / Gradle / Ivy

There is a newer version: 1.13.0-rc-1
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: dapr/proto/common/v1/common.proto

package io.dapr.v1;

public final class CommonProtos {
  private CommonProtos() {}
  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 HTTPExtensionOrBuilder extends
      // @@protoc_insertion_point(interface_extends:dapr.proto.common.v1.HTTPExtension)
      com.google.protobuf.MessageOrBuilder {

    /**
     * 
     * Required. HTTP verb.
     * 
* * .dapr.proto.common.v1.HTTPExtension.Verb verb = 1; * @return The enum numeric value on the wire for verb. */ int getVerbValue(); /** *
     * Required. HTTP verb.
     * 
* * .dapr.proto.common.v1.HTTPExtension.Verb verb = 1; * @return The verb. */ io.dapr.v1.CommonProtos.HTTPExtension.Verb getVerb(); /** *
     * Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2
     * 
* * string querystring = 2; * @return The querystring. */ java.lang.String getQuerystring(); /** *
     * Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2
     * 
* * string querystring = 2; * @return The bytes for querystring. */ com.google.protobuf.ByteString getQuerystringBytes(); } /** *
   * HTTPExtension includes HTTP verb and querystring
   * when Dapr runtime delivers HTTP content.
   * 
   * For example, when callers calls http invoke api
   * POST http://localhost:3500/v1.0/invoke/<app_id>/method/<method>?query1=value1&query2=value2
   * 
   * Dapr runtime will parse POST as a verb and extract querystring to quersytring map.
   * 
* * Protobuf type {@code dapr.proto.common.v1.HTTPExtension} */ public static final class HTTPExtension extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:dapr.proto.common.v1.HTTPExtension) HTTPExtensionOrBuilder { private static final long serialVersionUID = 0L; // Use HTTPExtension.newBuilder() to construct. private HTTPExtension(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private HTTPExtension() { verb_ = 0; querystring_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new HTTPExtension(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private HTTPExtension( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); verb_ = rawValue; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); querystring_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.CommonProtos.internal_static_dapr_proto_common_v1_HTTPExtension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_HTTPExtension_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.HTTPExtension.class, io.dapr.v1.CommonProtos.HTTPExtension.Builder.class); } /** *
     * Type of HTTP 1.1 Methods
     * RFC 7231: https://tools.ietf.org/html/rfc7231#page-24
     * RFC 5789: https://datatracker.ietf.org/doc/html/rfc5789
     * 
* * Protobuf enum {@code dapr.proto.common.v1.HTTPExtension.Verb} */ public enum Verb implements com.google.protobuf.ProtocolMessageEnum { /** * NONE = 0; */ NONE(0), /** * GET = 1; */ GET(1), /** * HEAD = 2; */ HEAD(2), /** * POST = 3; */ POST(3), /** * PUT = 4; */ PUT(4), /** * DELETE = 5; */ DELETE(5), /** * CONNECT = 6; */ CONNECT(6), /** * OPTIONS = 7; */ OPTIONS(7), /** * TRACE = 8; */ TRACE(8), /** * PATCH = 9; */ PATCH(9), UNRECOGNIZED(-1), ; /** * NONE = 0; */ public static final int NONE_VALUE = 0; /** * GET = 1; */ public static final int GET_VALUE = 1; /** * HEAD = 2; */ public static final int HEAD_VALUE = 2; /** * POST = 3; */ public static final int POST_VALUE = 3; /** * PUT = 4; */ public static final int PUT_VALUE = 4; /** * DELETE = 5; */ public static final int DELETE_VALUE = 5; /** * CONNECT = 6; */ public static final int CONNECT_VALUE = 6; /** * OPTIONS = 7; */ public static final int OPTIONS_VALUE = 7; /** * TRACE = 8; */ public static final int TRACE_VALUE = 8; /** * PATCH = 9; */ public static final int PATCH_VALUE = 9; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Verb valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Verb forNumber(int value) { switch (value) { case 0: return NONE; case 1: return GET; case 2: return HEAD; case 3: return POST; case 4: return PUT; case 5: return DELETE; case 6: return CONNECT; case 7: return OPTIONS; case 8: return TRACE; case 9: return PATCH; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Verb> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Verb findValueByNumber(int number) { return Verb.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.dapr.v1.CommonProtos.HTTPExtension.getDescriptor().getEnumTypes().get(0); } private static final Verb[] VALUES = values(); public static Verb valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private Verb(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:dapr.proto.common.v1.HTTPExtension.Verb) } public static final int VERB_FIELD_NUMBER = 1; private int verb_; /** *
     * Required. HTTP verb.
     * 
* * .dapr.proto.common.v1.HTTPExtension.Verb verb = 1; * @return The enum numeric value on the wire for verb. */ @java.lang.Override public int getVerbValue() { return verb_; } /** *
     * Required. HTTP verb.
     * 
* * .dapr.proto.common.v1.HTTPExtension.Verb verb = 1; * @return The verb. */ @java.lang.Override public io.dapr.v1.CommonProtos.HTTPExtension.Verb getVerb() { @SuppressWarnings("deprecation") io.dapr.v1.CommonProtos.HTTPExtension.Verb result = io.dapr.v1.CommonProtos.HTTPExtension.Verb.valueOf(verb_); return result == null ? io.dapr.v1.CommonProtos.HTTPExtension.Verb.UNRECOGNIZED : result; } public static final int QUERYSTRING_FIELD_NUMBER = 2; private volatile java.lang.Object querystring_; /** *
     * Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2
     * 
* * string querystring = 2; * @return The querystring. */ @java.lang.Override public java.lang.String getQuerystring() { java.lang.Object ref = querystring_; 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(); querystring_ = s; return s; } } /** *
     * Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2
     * 
* * string querystring = 2; * @return The bytes for querystring. */ @java.lang.Override public com.google.protobuf.ByteString getQuerystringBytes() { java.lang.Object ref = querystring_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); querystring_ = 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 (verb_ != io.dapr.v1.CommonProtos.HTTPExtension.Verb.NONE.getNumber()) { output.writeEnum(1, verb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(querystring_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, querystring_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (verb_ != io.dapr.v1.CommonProtos.HTTPExtension.Verb.NONE.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, verb_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(querystring_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, querystring_); } 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.CommonProtos.HTTPExtension)) { return super.equals(obj); } io.dapr.v1.CommonProtos.HTTPExtension other = (io.dapr.v1.CommonProtos.HTTPExtension) obj; if (verb_ != other.verb_) return false; if (!getQuerystring() .equals(other.getQuerystring())) 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) + VERB_FIELD_NUMBER; hash = (53 * hash) + verb_; hash = (37 * hash) + QUERYSTRING_FIELD_NUMBER; hash = (53 * hash) + getQuerystring().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.dapr.v1.CommonProtos.HTTPExtension parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.HTTPExtension 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.CommonProtos.HTTPExtension parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.HTTPExtension 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.CommonProtos.HTTPExtension parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.HTTPExtension parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.dapr.v1.CommonProtos.HTTPExtension parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.HTTPExtension 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.CommonProtos.HTTPExtension parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.HTTPExtension 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.CommonProtos.HTTPExtension parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.HTTPExtension 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.CommonProtos.HTTPExtension 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; } /** *
     * HTTPExtension includes HTTP verb and querystring
     * when Dapr runtime delivers HTTP content.
     * 
     * For example, when callers calls http invoke api
     * POST http://localhost:3500/v1.0/invoke/<app_id>/method/<method>?query1=value1&query2=value2
     * 
     * Dapr runtime will parse POST as a verb and extract querystring to quersytring map.
     * 
* * Protobuf type {@code dapr.proto.common.v1.HTTPExtension} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:dapr.proto.common.v1.HTTPExtension) io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_HTTPExtension_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_HTTPExtension_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.HTTPExtension.class, io.dapr.v1.CommonProtos.HTTPExtension.Builder.class); } // Construct using io.dapr.v1.CommonProtos.HTTPExtension.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(); verb_ = 0; querystring_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_HTTPExtension_descriptor; } @java.lang.Override public io.dapr.v1.CommonProtos.HTTPExtension getDefaultInstanceForType() { return io.dapr.v1.CommonProtos.HTTPExtension.getDefaultInstance(); } @java.lang.Override public io.dapr.v1.CommonProtos.HTTPExtension build() { io.dapr.v1.CommonProtos.HTTPExtension result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.dapr.v1.CommonProtos.HTTPExtension buildPartial() { io.dapr.v1.CommonProtos.HTTPExtension result = new io.dapr.v1.CommonProtos.HTTPExtension(this); result.verb_ = verb_; result.querystring_ = querystring_; 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.CommonProtos.HTTPExtension) { return mergeFrom((io.dapr.v1.CommonProtos.HTTPExtension)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.dapr.v1.CommonProtos.HTTPExtension other) { if (other == io.dapr.v1.CommonProtos.HTTPExtension.getDefaultInstance()) return this; if (other.verb_ != 0) { setVerbValue(other.getVerbValue()); } if (!other.getQuerystring().isEmpty()) { querystring_ = other.querystring_; 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.CommonProtos.HTTPExtension parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.dapr.v1.CommonProtos.HTTPExtension) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int verb_ = 0; /** *
       * Required. HTTP verb.
       * 
* * .dapr.proto.common.v1.HTTPExtension.Verb verb = 1; * @return The enum numeric value on the wire for verb. */ @java.lang.Override public int getVerbValue() { return verb_; } /** *
       * Required. HTTP verb.
       * 
* * .dapr.proto.common.v1.HTTPExtension.Verb verb = 1; * @param value The enum numeric value on the wire for verb to set. * @return This builder for chaining. */ public Builder setVerbValue(int value) { verb_ = value; onChanged(); return this; } /** *
       * Required. HTTP verb.
       * 
* * .dapr.proto.common.v1.HTTPExtension.Verb verb = 1; * @return The verb. */ @java.lang.Override public io.dapr.v1.CommonProtos.HTTPExtension.Verb getVerb() { @SuppressWarnings("deprecation") io.dapr.v1.CommonProtos.HTTPExtension.Verb result = io.dapr.v1.CommonProtos.HTTPExtension.Verb.valueOf(verb_); return result == null ? io.dapr.v1.CommonProtos.HTTPExtension.Verb.UNRECOGNIZED : result; } /** *
       * Required. HTTP verb.
       * 
* * .dapr.proto.common.v1.HTTPExtension.Verb verb = 1; * @param value The verb to set. * @return This builder for chaining. */ public Builder setVerb(io.dapr.v1.CommonProtos.HTTPExtension.Verb value) { if (value == null) { throw new NullPointerException(); } verb_ = value.getNumber(); onChanged(); return this; } /** *
       * Required. HTTP verb.
       * 
* * .dapr.proto.common.v1.HTTPExtension.Verb verb = 1; * @return This builder for chaining. */ public Builder clearVerb() { verb_ = 0; onChanged(); return this; } private java.lang.Object querystring_ = ""; /** *
       * Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2
       * 
* * string querystring = 2; * @return The querystring. */ public java.lang.String getQuerystring() { java.lang.Object ref = querystring_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); querystring_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2
       * 
* * string querystring = 2; * @return The bytes for querystring. */ public com.google.protobuf.ByteString getQuerystringBytes() { java.lang.Object ref = querystring_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); querystring_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2
       * 
* * string querystring = 2; * @param value The querystring to set. * @return This builder for chaining. */ public Builder setQuerystring( java.lang.String value) { if (value == null) { throw new NullPointerException(); } querystring_ = value; onChanged(); return this; } /** *
       * Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2
       * 
* * string querystring = 2; * @return This builder for chaining. */ public Builder clearQuerystring() { querystring_ = getDefaultInstance().getQuerystring(); onChanged(); return this; } /** *
       * Optional. querystring represents an encoded HTTP url query string in the following format: name=value&name2=value2
       * 
* * string querystring = 2; * @param value The bytes for querystring to set. * @return This builder for chaining. */ public Builder setQuerystringBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); querystring_ = 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.common.v1.HTTPExtension) } // @@protoc_insertion_point(class_scope:dapr.proto.common.v1.HTTPExtension) private static final io.dapr.v1.CommonProtos.HTTPExtension DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.dapr.v1.CommonProtos.HTTPExtension(); } public static io.dapr.v1.CommonProtos.HTTPExtension getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public HTTPExtension parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new HTTPExtension(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.CommonProtos.HTTPExtension getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InvokeRequestOrBuilder extends // @@protoc_insertion_point(interface_extends:dapr.proto.common.v1.InvokeRequest) com.google.protobuf.MessageOrBuilder { /** *
     * Required. method is a method name which will be invoked by caller.
     * 
* * string method = 1; * @return The method. */ java.lang.String getMethod(); /** *
     * Required. method is a method name which will be invoked by caller.
     * 
* * string method = 1; * @return The bytes for method. */ com.google.protobuf.ByteString getMethodBytes(); /** *
     * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
     * Dapr treats Any.value as bytes type if Any.type_url is unset.
     * 
* * .google.protobuf.Any data = 2; * @return Whether the data field is set. */ boolean hasData(); /** *
     * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
     * Dapr treats Any.value as bytes type if Any.type_url is unset.
     * 
* * .google.protobuf.Any data = 2; * @return The data. */ com.google.protobuf.Any getData(); /** *
     * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
     * Dapr treats Any.value as bytes type if Any.type_url is unset.
     * 
* * .google.protobuf.Any data = 2; */ com.google.protobuf.AnyOrBuilder getDataOrBuilder(); /** *
     * The type of data content.
     * This field is required if data delivers http request body
     * Otherwise, this is optional.
     * 
* * string content_type = 3; * @return The contentType. */ java.lang.String getContentType(); /** *
     * The type of data content.
     * This field is required if data delivers http request body
     * Otherwise, this is optional.
     * 
* * string content_type = 3; * @return The bytes for contentType. */ com.google.protobuf.ByteString getContentTypeBytes(); /** *
     * HTTP specific fields if request conveys http-compatible request.
     * This field is required for http-compatible request. Otherwise,
     * this field is optional.
     * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; * @return Whether the httpExtension field is set. */ boolean hasHttpExtension(); /** *
     * HTTP specific fields if request conveys http-compatible request.
     * This field is required for http-compatible request. Otherwise,
     * this field is optional.
     * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; * @return The httpExtension. */ io.dapr.v1.CommonProtos.HTTPExtension getHttpExtension(); /** *
     * HTTP specific fields if request conveys http-compatible request.
     * This field is required for http-compatible request. Otherwise,
     * this field is optional.
     * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; */ io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder getHttpExtensionOrBuilder(); } /** *
   * InvokeRequest is the message to invoke a method with the data.
   * This message is used in InvokeService of Dapr gRPC Service and OnInvoke
   * of AppCallback gRPC service.
   * 
* * Protobuf type {@code dapr.proto.common.v1.InvokeRequest} */ public static final class InvokeRequest extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:dapr.proto.common.v1.InvokeRequest) InvokeRequestOrBuilder { private static final long serialVersionUID = 0L; // Use InvokeRequest.newBuilder() to construct. private InvokeRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InvokeRequest() { method_ = ""; contentType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InvokeRequest(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InvokeRequest( 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(); method_ = s; break; } case 18: { com.google.protobuf.Any.Builder subBuilder = null; if (data_ != null) { subBuilder = data_.toBuilder(); } data_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(data_); data_ = subBuilder.buildPartial(); } break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); contentType_ = s; break; } case 34: { io.dapr.v1.CommonProtos.HTTPExtension.Builder subBuilder = null; if (httpExtension_ != null) { subBuilder = httpExtension_.toBuilder(); } httpExtension_ = input.readMessage(io.dapr.v1.CommonProtos.HTTPExtension.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(httpExtension_); httpExtension_ = subBuilder.buildPartial(); } break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.CommonProtos.internal_static_dapr_proto_common_v1_InvokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_InvokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.InvokeRequest.class, io.dapr.v1.CommonProtos.InvokeRequest.Builder.class); } public static final int METHOD_FIELD_NUMBER = 1; private volatile java.lang.Object method_; /** *
     * Required. method is a method name which will be invoked by caller.
     * 
* * string method = 1; * @return The method. */ @java.lang.Override public java.lang.String getMethod() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } } /** *
     * Required. method is a method name which will be invoked by caller.
     * 
* * string method = 1; * @return The bytes for method. */ @java.lang.Override public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_FIELD_NUMBER = 2; private com.google.protobuf.Any data_; /** *
     * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
     * Dapr treats Any.value as bytes type if Any.type_url is unset.
     * 
* * .google.protobuf.Any data = 2; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return data_ != null; } /** *
     * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
     * Dapr treats Any.value as bytes type if Any.type_url is unset.
     * 
* * .google.protobuf.Any data = 2; * @return The data. */ @java.lang.Override public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; } /** *
     * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
     * Dapr treats Any.value as bytes type if Any.type_url is unset.
     * 
* * .google.protobuf.Any data = 2; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getDataOrBuilder() { return getData(); } public static final int CONTENT_TYPE_FIELD_NUMBER = 3; private volatile java.lang.Object contentType_; /** *
     * The type of data content.
     * This field is required if data delivers http request body
     * Otherwise, this is optional.
     * 
* * string content_type = 3; * @return The contentType. */ @java.lang.Override public java.lang.String getContentType() { java.lang.Object ref = contentType_; 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(); contentType_ = s; return s; } } /** *
     * The type of data content.
     * This field is required if data delivers http request body
     * Otherwise, this is optional.
     * 
* * string content_type = 3; * @return The bytes for contentType. */ @java.lang.Override public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HTTP_EXTENSION_FIELD_NUMBER = 4; private io.dapr.v1.CommonProtos.HTTPExtension httpExtension_; /** *
     * HTTP specific fields if request conveys http-compatible request.
     * This field is required for http-compatible request. Otherwise,
     * this field is optional.
     * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; * @return Whether the httpExtension field is set. */ @java.lang.Override public boolean hasHttpExtension() { return httpExtension_ != null; } /** *
     * HTTP specific fields if request conveys http-compatible request.
     * This field is required for http-compatible request. Otherwise,
     * this field is optional.
     * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; * @return The httpExtension. */ @java.lang.Override public io.dapr.v1.CommonProtos.HTTPExtension getHttpExtension() { return httpExtension_ == null ? io.dapr.v1.CommonProtos.HTTPExtension.getDefaultInstance() : httpExtension_; } /** *
     * HTTP specific fields if request conveys http-compatible request.
     * This field is required for http-compatible request. Otherwise,
     * this field is optional.
     * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; */ @java.lang.Override public io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder getHttpExtensionOrBuilder() { return getHttpExtension(); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, method_); } if (data_ != null) { output.writeMessage(2, getData()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, contentType_); } if (httpExtension_ != null) { output.writeMessage(4, getHttpExtension()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(method_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, method_); } if (data_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getData()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, contentType_); } if (httpExtension_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getHttpExtension()); } 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.CommonProtos.InvokeRequest)) { return super.equals(obj); } io.dapr.v1.CommonProtos.InvokeRequest other = (io.dapr.v1.CommonProtos.InvokeRequest) obj; if (!getMethod() .equals(other.getMethod())) return false; if (hasData() != other.hasData()) return false; if (hasData()) { if (!getData() .equals(other.getData())) return false; } if (!getContentType() .equals(other.getContentType())) return false; if (hasHttpExtension() != other.hasHttpExtension()) return false; if (hasHttpExtension()) { if (!getHttpExtension() .equals(other.getHttpExtension())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + METHOD_FIELD_NUMBER; hash = (53 * hash) + getMethod().hashCode(); if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getContentType().hashCode(); if (hasHttpExtension()) { hash = (37 * hash) + HTTP_EXTENSION_FIELD_NUMBER; hash = (53 * hash) + getHttpExtension().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.dapr.v1.CommonProtos.InvokeRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.InvokeRequest 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.CommonProtos.InvokeRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.InvokeRequest 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.CommonProtos.InvokeRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.InvokeRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.dapr.v1.CommonProtos.InvokeRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.InvokeRequest 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.CommonProtos.InvokeRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.InvokeRequest 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.CommonProtos.InvokeRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.InvokeRequest 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.CommonProtos.InvokeRequest 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; } /** *
     * InvokeRequest is the message to invoke a method with the data.
     * This message is used in InvokeService of Dapr gRPC Service and OnInvoke
     * of AppCallback gRPC service.
     * 
* * Protobuf type {@code dapr.proto.common.v1.InvokeRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:dapr.proto.common.v1.InvokeRequest) io.dapr.v1.CommonProtos.InvokeRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_InvokeRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_InvokeRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.InvokeRequest.class, io.dapr.v1.CommonProtos.InvokeRequest.Builder.class); } // Construct using io.dapr.v1.CommonProtos.InvokeRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); method_ = ""; if (dataBuilder_ == null) { data_ = null; } else { data_ = null; dataBuilder_ = null; } contentType_ = ""; if (httpExtensionBuilder_ == null) { httpExtension_ = null; } else { httpExtension_ = null; httpExtensionBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_InvokeRequest_descriptor; } @java.lang.Override public io.dapr.v1.CommonProtos.InvokeRequest getDefaultInstanceForType() { return io.dapr.v1.CommonProtos.InvokeRequest.getDefaultInstance(); } @java.lang.Override public io.dapr.v1.CommonProtos.InvokeRequest build() { io.dapr.v1.CommonProtos.InvokeRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.dapr.v1.CommonProtos.InvokeRequest buildPartial() { io.dapr.v1.CommonProtos.InvokeRequest result = new io.dapr.v1.CommonProtos.InvokeRequest(this); result.method_ = method_; if (dataBuilder_ == null) { result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } result.contentType_ = contentType_; if (httpExtensionBuilder_ == null) { result.httpExtension_ = httpExtension_; } else { result.httpExtension_ = httpExtensionBuilder_.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.CommonProtos.InvokeRequest) { return mergeFrom((io.dapr.v1.CommonProtos.InvokeRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.dapr.v1.CommonProtos.InvokeRequest other) { if (other == io.dapr.v1.CommonProtos.InvokeRequest.getDefaultInstance()) return this; if (!other.getMethod().isEmpty()) { method_ = other.method_; onChanged(); } if (other.hasData()) { mergeData(other.getData()); } if (!other.getContentType().isEmpty()) { contentType_ = other.contentType_; onChanged(); } if (other.hasHttpExtension()) { mergeHttpExtension(other.getHttpExtension()); } 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.CommonProtos.InvokeRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.dapr.v1.CommonProtos.InvokeRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object method_ = ""; /** *
       * Required. method is a method name which will be invoked by caller.
       * 
* * string method = 1; * @return The method. */ public java.lang.String getMethod() { java.lang.Object ref = method_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); method_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. method is a method name which will be invoked by caller.
       * 
* * string method = 1; * @return The bytes for method. */ public com.google.protobuf.ByteString getMethodBytes() { java.lang.Object ref = method_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); method_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. method is a method name which will be invoked by caller.
       * 
* * string method = 1; * @param value The method to set. * @return This builder for chaining. */ public Builder setMethod( java.lang.String value) { if (value == null) { throw new NullPointerException(); } method_ = value; onChanged(); return this; } /** *
       * Required. method is a method name which will be invoked by caller.
       * 
* * string method = 1; * @return This builder for chaining. */ public Builder clearMethod() { method_ = getDefaultInstance().getMethod(); onChanged(); return this; } /** *
       * Required. method is a method name which will be invoked by caller.
       * 
* * string method = 1; * @param value The bytes for method to set. * @return This builder for chaining. */ public Builder setMethodBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); method_ = value; onChanged(); return this; } private com.google.protobuf.Any data_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** *
       * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
       * Dapr treats Any.value as bytes type if Any.type_url is unset.
       * 
* * .google.protobuf.Any data = 2; * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** *
       * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
       * Dapr treats Any.value as bytes type if Any.type_url is unset.
       * 
* * .google.protobuf.Any data = 2; * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; } else { return dataBuilder_.getMessage(); } } /** *
       * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
       * Dapr treats Any.value as bytes type if Any.type_url is unset.
       * 
* * .google.protobuf.Any data = 2; */ public Builder setData(com.google.protobuf.Any value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { dataBuilder_.setMessage(value); } return this; } /** *
       * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
       * Dapr treats Any.value as bytes type if Any.type_url is unset.
       * 
* * .google.protobuf.Any data = 2; */ public Builder setData( com.google.protobuf.Any.Builder builderForValue) { if (dataBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { dataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
       * Dapr treats Any.value as bytes type if Any.type_url is unset.
       * 
* * .google.protobuf.Any data = 2; */ public Builder mergeData(com.google.protobuf.Any value) { if (dataBuilder_ == null) { if (data_ != null) { data_ = com.google.protobuf.Any.newBuilder(data_).mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { dataBuilder_.mergeFrom(value); } return this; } /** *
       * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
       * Dapr treats Any.value as bytes type if Any.type_url is unset.
       * 
* * .google.protobuf.Any data = 2; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = null; onChanged(); } else { data_ = null; dataBuilder_ = null; } return this; } /** *
       * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
       * Dapr treats Any.value as bytes type if Any.type_url is unset.
       * 
* * .google.protobuf.Any data = 2; */ public com.google.protobuf.Any.Builder getDataBuilder() { onChanged(); return getDataFieldBuilder().getBuilder(); } /** *
       * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
       * Dapr treats Any.value as bytes type if Any.type_url is unset.
       * 
* * .google.protobuf.Any data = 2; */ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilder(); } else { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; } } /** *
       * Required in unary RPCs. Bytes value or Protobuf message which caller sent.
       * Dapr treats Any.value as bytes type if Any.type_url is unset.
       * 
* * .google.protobuf.Any data = 2; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getData(), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private java.lang.Object contentType_ = ""; /** *
       * The type of data content.
       * This field is required if data delivers http request body
       * Otherwise, this is optional.
       * 
* * string content_type = 3; * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * The type of data content.
       * This field is required if data delivers http request body
       * Otherwise, this is optional.
       * 
* * string content_type = 3; * @return The bytes for contentType. */ public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * The type of data content.
       * This field is required if data delivers http request body
       * Otherwise, this is optional.
       * 
* * string content_type = 3; * @param value The contentType to set. * @return This builder for chaining. */ public Builder setContentType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contentType_ = value; onChanged(); return this; } /** *
       * The type of data content.
       * This field is required if data delivers http request body
       * Otherwise, this is optional.
       * 
* * string content_type = 3; * @return This builder for chaining. */ public Builder clearContentType() { contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** *
       * The type of data content.
       * This field is required if data delivers http request body
       * Otherwise, this is optional.
       * 
* * string content_type = 3; * @param value The bytes for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentType_ = value; onChanged(); return this; } private io.dapr.v1.CommonProtos.HTTPExtension httpExtension_; private com.google.protobuf.SingleFieldBuilderV3< io.dapr.v1.CommonProtos.HTTPExtension, io.dapr.v1.CommonProtos.HTTPExtension.Builder, io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder> httpExtensionBuilder_; /** *
       * HTTP specific fields if request conveys http-compatible request.
       * This field is required for http-compatible request. Otherwise,
       * this field is optional.
       * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; * @return Whether the httpExtension field is set. */ public boolean hasHttpExtension() { return httpExtensionBuilder_ != null || httpExtension_ != null; } /** *
       * HTTP specific fields if request conveys http-compatible request.
       * This field is required for http-compatible request. Otherwise,
       * this field is optional.
       * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; * @return The httpExtension. */ public io.dapr.v1.CommonProtos.HTTPExtension getHttpExtension() { if (httpExtensionBuilder_ == null) { return httpExtension_ == null ? io.dapr.v1.CommonProtos.HTTPExtension.getDefaultInstance() : httpExtension_; } else { return httpExtensionBuilder_.getMessage(); } } /** *
       * HTTP specific fields if request conveys http-compatible request.
       * This field is required for http-compatible request. Otherwise,
       * this field is optional.
       * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; */ public Builder setHttpExtension(io.dapr.v1.CommonProtos.HTTPExtension value) { if (httpExtensionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } httpExtension_ = value; onChanged(); } else { httpExtensionBuilder_.setMessage(value); } return this; } /** *
       * HTTP specific fields if request conveys http-compatible request.
       * This field is required for http-compatible request. Otherwise,
       * this field is optional.
       * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; */ public Builder setHttpExtension( io.dapr.v1.CommonProtos.HTTPExtension.Builder builderForValue) { if (httpExtensionBuilder_ == null) { httpExtension_ = builderForValue.build(); onChanged(); } else { httpExtensionBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * HTTP specific fields if request conveys http-compatible request.
       * This field is required for http-compatible request. Otherwise,
       * this field is optional.
       * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; */ public Builder mergeHttpExtension(io.dapr.v1.CommonProtos.HTTPExtension value) { if (httpExtensionBuilder_ == null) { if (httpExtension_ != null) { httpExtension_ = io.dapr.v1.CommonProtos.HTTPExtension.newBuilder(httpExtension_).mergeFrom(value).buildPartial(); } else { httpExtension_ = value; } onChanged(); } else { httpExtensionBuilder_.mergeFrom(value); } return this; } /** *
       * HTTP specific fields if request conveys http-compatible request.
       * This field is required for http-compatible request. Otherwise,
       * this field is optional.
       * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; */ public Builder clearHttpExtension() { if (httpExtensionBuilder_ == null) { httpExtension_ = null; onChanged(); } else { httpExtension_ = null; httpExtensionBuilder_ = null; } return this; } /** *
       * HTTP specific fields if request conveys http-compatible request.
       * This field is required for http-compatible request. Otherwise,
       * this field is optional.
       * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; */ public io.dapr.v1.CommonProtos.HTTPExtension.Builder getHttpExtensionBuilder() { onChanged(); return getHttpExtensionFieldBuilder().getBuilder(); } /** *
       * HTTP specific fields if request conveys http-compatible request.
       * This field is required for http-compatible request. Otherwise,
       * this field is optional.
       * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; */ public io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder getHttpExtensionOrBuilder() { if (httpExtensionBuilder_ != null) { return httpExtensionBuilder_.getMessageOrBuilder(); } else { return httpExtension_ == null ? io.dapr.v1.CommonProtos.HTTPExtension.getDefaultInstance() : httpExtension_; } } /** *
       * HTTP specific fields if request conveys http-compatible request.
       * This field is required for http-compatible request. Otherwise,
       * this field is optional.
       * 
* * .dapr.proto.common.v1.HTTPExtension http_extension = 4; */ private com.google.protobuf.SingleFieldBuilderV3< io.dapr.v1.CommonProtos.HTTPExtension, io.dapr.v1.CommonProtos.HTTPExtension.Builder, io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder> getHttpExtensionFieldBuilder() { if (httpExtensionBuilder_ == null) { httpExtensionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< io.dapr.v1.CommonProtos.HTTPExtension, io.dapr.v1.CommonProtos.HTTPExtension.Builder, io.dapr.v1.CommonProtos.HTTPExtensionOrBuilder>( getHttpExtension(), getParentForChildren(), isClean()); httpExtension_ = null; } return httpExtensionBuilder_; } @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.common.v1.InvokeRequest) } // @@protoc_insertion_point(class_scope:dapr.proto.common.v1.InvokeRequest) private static final io.dapr.v1.CommonProtos.InvokeRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.dapr.v1.CommonProtos.InvokeRequest(); } public static io.dapr.v1.CommonProtos.InvokeRequest getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InvokeRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InvokeRequest(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.CommonProtos.InvokeRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InvokeResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:dapr.proto.common.v1.InvokeResponse) com.google.protobuf.MessageOrBuilder { /** *
     * Required in unary RPCs. The content body of InvokeService response.
     * 
* * .google.protobuf.Any data = 1; * @return Whether the data field is set. */ boolean hasData(); /** *
     * Required in unary RPCs. The content body of InvokeService response.
     * 
* * .google.protobuf.Any data = 1; * @return The data. */ com.google.protobuf.Any getData(); /** *
     * Required in unary RPCs. The content body of InvokeService response.
     * 
* * .google.protobuf.Any data = 1; */ com.google.protobuf.AnyOrBuilder getDataOrBuilder(); /** *
     * Required. The type of data content.
     * 
* * string content_type = 2; * @return The contentType. */ java.lang.String getContentType(); /** *
     * Required. The type of data content.
     * 
* * string content_type = 2; * @return The bytes for contentType. */ com.google.protobuf.ByteString getContentTypeBytes(); } /** *
   * InvokeResponse is the response message including data and its content type
   * from app callback.
   * This message is used in InvokeService of Dapr gRPC Service and OnInvoke
   * of AppCallback gRPC service.
   * 
* * Protobuf type {@code dapr.proto.common.v1.InvokeResponse} */ public static final class InvokeResponse extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:dapr.proto.common.v1.InvokeResponse) InvokeResponseOrBuilder { private static final long serialVersionUID = 0L; // Use InvokeResponse.newBuilder() to construct. private InvokeResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InvokeResponse() { contentType_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InvokeResponse(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private InvokeResponse( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { com.google.protobuf.Any.Builder subBuilder = null; if (data_ != null) { subBuilder = data_.toBuilder(); } data_ = input.readMessage(com.google.protobuf.Any.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(data_); data_ = subBuilder.buildPartial(); } break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); contentType_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.CommonProtos.internal_static_dapr_proto_common_v1_InvokeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_InvokeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.InvokeResponse.class, io.dapr.v1.CommonProtos.InvokeResponse.Builder.class); } public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.Any data_; /** *
     * Required in unary RPCs. The content body of InvokeService response.
     * 
* * .google.protobuf.Any data = 1; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return data_ != null; } /** *
     * Required in unary RPCs. The content body of InvokeService response.
     * 
* * .google.protobuf.Any data = 1; * @return The data. */ @java.lang.Override public com.google.protobuf.Any getData() { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; } /** *
     * Required in unary RPCs. The content body of InvokeService response.
     * 
* * .google.protobuf.Any data = 1; */ @java.lang.Override public com.google.protobuf.AnyOrBuilder getDataOrBuilder() { return getData(); } public static final int CONTENT_TYPE_FIELD_NUMBER = 2; private volatile java.lang.Object contentType_; /** *
     * Required. The type of data content.
     * 
* * string content_type = 2; * @return The contentType. */ @java.lang.Override public java.lang.String getContentType() { java.lang.Object ref = contentType_; 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(); contentType_ = s; return s; } } /** *
     * Required. The type of data content.
     * 
* * string content_type = 2; * @return The bytes for contentType. */ @java.lang.Override public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (data_ != null) { output.writeMessage(1, getData()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, contentType_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (data_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getData()); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(contentType_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, contentType_); } 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.CommonProtos.InvokeResponse)) { return super.equals(obj); } io.dapr.v1.CommonProtos.InvokeResponse other = (io.dapr.v1.CommonProtos.InvokeResponse) obj; if (hasData() != other.hasData()) return false; if (hasData()) { if (!getData() .equals(other.getData())) return false; } if (!getContentType() .equals(other.getContentType())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } hash = (37 * hash) + CONTENT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getContentType().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.dapr.v1.CommonProtos.InvokeResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.InvokeResponse 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.CommonProtos.InvokeResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.InvokeResponse 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.CommonProtos.InvokeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.InvokeResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.dapr.v1.CommonProtos.InvokeResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.InvokeResponse 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.CommonProtos.InvokeResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.InvokeResponse 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.CommonProtos.InvokeResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.InvokeResponse 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.CommonProtos.InvokeResponse 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; } /** *
     * InvokeResponse is the response message including data and its content type
     * from app callback.
     * This message is used in InvokeService of Dapr gRPC Service and OnInvoke
     * of AppCallback gRPC service.
     * 
* * Protobuf type {@code dapr.proto.common.v1.InvokeResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:dapr.proto.common.v1.InvokeResponse) io.dapr.v1.CommonProtos.InvokeResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_InvokeResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_InvokeResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.InvokeResponse.class, io.dapr.v1.CommonProtos.InvokeResponse.Builder.class); } // Construct using io.dapr.v1.CommonProtos.InvokeResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); if (dataBuilder_ == null) { data_ = null; } else { data_ = null; dataBuilder_ = null; } contentType_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_InvokeResponse_descriptor; } @java.lang.Override public io.dapr.v1.CommonProtos.InvokeResponse getDefaultInstanceForType() { return io.dapr.v1.CommonProtos.InvokeResponse.getDefaultInstance(); } @java.lang.Override public io.dapr.v1.CommonProtos.InvokeResponse build() { io.dapr.v1.CommonProtos.InvokeResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.dapr.v1.CommonProtos.InvokeResponse buildPartial() { io.dapr.v1.CommonProtos.InvokeResponse result = new io.dapr.v1.CommonProtos.InvokeResponse(this); if (dataBuilder_ == null) { result.data_ = data_; } else { result.data_ = dataBuilder_.build(); } result.contentType_ = contentType_; 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.CommonProtos.InvokeResponse) { return mergeFrom((io.dapr.v1.CommonProtos.InvokeResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.dapr.v1.CommonProtos.InvokeResponse other) { if (other == io.dapr.v1.CommonProtos.InvokeResponse.getDefaultInstance()) return this; if (other.hasData()) { mergeData(other.getData()); } if (!other.getContentType().isEmpty()) { contentType_ = other.contentType_; 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.CommonProtos.InvokeResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.dapr.v1.CommonProtos.InvokeResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.Any data_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> dataBuilder_; /** *
       * Required in unary RPCs. The content body of InvokeService response.
       * 
* * .google.protobuf.Any data = 1; * @return Whether the data field is set. */ public boolean hasData() { return dataBuilder_ != null || data_ != null; } /** *
       * Required in unary RPCs. The content body of InvokeService response.
       * 
* * .google.protobuf.Any data = 1; * @return The data. */ public com.google.protobuf.Any getData() { if (dataBuilder_ == null) { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; } else { return dataBuilder_.getMessage(); } } /** *
       * Required in unary RPCs. The content body of InvokeService response.
       * 
* * .google.protobuf.Any data = 1; */ public Builder setData(com.google.protobuf.Any value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } data_ = value; onChanged(); } else { dataBuilder_.setMessage(value); } return this; } /** *
       * Required in unary RPCs. The content body of InvokeService response.
       * 
* * .google.protobuf.Any data = 1; */ public Builder setData( com.google.protobuf.Any.Builder builderForValue) { if (dataBuilder_ == null) { data_ = builderForValue.build(); onChanged(); } else { dataBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Required in unary RPCs. The content body of InvokeService response.
       * 
* * .google.protobuf.Any data = 1; */ public Builder mergeData(com.google.protobuf.Any value) { if (dataBuilder_ == null) { if (data_ != null) { data_ = com.google.protobuf.Any.newBuilder(data_).mergeFrom(value).buildPartial(); } else { data_ = value; } onChanged(); } else { dataBuilder_.mergeFrom(value); } return this; } /** *
       * Required in unary RPCs. The content body of InvokeService response.
       * 
* * .google.protobuf.Any data = 1; */ public Builder clearData() { if (dataBuilder_ == null) { data_ = null; onChanged(); } else { data_ = null; dataBuilder_ = null; } return this; } /** *
       * Required in unary RPCs. The content body of InvokeService response.
       * 
* * .google.protobuf.Any data = 1; */ public com.google.protobuf.Any.Builder getDataBuilder() { onChanged(); return getDataFieldBuilder().getBuilder(); } /** *
       * Required in unary RPCs. The content body of InvokeService response.
       * 
* * .google.protobuf.Any data = 1; */ public com.google.protobuf.AnyOrBuilder getDataOrBuilder() { if (dataBuilder_ != null) { return dataBuilder_.getMessageOrBuilder(); } else { return data_ == null ? com.google.protobuf.Any.getDefaultInstance() : data_; } } /** *
       * Required in unary RPCs. The content body of InvokeService response.
       * 
* * .google.protobuf.Any data = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>( getData(), getParentForChildren(), isClean()); data_ = null; } return dataBuilder_; } private java.lang.Object contentType_ = ""; /** *
       * Required. The type of data content.
       * 
* * string content_type = 2; * @return The contentType. */ public java.lang.String getContentType() { java.lang.Object ref = contentType_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); contentType_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. The type of data content.
       * 
* * string content_type = 2; * @return The bytes for contentType. */ public com.google.protobuf.ByteString getContentTypeBytes() { java.lang.Object ref = contentType_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); contentType_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. The type of data content.
       * 
* * string content_type = 2; * @param value The contentType to set. * @return This builder for chaining. */ public Builder setContentType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } contentType_ = value; onChanged(); return this; } /** *
       * Required. The type of data content.
       * 
* * string content_type = 2; * @return This builder for chaining. */ public Builder clearContentType() { contentType_ = getDefaultInstance().getContentType(); onChanged(); return this; } /** *
       * Required. The type of data content.
       * 
* * string content_type = 2; * @param value The bytes for contentType to set. * @return This builder for chaining. */ public Builder setContentTypeBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); contentType_ = 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.common.v1.InvokeResponse) } // @@protoc_insertion_point(class_scope:dapr.proto.common.v1.InvokeResponse) private static final io.dapr.v1.CommonProtos.InvokeResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.dapr.v1.CommonProtos.InvokeResponse(); } public static io.dapr.v1.CommonProtos.InvokeResponse getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InvokeResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new InvokeResponse(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.CommonProtos.InvokeResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StreamPayloadOrBuilder extends // @@protoc_insertion_point(interface_extends:dapr.proto.common.v1.StreamPayload) com.google.protobuf.MessageOrBuilder { /** *
     * Data sent in the chunk.
     * The amount of data included in each chunk is up to the discretion of the sender, and can be empty.
     * Additionally, the amount of data doesn't need to be fixed and subsequent messages can send more, or less, data.
     * Receivers must not make assumptions about the number of bytes they'll receive in each chunk.
     * 
* * bytes data = 1; * @return The data. */ com.google.protobuf.ByteString getData(); /** *
     * Sequence number. This is a counter that starts from 0 and increments by 1 on each chunk sent.
     * 
* * uint64 seq = 2; * @return The seq. */ long getSeq(); } /** *
   * Chunk of data sent in a streaming request or response.
   * This is used in requests including InternalInvokeRequestStream.
   * 
* * Protobuf type {@code dapr.proto.common.v1.StreamPayload} */ public static final class StreamPayload extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:dapr.proto.common.v1.StreamPayload) StreamPayloadOrBuilder { private static final long serialVersionUID = 0L; // Use StreamPayload.newBuilder() to construct. private StreamPayload(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StreamPayload() { data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StreamPayload(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StreamPayload( 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: { data_ = input.readBytes(); break; } case 16: { seq_ = input.readUInt64(); break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.CommonProtos.internal_static_dapr_proto_common_v1_StreamPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_StreamPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.StreamPayload.class, io.dapr.v1.CommonProtos.StreamPayload.Builder.class); } public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_; /** *
     * Data sent in the chunk.
     * The amount of data included in each chunk is up to the discretion of the sender, and can be empty.
     * Additionally, the amount of data doesn't need to be fixed and subsequent messages can send more, or less, data.
     * Receivers must not make assumptions about the number of bytes they'll receive in each chunk.
     * 
* * bytes data = 1; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } public static final int SEQ_FIELD_NUMBER = 2; private long seq_; /** *
     * Sequence number. This is a counter that starts from 0 and increments by 1 on each chunk sent.
     * 
* * uint64 seq = 2; * @return The seq. */ @java.lang.Override public long getSeq() { return seq_; } 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 (seq_ != 0L) { output.writeUInt64(2, seq_); } 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 (seq_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, seq_); } 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.CommonProtos.StreamPayload)) { return super.equals(obj); } io.dapr.v1.CommonProtos.StreamPayload other = (io.dapr.v1.CommonProtos.StreamPayload) obj; if (!getData() .equals(other.getData())) return false; if (getSeq() != other.getSeq()) 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) + SEQ_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getSeq()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.dapr.v1.CommonProtos.StreamPayload parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.StreamPayload 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.CommonProtos.StreamPayload parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.StreamPayload 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.CommonProtos.StreamPayload parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.StreamPayload parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.dapr.v1.CommonProtos.StreamPayload parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.StreamPayload 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.CommonProtos.StreamPayload parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.StreamPayload 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.CommonProtos.StreamPayload parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.StreamPayload 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.CommonProtos.StreamPayload 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; } /** *
     * Chunk of data sent in a streaming request or response.
     * This is used in requests including InternalInvokeRequestStream.
     * 
* * Protobuf type {@code dapr.proto.common.v1.StreamPayload} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:dapr.proto.common.v1.StreamPayload) io.dapr.v1.CommonProtos.StreamPayloadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_StreamPayload_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_StreamPayload_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.StreamPayload.class, io.dapr.v1.CommonProtos.StreamPayload.Builder.class); } // Construct using io.dapr.v1.CommonProtos.StreamPayload.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; seq_ = 0L; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_StreamPayload_descriptor; } @java.lang.Override public io.dapr.v1.CommonProtos.StreamPayload getDefaultInstanceForType() { return io.dapr.v1.CommonProtos.StreamPayload.getDefaultInstance(); } @java.lang.Override public io.dapr.v1.CommonProtos.StreamPayload build() { io.dapr.v1.CommonProtos.StreamPayload result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.dapr.v1.CommonProtos.StreamPayload buildPartial() { io.dapr.v1.CommonProtos.StreamPayload result = new io.dapr.v1.CommonProtos.StreamPayload(this); result.data_ = data_; result.seq_ = seq_; 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.CommonProtos.StreamPayload) { return mergeFrom((io.dapr.v1.CommonProtos.StreamPayload)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.dapr.v1.CommonProtos.StreamPayload other) { if (other == io.dapr.v1.CommonProtos.StreamPayload.getDefaultInstance()) return this; if (other.getData() != com.google.protobuf.ByteString.EMPTY) { setData(other.getData()); } if (other.getSeq() != 0L) { setSeq(other.getSeq()); } 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.CommonProtos.StreamPayload parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.dapr.v1.CommonProtos.StreamPayload) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private com.google.protobuf.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Data sent in the chunk.
       * The amount of data included in each chunk is up to the discretion of the sender, and can be empty.
       * Additionally, the amount of data doesn't need to be fixed and subsequent messages can send more, or less, data.
       * Receivers must not make assumptions about the number of bytes they'll receive in each chunk.
       * 
* * bytes data = 1; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** *
       * Data sent in the chunk.
       * The amount of data included in each chunk is up to the discretion of the sender, and can be empty.
       * Additionally, the amount of data doesn't need to be fixed and subsequent messages can send more, or less, data.
       * Receivers must not make assumptions about the number of bytes they'll receive in each chunk.
       * 
* * 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; } /** *
       * Data sent in the chunk.
       * The amount of data included in each chunk is up to the discretion of the sender, and can be empty.
       * Additionally, the amount of data doesn't need to be fixed and subsequent messages can send more, or less, data.
       * Receivers must not make assumptions about the number of bytes they'll receive in each chunk.
       * 
* * bytes data = 1; * @return This builder for chaining. */ public Builder clearData() { data_ = getDefaultInstance().getData(); onChanged(); return this; } private long seq_ ; /** *
       * Sequence number. This is a counter that starts from 0 and increments by 1 on each chunk sent.
       * 
* * uint64 seq = 2; * @return The seq. */ @java.lang.Override public long getSeq() { return seq_; } /** *
       * Sequence number. This is a counter that starts from 0 and increments by 1 on each chunk sent.
       * 
* * uint64 seq = 2; * @param value The seq to set. * @return This builder for chaining. */ public Builder setSeq(long value) { seq_ = value; onChanged(); return this; } /** *
       * Sequence number. This is a counter that starts from 0 and increments by 1 on each chunk sent.
       * 
* * uint64 seq = 2; * @return This builder for chaining. */ public Builder clearSeq() { seq_ = 0L; 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.common.v1.StreamPayload) } // @@protoc_insertion_point(class_scope:dapr.proto.common.v1.StreamPayload) private static final io.dapr.v1.CommonProtos.StreamPayload DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.dapr.v1.CommonProtos.StreamPayload(); } public static io.dapr.v1.CommonProtos.StreamPayload getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StreamPayload parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StreamPayload(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.CommonProtos.StreamPayload getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StateItemOrBuilder extends // @@protoc_insertion_point(interface_extends:dapr.proto.common.v1.StateItem) com.google.protobuf.MessageOrBuilder { /** *
     * Required. The state key
     * 
* * string key = 1; * @return The key. */ java.lang.String getKey(); /** *
     * Required. The state key
     * 
* * string key = 1; * @return The bytes for key. */ com.google.protobuf.ByteString getKeyBytes(); /** *
     * Required. The state data for key
     * 
* * bytes value = 2; * @return The value. */ com.google.protobuf.ByteString getValue(); /** *
     * 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(); /** *
     * The metadata which will be passed to state store component.
     * 
* * map<string, string> metadata = 4; */ int getMetadataCount(); /** *
     * The metadata which will be passed to state store component.
     * 
* * 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 passed to state store component.
     * 
* * map<string, string> metadata = 4; */ java.util.Map getMetadataMap(); /** *
     * The metadata which will be passed to state store component.
     * 
* * map<string, string> metadata = 4; */ /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * The metadata which will be passed to state store component.
     * 
* * map<string, string> metadata = 4; */ java.lang.String getMetadataOrThrow( java.lang.String key); /** *
     * Options for concurrency and consistency to save the state.
     * 
* * .dapr.proto.common.v1.StateOptions options = 5; * @return Whether the options field is set. */ boolean hasOptions(); /** *
     * Options for concurrency and consistency to save the state.
     * 
* * .dapr.proto.common.v1.StateOptions options = 5; * @return The options. */ io.dapr.v1.CommonProtos.StateOptions getOptions(); /** *
     * Options for concurrency and consistency to save the state.
     * 
* * .dapr.proto.common.v1.StateOptions options = 5; */ io.dapr.v1.CommonProtos.StateOptionsOrBuilder getOptionsOrBuilder(); } /** *
   * StateItem represents state key, value, and additional options to save state.
   * 
* * Protobuf type {@code dapr.proto.common.v1.StateItem} */ public static final class StateItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:dapr.proto.common.v1.StateItem) StateItemOrBuilder { private static final long serialVersionUID = 0L; // Use StateItem.newBuilder() to construct. private StateItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StateItem() { key_ = ""; value_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StateItem(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StateItem( 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: { value_ = input.readBytes(); 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: { if (!((mutable_bitField0_ & 0x00000001) != 0)) { metadata_ = com.google.protobuf.MapField.newMapField( MetadataDefaultEntryHolder.defaultEntry); mutable_bitField0_ |= 0x00000001; } com.google.protobuf.MapEntry metadata__ = input.readMessage( MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); metadata_.getMutableMap().put( metadata__.getKey(), metadata__.getValue()); break; } case 42: { io.dapr.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; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.CommonProtos.internal_static_dapr_proto_common_v1_StateItem_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.CommonProtos.internal_static_dapr_proto_common_v1_StateItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.StateItem.class, io.dapr.v1.CommonProtos.StateItem.Builder.class); } public static final int KEY_FIELD_NUMBER = 1; private volatile java.lang.Object key_; /** *
     * Required. The state 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; } } /** *
     * Required. The state 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 VALUE_FIELD_NUMBER = 2; private com.google.protobuf.ByteString value_; /** *
     * Required. The state data for key
     * 
* * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } 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 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.CommonProtos.internal_static_dapr_proto_common_v1_StateItem_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 passed to state store component.
     * 
* * map<string, string> metadata = 4; */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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 passed to state store component.
     * 
* * map<string, string> metadata = 4; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
     * The metadata which will be passed to state store component.
     * 
* * 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 NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * The metadata which will be passed to state store component.
     * 
* * map<string, string> metadata = 4; */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public static final int OPTIONS_FIELD_NUMBER = 5; private io.dapr.v1.CommonProtos.StateOptions options_; /** *
     * Options for concurrency and consistency to save the state.
     * 
* * .dapr.proto.common.v1.StateOptions options = 5; * @return Whether the options field is set. */ @java.lang.Override public boolean hasOptions() { return options_ != null; } /** *
     * Options for concurrency and consistency to save the state.
     * 
* * .dapr.proto.common.v1.StateOptions options = 5; * @return The options. */ @java.lang.Override public io.dapr.v1.CommonProtos.StateOptions getOptions() { return options_ == null ? io.dapr.v1.CommonProtos.StateOptions.getDefaultInstance() : options_; } /** *
     * Options for concurrency and consistency to save the state.
     * 
* * .dapr.proto.common.v1.StateOptions options = 5; */ @java.lang.Override public io.dapr.v1.CommonProtos.StateOptionsOrBuilder getOptionsOrBuilder() { return getOptions(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); } if (!value_.isEmpty()) { output.writeBytes(2, value_); } if (etag_ != null) { output.writeMessage(3, getEtag()); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 4); if (options_ != null) { output.writeMessage(5, getOptions()); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); } if (!value_.isEmpty()) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, value_); } if (etag_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getEtag()); } for (java.util.Map.Entry entry : internalGetMetadata().getMap().entrySet()) { com.google.protobuf.MapEntry metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, metadata__); } if (options_ != null) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getOptions()); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.dapr.v1.CommonProtos.StateItem)) { return super.equals(obj); } io.dapr.v1.CommonProtos.StateItem other = (io.dapr.v1.CommonProtos.StateItem) obj; if (!getKey() .equals(other.getKey())) return false; if (!getValue() .equals(other.getValue())) return false; if (hasEtag() != other.hasEtag()) return false; if (hasEtag()) { if (!getEtag() .equals(other.getEtag())) return false; } if (!internalGetMetadata().equals( other.internalGetMetadata())) return false; if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + KEY_FIELD_NUMBER; hash = (53 * hash) + getKey().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); if (hasEtag()) { hash = (37 * hash) + ETAG_FIELD_NUMBER; hash = (53 * hash) + getEtag().hashCode(); } if (!internalGetMetadata().getMap().isEmpty()) { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.dapr.v1.CommonProtos.StateItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.StateItem 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.CommonProtos.StateItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.StateItem 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.CommonProtos.StateItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.StateItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.dapr.v1.CommonProtos.StateItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.StateItem 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.CommonProtos.StateItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.StateItem 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.CommonProtos.StateItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.StateItem 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.CommonProtos.StateItem 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; } /** *
     * StateItem represents state key, value, and additional options to save state.
     * 
* * Protobuf type {@code dapr.proto.common.v1.StateItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:dapr.proto.common.v1.StateItem) io.dapr.v1.CommonProtos.StateItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_StateItem_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.CommonProtos.internal_static_dapr_proto_common_v1_StateItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.StateItem.class, io.dapr.v1.CommonProtos.StateItem.Builder.class); } // Construct using io.dapr.v1.CommonProtos.StateItem.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_ = ""; value_ = com.google.protobuf.ByteString.EMPTY; if (etagBuilder_ == null) { etag_ = null; } else { etag_ = null; etagBuilder_ = null; } internalGetMutableMetadata().clear(); if (optionsBuilder_ == null) { options_ = null; } else { options_ = null; optionsBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_StateItem_descriptor; } @java.lang.Override public io.dapr.v1.CommonProtos.StateItem getDefaultInstanceForType() { return io.dapr.v1.CommonProtos.StateItem.getDefaultInstance(); } @java.lang.Override public io.dapr.v1.CommonProtos.StateItem build() { io.dapr.v1.CommonProtos.StateItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.dapr.v1.CommonProtos.StateItem buildPartial() { io.dapr.v1.CommonProtos.StateItem result = new io.dapr.v1.CommonProtos.StateItem(this); int from_bitField0_ = bitField0_; result.key_ = key_; result.value_ = value_; if (etagBuilder_ == null) { result.etag_ = etag_; } else { result.etag_ = etagBuilder_.build(); } result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.dapr.v1.CommonProtos.StateItem) { return mergeFrom((io.dapr.v1.CommonProtos.StateItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.dapr.v1.CommonProtos.StateItem other) { if (other == io.dapr.v1.CommonProtos.StateItem.getDefaultInstance()) return this; if (!other.getKey().isEmpty()) { key_ = other.key_; onChanged(); } if (other.getValue() != com.google.protobuf.ByteString.EMPTY) { setValue(other.getValue()); } if (other.hasEtag()) { mergeEtag(other.getEtag()); } internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); if (other.hasOptions()) { mergeOptions(other.getOptions()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { io.dapr.v1.CommonProtos.StateItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.dapr.v1.CommonProtos.StateItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object key_ = ""; /** *
       * Required. The state 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; } } /** *
       * Required. The state 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; } } /** *
       * Required. The state 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; } /** *
       * Required. The state key
       * 
* * string key = 1; * @return This builder for chaining. */ public Builder clearKey() { key_ = getDefaultInstance().getKey(); onChanged(); return this; } /** *
       * Required. The state 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 value_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Required. The state data for key
       * 
* * bytes value = 2; * @return The value. */ @java.lang.Override public com.google.protobuf.ByteString getValue() { return value_; } /** *
       * Required. The state data for key
       * 
* * bytes value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** *
       * Required. The state data for key
       * 
* * bytes value = 2; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); 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 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 passed to state store component.
       * 
* * map<string, string> metadata = 4; */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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 passed to state store component.
       * 
* * map<string, string> metadata = 4; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
       * The metadata which will be passed to state store component.
       * 
* * 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 NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * The metadata which will be passed to state store component.
       * 
* * map<string, string> metadata = 4; */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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 passed to state store component.
       * 
* * map<string, string> metadata = 4; */ public Builder removeMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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 passed to state store component.
       * 
* * map<string, string> metadata = 4; */ public Builder putMetadata( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap() .put(key, value); return this; } /** *
       * The metadata which will be passed to state store component.
       * 
* * map<string, string> metadata = 4; */ public Builder putAllMetadata( java.util.Map values) { internalGetMutableMetadata().getMutableMap() .putAll(values); return this; } 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_; /** *
       * Options for concurrency and consistency to save the state.
       * 
* * .dapr.proto.common.v1.StateOptions options = 5; * @return Whether the options field is set. */ public boolean hasOptions() { return optionsBuilder_ != null || options_ != null; } /** *
       * Options for concurrency and consistency to save the state.
       * 
* * .dapr.proto.common.v1.StateOptions options = 5; * @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(); } } /** *
       * Options for concurrency and consistency to save the state.
       * 
* * .dapr.proto.common.v1.StateOptions options = 5; */ 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; } /** *
       * Options for concurrency and consistency to save the state.
       * 
* * .dapr.proto.common.v1.StateOptions options = 5; */ public Builder setOptions( io.dapr.v1.CommonProtos.StateOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } return this; } /** *
       * Options for concurrency and consistency to save the state.
       * 
* * .dapr.proto.common.v1.StateOptions options = 5; */ 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; } /** *
       * Options for concurrency and consistency to save the state.
       * 
* * .dapr.proto.common.v1.StateOptions options = 5; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { options_ = null; optionsBuilder_ = null; } return this; } /** *
       * Options for concurrency and consistency to save the state.
       * 
* * .dapr.proto.common.v1.StateOptions options = 5; */ public io.dapr.v1.CommonProtos.StateOptions.Builder getOptionsBuilder() { onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** *
       * Options for concurrency and consistency to save the state.
       * 
* * .dapr.proto.common.v1.StateOptions options = 5; */ public io.dapr.v1.CommonProtos.StateOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? io.dapr.v1.CommonProtos.StateOptions.getDefaultInstance() : options_; } } /** *
       * Options for concurrency and consistency to save the state.
       * 
* * .dapr.proto.common.v1.StateOptions options = 5; */ 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_; } @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.common.v1.StateItem) } // @@protoc_insertion_point(class_scope:dapr.proto.common.v1.StateItem) private static final io.dapr.v1.CommonProtos.StateItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.dapr.v1.CommonProtos.StateItem(); } public static io.dapr.v1.CommonProtos.StateItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StateItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StateItem(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.CommonProtos.StateItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EtagOrBuilder extends // @@protoc_insertion_point(interface_extends:dapr.proto.common.v1.Etag) com.google.protobuf.MessageOrBuilder { /** *
     * value sets the etag value
     * 
* * string value = 1; * @return The value. */ java.lang.String getValue(); /** *
     * value sets the etag value
     * 
* * string value = 1; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); } /** *
   * Etag represents a state item version
   * 
* * Protobuf type {@code dapr.proto.common.v1.Etag} */ public static final class Etag extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:dapr.proto.common.v1.Etag) EtagOrBuilder { private static final long serialVersionUID = 0L; // Use Etag.newBuilder() to construct. private Etag(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Etag() { value_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Etag(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private Etag( 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(); value_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.CommonProtos.internal_static_dapr_proto_common_v1_Etag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_Etag_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.Etag.class, io.dapr.v1.CommonProtos.Etag.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** *
     * value sets the etag value
     * 
* * string value = 1; * @return The value. */ @java.lang.Override public java.lang.String getValue() { java.lang.Object ref = value_; 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(); value_ = s; return s; } } /** *
     * value sets the etag value
     * 
* * string value = 1; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } 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.CommonProtos.Etag)) { return super.equals(obj); } io.dapr.v1.CommonProtos.Etag other = (io.dapr.v1.CommonProtos.Etag) obj; if (!getValue() .equals(other.getValue())) 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) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.dapr.v1.CommonProtos.Etag parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.Etag 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.CommonProtos.Etag parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.Etag 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.CommonProtos.Etag parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.Etag parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.dapr.v1.CommonProtos.Etag parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.Etag 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.CommonProtos.Etag parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.Etag 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.CommonProtos.Etag parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.Etag 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.CommonProtos.Etag 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; } /** *
     * Etag represents a state item version
     * 
* * Protobuf type {@code dapr.proto.common.v1.Etag} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:dapr.proto.common.v1.Etag) io.dapr.v1.CommonProtos.EtagOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_Etag_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_Etag_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.Etag.class, io.dapr.v1.CommonProtos.Etag.Builder.class); } // Construct using io.dapr.v1.CommonProtos.Etag.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(); value_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_Etag_descriptor; } @java.lang.Override public io.dapr.v1.CommonProtos.Etag getDefaultInstanceForType() { return io.dapr.v1.CommonProtos.Etag.getDefaultInstance(); } @java.lang.Override public io.dapr.v1.CommonProtos.Etag build() { io.dapr.v1.CommonProtos.Etag result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.dapr.v1.CommonProtos.Etag buildPartial() { io.dapr.v1.CommonProtos.Etag result = new io.dapr.v1.CommonProtos.Etag(this); result.value_ = value_; 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.CommonProtos.Etag) { return mergeFrom((io.dapr.v1.CommonProtos.Etag)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.dapr.v1.CommonProtos.Etag other) { if (other == io.dapr.v1.CommonProtos.Etag.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; 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.CommonProtos.Etag parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.dapr.v1.CommonProtos.Etag) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private java.lang.Object value_ = ""; /** *
       * value sets the etag value
       * 
* * string value = 1; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * value sets the etag value
       * 
* * string value = 1; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * value sets the etag value
       * 
* * string value = 1; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** *
       * value sets the etag value
       * 
* * string value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** *
       * value sets the etag value
       * 
* * string value = 1; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = 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.common.v1.Etag) } // @@protoc_insertion_point(class_scope:dapr.proto.common.v1.Etag) private static final io.dapr.v1.CommonProtos.Etag DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.dapr.v1.CommonProtos.Etag(); } public static io.dapr.v1.CommonProtos.Etag getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Etag parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Etag(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.CommonProtos.Etag getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface StateOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:dapr.proto.common.v1.StateOptions) com.google.protobuf.MessageOrBuilder { /** * .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; * @return The enum numeric value on the wire for concurrency. */ int getConcurrencyValue(); /** * .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; * @return The concurrency. */ io.dapr.v1.CommonProtos.StateOptions.StateConcurrency getConcurrency(); /** * .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; * @return The enum numeric value on the wire for consistency. */ int getConsistencyValue(); /** * .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; * @return The consistency. */ io.dapr.v1.CommonProtos.StateOptions.StateConsistency getConsistency(); } /** *
   * StateOptions configures concurrency and consistency for state operations
   * 
* * Protobuf type {@code dapr.proto.common.v1.StateOptions} */ public static final class StateOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:dapr.proto.common.v1.StateOptions) StateOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use StateOptions.newBuilder() to construct. private StateOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StateOptions() { concurrency_ = 0; consistency_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StateOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private StateOptions( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int rawValue = input.readEnum(); concurrency_ = rawValue; break; } case 16: { int rawValue = input.readEnum(); consistency_ = rawValue; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.CommonProtos.internal_static_dapr_proto_common_v1_StateOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_StateOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.StateOptions.class, io.dapr.v1.CommonProtos.StateOptions.Builder.class); } /** *
     * Enum describing the supported concurrency for state.
     * 
* * Protobuf enum {@code dapr.proto.common.v1.StateOptions.StateConcurrency} */ public enum StateConcurrency implements com.google.protobuf.ProtocolMessageEnum { /** * CONCURRENCY_UNSPECIFIED = 0; */ CONCURRENCY_UNSPECIFIED(0), /** * CONCURRENCY_FIRST_WRITE = 1; */ CONCURRENCY_FIRST_WRITE(1), /** * CONCURRENCY_LAST_WRITE = 2; */ CONCURRENCY_LAST_WRITE(2), UNRECOGNIZED(-1), ; /** * CONCURRENCY_UNSPECIFIED = 0; */ public static final int CONCURRENCY_UNSPECIFIED_VALUE = 0; /** * CONCURRENCY_FIRST_WRITE = 1; */ public static final int CONCURRENCY_FIRST_WRITE_VALUE = 1; /** * CONCURRENCY_LAST_WRITE = 2; */ public static final int CONCURRENCY_LAST_WRITE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static StateConcurrency valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static StateConcurrency forNumber(int value) { switch (value) { case 0: return CONCURRENCY_UNSPECIFIED; case 1: return CONCURRENCY_FIRST_WRITE; case 2: return CONCURRENCY_LAST_WRITE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< StateConcurrency> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public StateConcurrency findValueByNumber(int number) { return StateConcurrency.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.dapr.v1.CommonProtos.StateOptions.getDescriptor().getEnumTypes().get(0); } private static final StateConcurrency[] VALUES = values(); public static StateConcurrency valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private StateConcurrency(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:dapr.proto.common.v1.StateOptions.StateConcurrency) } /** *
     * Enum describing the supported consistency for state.
     * 
* * Protobuf enum {@code dapr.proto.common.v1.StateOptions.StateConsistency} */ public enum StateConsistency implements com.google.protobuf.ProtocolMessageEnum { /** * CONSISTENCY_UNSPECIFIED = 0; */ CONSISTENCY_UNSPECIFIED(0), /** * CONSISTENCY_EVENTUAL = 1; */ CONSISTENCY_EVENTUAL(1), /** * CONSISTENCY_STRONG = 2; */ CONSISTENCY_STRONG(2), UNRECOGNIZED(-1), ; /** * CONSISTENCY_UNSPECIFIED = 0; */ public static final int CONSISTENCY_UNSPECIFIED_VALUE = 0; /** * CONSISTENCY_EVENTUAL = 1; */ public static final int CONSISTENCY_EVENTUAL_VALUE = 1; /** * CONSISTENCY_STRONG = 2; */ public static final int CONSISTENCY_STRONG_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( "Can't get the number of an unknown enum value."); } return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static StateConsistency valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static StateConsistency forNumber(int value) { switch (value) { case 0: return CONSISTENCY_UNSPECIFIED; case 1: return CONSISTENCY_EVENTUAL; case 2: return CONSISTENCY_STRONG; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< StateConsistency> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public StateConsistency findValueByNumber(int number) { return StateConsistency.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalStateException( "Can't get the descriptor of an unrecognized enum value."); } return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return io.dapr.v1.CommonProtos.StateOptions.getDescriptor().getEnumTypes().get(1); } private static final StateConsistency[] VALUES = values(); public static StateConsistency valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private StateConsistency(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:dapr.proto.common.v1.StateOptions.StateConsistency) } public static final int CONCURRENCY_FIELD_NUMBER = 1; private int concurrency_; /** * .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; * @return The enum numeric value on the wire for concurrency. */ @java.lang.Override public int getConcurrencyValue() { return concurrency_; } /** * .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; * @return The concurrency. */ @java.lang.Override public io.dapr.v1.CommonProtos.StateOptions.StateConcurrency getConcurrency() { @SuppressWarnings("deprecation") io.dapr.v1.CommonProtos.StateOptions.StateConcurrency result = io.dapr.v1.CommonProtos.StateOptions.StateConcurrency.valueOf(concurrency_); return result == null ? io.dapr.v1.CommonProtos.StateOptions.StateConcurrency.UNRECOGNIZED : result; } public static final int CONSISTENCY_FIELD_NUMBER = 2; private int consistency_; /** * .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; * @return The enum numeric value on the wire for consistency. */ @java.lang.Override public int getConsistencyValue() { return consistency_; } /** * .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; * @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; } 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 (concurrency_ != io.dapr.v1.CommonProtos.StateOptions.StateConcurrency.CONCURRENCY_UNSPECIFIED.getNumber()) { output.writeEnum(1, concurrency_); } if (consistency_ != io.dapr.v1.CommonProtos.StateOptions.StateConsistency.CONSISTENCY_UNSPECIFIED.getNumber()) { output.writeEnum(2, consistency_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (concurrency_ != io.dapr.v1.CommonProtos.StateOptions.StateConcurrency.CONCURRENCY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, concurrency_); } if (consistency_ != io.dapr.v1.CommonProtos.StateOptions.StateConsistency.CONSISTENCY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, consistency_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.dapr.v1.CommonProtos.StateOptions)) { return super.equals(obj); } io.dapr.v1.CommonProtos.StateOptions other = (io.dapr.v1.CommonProtos.StateOptions) obj; if (concurrency_ != other.concurrency_) return false; if (consistency_ != other.consistency_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONCURRENCY_FIELD_NUMBER; hash = (53 * hash) + concurrency_; hash = (37 * hash) + CONSISTENCY_FIELD_NUMBER; hash = (53 * hash) + consistency_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static io.dapr.v1.CommonProtos.StateOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.StateOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.dapr.v1.CommonProtos.StateOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.StateOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.dapr.v1.CommonProtos.StateOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.StateOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.dapr.v1.CommonProtos.StateOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.StateOptions parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static io.dapr.v1.CommonProtos.StateOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.StateOptions parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static io.dapr.v1.CommonProtos.StateOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.StateOptions parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(io.dapr.v1.CommonProtos.StateOptions prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** *
     * StateOptions configures concurrency and consistency for state operations
     * 
* * Protobuf type {@code dapr.proto.common.v1.StateOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:dapr.proto.common.v1.StateOptions) io.dapr.v1.CommonProtos.StateOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_StateOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_StateOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.StateOptions.class, io.dapr.v1.CommonProtos.StateOptions.Builder.class); } // Construct using io.dapr.v1.CommonProtos.StateOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); concurrency_ = 0; consistency_ = 0; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_StateOptions_descriptor; } @java.lang.Override public io.dapr.v1.CommonProtos.StateOptions getDefaultInstanceForType() { return io.dapr.v1.CommonProtos.StateOptions.getDefaultInstance(); } @java.lang.Override public io.dapr.v1.CommonProtos.StateOptions build() { io.dapr.v1.CommonProtos.StateOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.dapr.v1.CommonProtos.StateOptions buildPartial() { io.dapr.v1.CommonProtos.StateOptions result = new io.dapr.v1.CommonProtos.StateOptions(this); result.concurrency_ = concurrency_; result.consistency_ = consistency_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof io.dapr.v1.CommonProtos.StateOptions) { return mergeFrom((io.dapr.v1.CommonProtos.StateOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.dapr.v1.CommonProtos.StateOptions other) { if (other == io.dapr.v1.CommonProtos.StateOptions.getDefaultInstance()) return this; if (other.concurrency_ != 0) { setConcurrencyValue(other.getConcurrencyValue()); } if (other.consistency_ != 0) { setConsistencyValue(other.getConsistencyValue()); } 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.CommonProtos.StateOptions parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.dapr.v1.CommonProtos.StateOptions) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int concurrency_ = 0; /** * .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; * @return The enum numeric value on the wire for concurrency. */ @java.lang.Override public int getConcurrencyValue() { return concurrency_; } /** * .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; * @param value The enum numeric value on the wire for concurrency to set. * @return This builder for chaining. */ public Builder setConcurrencyValue(int value) { concurrency_ = value; onChanged(); return this; } /** * .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; * @return The concurrency. */ @java.lang.Override public io.dapr.v1.CommonProtos.StateOptions.StateConcurrency getConcurrency() { @SuppressWarnings("deprecation") io.dapr.v1.CommonProtos.StateOptions.StateConcurrency result = io.dapr.v1.CommonProtos.StateOptions.StateConcurrency.valueOf(concurrency_); return result == null ? io.dapr.v1.CommonProtos.StateOptions.StateConcurrency.UNRECOGNIZED : result; } /** * .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; * @param value The concurrency to set. * @return This builder for chaining. */ public Builder setConcurrency(io.dapr.v1.CommonProtos.StateOptions.StateConcurrency value) { if (value == null) { throw new NullPointerException(); } concurrency_ = value.getNumber(); onChanged(); return this; } /** * .dapr.proto.common.v1.StateOptions.StateConcurrency concurrency = 1; * @return This builder for chaining. */ public Builder clearConcurrency() { concurrency_ = 0; onChanged(); return this; } private int consistency_ = 0; /** * .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; * @return The enum numeric value on the wire for consistency. */ @java.lang.Override public int getConsistencyValue() { return consistency_; } /** * .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; * @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; } /** * .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; * @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; } /** * .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; * @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; } /** * .dapr.proto.common.v1.StateOptions.StateConsistency consistency = 2; * @return This builder for chaining. */ public Builder clearConsistency() { consistency_ = 0; 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.common.v1.StateOptions) } // @@protoc_insertion_point(class_scope:dapr.proto.common.v1.StateOptions) private static final io.dapr.v1.CommonProtos.StateOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.dapr.v1.CommonProtos.StateOptions(); } public static io.dapr.v1.CommonProtos.StateOptions getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StateOptions parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new StateOptions(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public io.dapr.v1.CommonProtos.StateOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ConfigurationItemOrBuilder extends // @@protoc_insertion_point(interface_extends:dapr.proto.common.v1.ConfigurationItem) com.google.protobuf.MessageOrBuilder { /** *
     * Required. The value of configuration item.
     * 
* * string value = 1; * @return The value. */ java.lang.String getValue(); /** *
     * Required. The value of configuration item.
     * 
* * string value = 1; * @return The bytes for value. */ com.google.protobuf.ByteString getValueBytes(); /** *
     * Version is response only and cannot be fetched. Store is not expected to keep all versions available
     * 
* * string version = 2; * @return The version. */ java.lang.String getVersion(); /** *
     * Version is response only and cannot be fetched. Store is not expected to keep all versions available
     * 
* * string version = 2; * @return The bytes for version. */ com.google.protobuf.ByteString getVersionBytes(); /** *
     * the metadata which will be passed to/from configuration store component.
     * 
* * map<string, string> metadata = 3; */ int getMetadataCount(); /** *
     * the metadata which will be passed to/from configuration store component.
     * 
* * 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 passed to/from configuration store component.
     * 
* * map<string, string> metadata = 3; */ java.util.Map getMetadataMap(); /** *
     * the metadata which will be passed to/from configuration store component.
     * 
* * map<string, string> metadata = 3; */ /* nullable */ java.lang.String getMetadataOrDefault( java.lang.String key, /* nullable */ java.lang.String defaultValue); /** *
     * the metadata which will be passed to/from configuration store component.
     * 
* * map<string, string> metadata = 3; */ java.lang.String getMetadataOrThrow( java.lang.String key); } /** *
   * ConfigurationItem represents all the configuration with its name(key).
   * 
* * Protobuf type {@code dapr.proto.common.v1.ConfigurationItem} */ public static final class ConfigurationItem extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:dapr.proto.common.v1.ConfigurationItem) ConfigurationItemOrBuilder { private static final long serialVersionUID = 0L; // Use ConfigurationItem.newBuilder() to construct. private ConfigurationItem(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ConfigurationItem() { value_ = ""; version_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ConfigurationItem(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private ConfigurationItem( 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(); value_ = s; break; } case 18: { java.lang.String s = input.readStringRequireUtf8(); version_ = 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 (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().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.CommonProtos.internal_static_dapr_proto_common_v1_ConfigurationItem_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.CommonProtos.internal_static_dapr_proto_common_v1_ConfigurationItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.ConfigurationItem.class, io.dapr.v1.CommonProtos.ConfigurationItem.Builder.class); } public static final int VALUE_FIELD_NUMBER = 1; private volatile java.lang.Object value_; /** *
     * Required. The value of configuration item.
     * 
* * string value = 1; * @return The value. */ @java.lang.Override public java.lang.String getValue() { java.lang.Object ref = value_; 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(); value_ = s; return s; } } /** *
     * Required. The value of configuration item.
     * 
* * string value = 1; * @return The bytes for value. */ @java.lang.Override public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object version_; /** *
     * Version is response only and cannot be fetched. Store is not expected to keep all versions available
     * 
* * string version = 2; * @return The version. */ @java.lang.Override public java.lang.String getVersion() { java.lang.Object ref = version_; 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(); version_ = s; return s; } } /** *
     * Version is response only and cannot be fetched. Store is not expected to keep all versions available
     * 
* * string version = 2; * @return The bytes for version. */ @java.lang.Override public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = 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.CommonProtos.internal_static_dapr_proto_common_v1_ConfigurationItem_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 passed to/from configuration store component.
     * 
* * map<string, string> metadata = 3; */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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 passed to/from configuration store component.
     * 
* * map<string, string> metadata = 3; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
     * the metadata which will be passed to/from configuration store component.
     * 
* * 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 NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * the metadata which will be passed to/from configuration store component.
     * 
* * map<string, string> metadata = 3; */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, value_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, version_); } 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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, value_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(version_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, version_); } 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.CommonProtos.ConfigurationItem)) { return super.equals(obj); } io.dapr.v1.CommonProtos.ConfigurationItem other = (io.dapr.v1.CommonProtos.ConfigurationItem) obj; if (!getValue() .equals(other.getValue())) return false; if (!getVersion() .equals(other.getVersion())) 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) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion().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.CommonProtos.ConfigurationItem parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.ConfigurationItem 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.CommonProtos.ConfigurationItem parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.ConfigurationItem 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.CommonProtos.ConfigurationItem parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static io.dapr.v1.CommonProtos.ConfigurationItem parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static io.dapr.v1.CommonProtos.ConfigurationItem parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.ConfigurationItem 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.CommonProtos.ConfigurationItem parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.ConfigurationItem 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.CommonProtos.ConfigurationItem parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static io.dapr.v1.CommonProtos.ConfigurationItem 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.CommonProtos.ConfigurationItem 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; } /** *
     * ConfigurationItem represents all the configuration with its name(key).
     * 
* * Protobuf type {@code dapr.proto.common.v1.ConfigurationItem} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:dapr.proto.common.v1.ConfigurationItem) io.dapr.v1.CommonProtos.ConfigurationItemOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_ConfigurationItem_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.CommonProtos.internal_static_dapr_proto_common_v1_ConfigurationItem_fieldAccessorTable .ensureFieldAccessorsInitialized( io.dapr.v1.CommonProtos.ConfigurationItem.class, io.dapr.v1.CommonProtos.ConfigurationItem.Builder.class); } // Construct using io.dapr.v1.CommonProtos.ConfigurationItem.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(); value_ = ""; version_ = ""; internalGetMutableMetadata().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return io.dapr.v1.CommonProtos.internal_static_dapr_proto_common_v1_ConfigurationItem_descriptor; } @java.lang.Override public io.dapr.v1.CommonProtos.ConfigurationItem getDefaultInstanceForType() { return io.dapr.v1.CommonProtos.ConfigurationItem.getDefaultInstance(); } @java.lang.Override public io.dapr.v1.CommonProtos.ConfigurationItem build() { io.dapr.v1.CommonProtos.ConfigurationItem result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public io.dapr.v1.CommonProtos.ConfigurationItem buildPartial() { io.dapr.v1.CommonProtos.ConfigurationItem result = new io.dapr.v1.CommonProtos.ConfigurationItem(this); int from_bitField0_ = bitField0_; result.value_ = value_; result.version_ = version_; 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.CommonProtos.ConfigurationItem) { return mergeFrom((io.dapr.v1.CommonProtos.ConfigurationItem)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(io.dapr.v1.CommonProtos.ConfigurationItem other) { if (other == io.dapr.v1.CommonProtos.ConfigurationItem.getDefaultInstance()) return this; if (!other.getValue().isEmpty()) { value_ = other.value_; onChanged(); } if (!other.getVersion().isEmpty()) { version_ = other.version_; 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.CommonProtos.ConfigurationItem parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (io.dapr.v1.CommonProtos.ConfigurationItem) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object value_ = ""; /** *
       * Required. The value of configuration item.
       * 
* * string value = 1; * @return The value. */ public java.lang.String getValue() { java.lang.Object ref = value_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); value_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Required. The value of configuration item.
       * 
* * string value = 1; * @return The bytes for value. */ public com.google.protobuf.ByteString getValueBytes() { java.lang.Object ref = value_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); value_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Required. The value of configuration item.
       * 
* * string value = 1; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue( java.lang.String value) { if (value == null) { throw new NullPointerException(); } value_ = value; onChanged(); return this; } /** *
       * Required. The value of configuration item.
       * 
* * string value = 1; * @return This builder for chaining. */ public Builder clearValue() { value_ = getDefaultInstance().getValue(); onChanged(); return this; } /** *
       * Required. The value of configuration item.
       * 
* * string value = 1; * @param value The bytes for value to set. * @return This builder for chaining. */ public Builder setValueBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); value_ = value; onChanged(); return this; } private java.lang.Object version_ = ""; /** *
       * Version is response only and cannot be fetched. Store is not expected to keep all versions available
       * 
* * string version = 2; * @return The version. */ public java.lang.String getVersion() { java.lang.Object ref = version_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); version_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * Version is response only and cannot be fetched. Store is not expected to keep all versions available
       * 
* * string version = 2; * @return The bytes for version. */ public com.google.protobuf.ByteString getVersionBytes() { java.lang.Object ref = version_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); version_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Version is response only and cannot be fetched. Store is not expected to keep all versions available
       * 
* * string version = 2; * @param value The version to set. * @return This builder for chaining. */ public Builder setVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } version_ = value; onChanged(); return this; } /** *
       * Version is response only and cannot be fetched. Store is not expected to keep all versions available
       * 
* * string version = 2; * @return This builder for chaining. */ public Builder clearVersion() { version_ = getDefaultInstance().getVersion(); onChanged(); return this; } /** *
       * Version is response only and cannot be fetched. Store is not expected to keep all versions available
       * 
* * string version = 2; * @param value The bytes for version to set. * @return This builder for chaining. */ public Builder setVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); version_ = 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 passed to/from configuration store component.
       * 
* * map<string, string> metadata = 3; */ @java.lang.Override public boolean containsMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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 passed to/from configuration store component.
       * 
* * map<string, string> metadata = 3; */ @java.lang.Override public java.util.Map getMetadataMap() { return internalGetMetadata().getMap(); } /** *
       * the metadata which will be passed to/from configuration store component.
       * 
* * 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 NullPointerException("map key"); } java.util.Map map = internalGetMetadata().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
       * the metadata which will be passed to/from configuration store component.
       * 
* * map<string, string> metadata = 3; */ @java.lang.Override public java.lang.String getMetadataOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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 passed to/from configuration store component.
       * 
* * map<string, string> metadata = 3; */ public Builder removeMetadata( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } 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 passed to/from configuration store component.
       * 
* * map<string, string> metadata = 3; */ public Builder putMetadata( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableMetadata().getMutableMap() .put(key, value); return this; } /** *
       * the metadata which will be passed to/from configuration store component.
       * 
* * 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.common.v1.ConfigurationItem) } // @@protoc_insertion_point(class_scope:dapr.proto.common.v1.ConfigurationItem) private static final io.dapr.v1.CommonProtos.ConfigurationItem DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new io.dapr.v1.CommonProtos.ConfigurationItem(); } public static io.dapr.v1.CommonProtos.ConfigurationItem getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ConfigurationItem parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ConfigurationItem(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.CommonProtos.ConfigurationItem getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_dapr_proto_common_v1_HTTPExtension_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_dapr_proto_common_v1_HTTPExtension_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_dapr_proto_common_v1_InvokeRequest_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_dapr_proto_common_v1_InvokeRequest_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_dapr_proto_common_v1_InvokeResponse_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_dapr_proto_common_v1_InvokeResponse_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_dapr_proto_common_v1_StreamPayload_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_dapr_proto_common_v1_StreamPayload_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_dapr_proto_common_v1_StateItem_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_dapr_proto_common_v1_StateItem_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_dapr_proto_common_v1_StateItem_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_dapr_proto_common_v1_StateItem_MetadataEntry_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_dapr_proto_common_v1_Etag_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_dapr_proto_common_v1_Etag_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_dapr_proto_common_v1_StateOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_dapr_proto_common_v1_StateOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_dapr_proto_common_v1_ConfigurationItem_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_dapr_proto_common_v1_ConfigurationItem_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_dapr_proto_common_v1_ConfigurationItem_MetadataEntry_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_dapr_proto_common_v1_ConfigurationItem_MetadataEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n!dapr/proto/common/v1/common.proto\022\024dap" + "r.proto.common.v1\032\031google/protobuf/any.p" + "roto\"\320\001\n\rHTTPExtension\0226\n\004verb\030\001 \001(\0162(.d" + "apr.proto.common.v1.HTTPExtension.Verb\022\023" + "\n\013querystring\030\002 \001(\t\"r\n\004Verb\022\010\n\004NONE\020\000\022\007\n" + "\003GET\020\001\022\010\n\004HEAD\020\002\022\010\n\004POST\020\003\022\007\n\003PUT\020\004\022\n\n\006D" + "ELETE\020\005\022\013\n\007CONNECT\020\006\022\013\n\007OPTIONS\020\007\022\t\n\005TRA" + "CE\020\010\022\t\n\005PATCH\020\t\"\226\001\n\rInvokeRequest\022\016\n\006met" + "hod\030\001 \001(\t\022\"\n\004data\030\002 \001(\0132\024.google.protobu" + "f.Any\022\024\n\014content_type\030\003 \001(\t\022;\n\016http_exte" + "nsion\030\004 \001(\0132#.dapr.proto.common.v1.HTTPE" + "xtension\"J\n\016InvokeResponse\022\"\n\004data\030\001 \001(\013" + "2\024.google.protobuf.Any\022\024\n\014content_type\030\002" + " \001(\t\"*\n\rStreamPayload\022\014\n\004data\030\001 \001(\014\022\013\n\003s" + "eq\030\002 \001(\004\"\370\001\n\tStateItem\022\013\n\003key\030\001 \001(\t\022\r\n\005v" + "alue\030\002 \001(\014\022(\n\004etag\030\003 \001(\0132\032.dapr.proto.co" + "mmon.v1.Etag\022?\n\010metadata\030\004 \003(\0132-.dapr.pr" + "oto.common.v1.StateItem.MetadataEntry\0223\n" + "\007options\030\005 \001(\0132\".dapr.proto.common.v1.St" + "ateOptions\032/\n\rMetadataEntry\022\013\n\003key\030\001 \001(\t" + "\022\r\n\005value\030\002 \001(\t:\0028\001\"\025\n\004Etag\022\r\n\005value\030\001 \001" + "(\t\"\357\002\n\014StateOptions\022H\n\013concurrency\030\001 \001(\016" + "23.dapr.proto.common.v1.StateOptions.Sta" + "teConcurrency\022H\n\013consistency\030\002 \001(\01623.dap" + "r.proto.common.v1.StateOptions.StateCons" + "istency\"h\n\020StateConcurrency\022\033\n\027CONCURREN" + "CY_UNSPECIFIED\020\000\022\033\n\027CONCURRENCY_FIRST_WR" + "ITE\020\001\022\032\n\026CONCURRENCY_LAST_WRITE\020\002\"a\n\020Sta" + "teConsistency\022\033\n\027CONSISTENCY_UNSPECIFIED" + "\020\000\022\030\n\024CONSISTENCY_EVENTUAL\020\001\022\026\n\022CONSISTE" + "NCY_STRONG\020\002\"\255\001\n\021ConfigurationItem\022\r\n\005va" + "lue\030\001 \001(\t\022\017\n\007version\030\002 \001(\t\022G\n\010metadata\030\003" + " \003(\01325.dapr.proto.common.v1.Configuratio" + "nItem.MetadataEntry\032/\n\rMetadataEntry\022\013\n\003" + "key\030\001 \001(\t\022\r\n\005value\030\002 \001(\t:\0028\001Bi\n\nio.dapr." + "v1B\014CommonProtosZ/github.com/dapr/dapr/p" + "kg/proto/common/v1;common\252\002\033Dapr.Client." + "Autogen.Grpc.v1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.protobuf.AnyProto.getDescriptor(), }); internal_static_dapr_proto_common_v1_HTTPExtension_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_dapr_proto_common_v1_HTTPExtension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_dapr_proto_common_v1_HTTPExtension_descriptor, new java.lang.String[] { "Verb", "Querystring", }); internal_static_dapr_proto_common_v1_InvokeRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_dapr_proto_common_v1_InvokeRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_dapr_proto_common_v1_InvokeRequest_descriptor, new java.lang.String[] { "Method", "Data", "ContentType", "HttpExtension", }); internal_static_dapr_proto_common_v1_InvokeResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_dapr_proto_common_v1_InvokeResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_dapr_proto_common_v1_InvokeResponse_descriptor, new java.lang.String[] { "Data", "ContentType", }); internal_static_dapr_proto_common_v1_StreamPayload_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_dapr_proto_common_v1_StreamPayload_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_dapr_proto_common_v1_StreamPayload_descriptor, new java.lang.String[] { "Data", "Seq", }); internal_static_dapr_proto_common_v1_StateItem_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_dapr_proto_common_v1_StateItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_dapr_proto_common_v1_StateItem_descriptor, new java.lang.String[] { "Key", "Value", "Etag", "Metadata", "Options", }); internal_static_dapr_proto_common_v1_StateItem_MetadataEntry_descriptor = internal_static_dapr_proto_common_v1_StateItem_descriptor.getNestedTypes().get(0); internal_static_dapr_proto_common_v1_StateItem_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_dapr_proto_common_v1_StateItem_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_dapr_proto_common_v1_Etag_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_dapr_proto_common_v1_Etag_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_dapr_proto_common_v1_Etag_descriptor, new java.lang.String[] { "Value", }); internal_static_dapr_proto_common_v1_StateOptions_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_dapr_proto_common_v1_StateOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_dapr_proto_common_v1_StateOptions_descriptor, new java.lang.String[] { "Concurrency", "Consistency", }); internal_static_dapr_proto_common_v1_ConfigurationItem_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_dapr_proto_common_v1_ConfigurationItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_dapr_proto_common_v1_ConfigurationItem_descriptor, new java.lang.String[] { "Value", "Version", "Metadata", }); internal_static_dapr_proto_common_v1_ConfigurationItem_MetadataEntry_descriptor = internal_static_dapr_proto_common_v1_ConfigurationItem_descriptor.getNestedTypes().get(0); internal_static_dapr_proto_common_v1_ConfigurationItem_MetadataEntry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_dapr_proto_common_v1_ConfigurationItem_MetadataEntry_descriptor, new java.lang.String[] { "Key", "Value", }); com.google.protobuf.AnyProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy