Package io.dapr.v1

Class CommonProtos.StateItem.Builder

    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapField

        protected com.google.protobuf.MapField internalGetMapField​(int number)
        Overrides:
        internalGetMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • internalGetMutableMapField

        protected com.google.protobuf.MapField internalGetMutableMapField​(int number)
        Overrides:
        internalGetMutableMapField in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • clear

        public CommonProtos.StateItem.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • getDefaultInstanceForType

        public CommonProtos.StateItem getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public CommonProtos.StateItem build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public CommonProtos.StateItem buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public CommonProtos.StateItem.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • clearField

        public CommonProtos.StateItem.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • clearOneof

        public CommonProtos.StateItem.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • setRepeatedField

        public CommonProtos.StateItem.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               int index,
                                                               Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • addRepeatedField

        public CommonProtos.StateItem.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                               Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • mergeFrom

        public CommonProtos.StateItem.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                 throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommonProtos.StateItem.Builder>
        Throws:
        IOException
      • setKey

        public CommonProtos.StateItem.Builder setKey​(String value)
         Required. The state key
         
        string key = 1;
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • setKeyBytes

        public CommonProtos.StateItem.Builder setKeyBytes​(com.google.protobuf.ByteString value)
         Required. The state key
         
        string key = 1;
        Parameters:
        value - The bytes for key to set.
        Returns:
        This builder for chaining.
      • getValue

        public com.google.protobuf.ByteString getValue()
         Required. The state data for key
         
        bytes value = 2;
        Specified by:
        getValue in interface CommonProtos.StateItemOrBuilder
        Returns:
        The value.
      • setValue

        public CommonProtos.StateItem.Builder setValue​(com.google.protobuf.ByteString value)
         Required. The state data for key
         
        bytes value = 2;
        Parameters:
        value - The value to set.
        Returns:
        This builder for chaining.
      • clearValue

        public CommonProtos.StateItem.Builder clearValue()
         Required. The state data for key
         
        bytes value = 2;
        Returns:
        This builder for chaining.
      • hasEtag

        public 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;
        Specified by:
        hasEtag in interface CommonProtos.StateItemOrBuilder
        Returns:
        Whether the etag field is set.
      • getEtag

        public 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;
        Specified by:
        getEtag in interface CommonProtos.StateItemOrBuilder
        Returns:
        The etag.
      • setEtag

        public CommonProtos.StateItem.Builder setEtag​(CommonProtos.Etag value)
         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;
      • mergeEtag

        public CommonProtos.StateItem.Builder mergeEtag​(CommonProtos.Etag value)
         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;
      • clearEtag

        public CommonProtos.StateItem.Builder clearEtag()
         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;
      • getEtagBuilder

        public CommonProtos.Etag.Builder getEtagBuilder()
         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;
      • removeMetadata

        public CommonProtos.StateItem.Builder removeMetadata​(String key)
         The metadata which will be passed to state store component.
         
        map<string, string> metadata = 4;
      • getMutableMetadata

        @Deprecated
        public Map<String,​String> getMutableMetadata()
        Deprecated.
        Use alternate mutation accessors instead.
      • hasOptions

        public boolean hasOptions()
         Options for concurrency and consistency to save the state.
         
        .dapr.proto.common.v1.StateOptions options = 5;
        Specified by:
        hasOptions in interface CommonProtos.StateItemOrBuilder
        Returns:
        Whether the options field is set.
      • clearOptions

        public CommonProtos.StateItem.Builder clearOptions()
         Options for concurrency and consistency to save the state.
         
        .dapr.proto.common.v1.StateOptions options = 5;
      • getOptionsBuilder

        public CommonProtos.StateOptions.Builder getOptionsBuilder()
         Options for concurrency and consistency to save the state.
         
        .dapr.proto.common.v1.StateOptions options = 5;
      • setUnknownFields

        public final CommonProtos.StateItem.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
      • mergeUnknownFields

        public final CommonProtos.StateItem.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>