Package io.dapr.v1
Class CommonProtos.StateItem.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
io.dapr.v1.CommonProtos.StateItem.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,CommonProtos.StateItemOrBuilder
,Cloneable
- Enclosing class:
- CommonProtos.StateItem
public static final class CommonProtos.StateItem.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
implements CommonProtos.StateItemOrBuilder
StateItem represents state key, value, and additional options to save state.Protobuf type
dapr.proto.common.v1.StateItem
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The entity tag which represents the specific version of data.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()
Required.clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) Options for concurrency and consistency to save the state.Required.clone()
boolean
containsMetadata
(String key) The metadata which will be passed to state store component.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getEtag()
The entity tag which represents the specific version of data.The entity tag which represents the specific version of data.The entity tag which represents the specific version of data.getKey()
Required.com.google.protobuf.ByteString
Required.Deprecated.int
The metadata which will be passed to state store component.The metadata which will be passed to state store component.getMetadataOrDefault
(String key, String defaultValue) The metadata which will be passed to state store component.getMetadataOrThrow
(String key) The metadata which will be passed to state store component.Deprecated.Options for concurrency and consistency to save the state.Options for concurrency and consistency to save the state.Options for concurrency and consistency to save the state.com.google.protobuf.ByteString
getValue()
Required.boolean
hasEtag()
The entity tag which represents the specific version of data.boolean
Options for concurrency and consistency to save the state.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeEtag
(CommonProtos.Etag value) The entity tag which represents the specific version of data.mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeFrom
(CommonProtos.StateItem other) Options for concurrency and consistency to save the state.mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllMetadata
(Map<String, String> values) The metadata which will be passed to state store component.putMetadata
(String key, String value) The metadata which will be passed to state store component.removeMetadata
(String key) The metadata which will be passed to state store component.setEtag
(CommonProtos.Etag value) The entity tag which represents the specific version of data.setEtag
(CommonProtos.Etag.Builder builderForValue) The entity tag which represents the specific version of data.Required.setKeyBytes
(com.google.protobuf.ByteString value) Required.Options for concurrency and consistency to save the state.setOptions
(CommonProtos.StateOptions.Builder builderForValue) Options for concurrency and consistency to save the state.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) setValue
(com.google.protobuf.ByteString value) Required.Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapFieldReflection, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFrom
Methods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFrom
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number) - Overrides:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
clear
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
setField
public CommonProtos.StateItem.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
clearField
public CommonProtos.StateItem.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
clearOneof
public CommonProtos.StateItem.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommonProtos.StateItem.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommonProtos.StateItem.Builder>
- Throws:
IOException
-
getKey
Required. The state key
string key = 1;
- Specified by:
getKey
in interfaceCommonProtos.StateItemOrBuilder
- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()Required. The state key
string key = 1;
- Specified by:
getKeyBytes
in interfaceCommonProtos.StateItemOrBuilder
- Returns:
- The bytes for key.
-
setKey
Required. The state key
string key = 1;
- Parameters:
value
- The key to set.- Returns:
- This builder for chaining.
-
clearKey
Required. The state key
string key = 1;
- Returns:
- This builder for chaining.
-
setKeyBytes
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 interfaceCommonProtos.StateItemOrBuilder
- Returns:
- The value.
-
setValue
Required. The state data for key
bytes value = 2;
- Parameters:
value
- The value to set.- Returns:
- This builder for chaining.
-
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 interfaceCommonProtos.StateItemOrBuilder
- Returns:
- Whether the etag field is set.
-
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 interfaceCommonProtos.StateItemOrBuilder
- Returns:
- The etag.
-
setEtag
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;
-
setEtag
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
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
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
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;
-
getEtagOrBuilder
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:
getEtagOrBuilder
in interfaceCommonProtos.StateItemOrBuilder
-
getMetadataCount
public int getMetadataCount()Description copied from interface:CommonProtos.StateItemOrBuilder
The metadata which will be passed to state store component.
map<string, string> metadata = 4;
- Specified by:
getMetadataCount
in interfaceCommonProtos.StateItemOrBuilder
-
containsMetadata
The metadata which will be passed to state store component.
map<string, string> metadata = 4;
- Specified by:
containsMetadata
in interfaceCommonProtos.StateItemOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in interfaceCommonProtos.StateItemOrBuilder
-
getMetadataMap
The metadata which will be passed to state store component.
map<string, string> metadata = 4;
- Specified by:
getMetadataMap
in interfaceCommonProtos.StateItemOrBuilder
-
getMetadataOrDefault
The metadata which will be passed to state store component.
map<string, string> metadata = 4;
- Specified by:
getMetadataOrDefault
in interfaceCommonProtos.StateItemOrBuilder
-
getMetadataOrThrow
The metadata which will be passed to state store component.
map<string, string> metadata = 4;
- Specified by:
getMetadataOrThrow
in interfaceCommonProtos.StateItemOrBuilder
-
clearMetadata
-
removeMetadata
The metadata which will be passed to state store component.
map<string, string> metadata = 4;
-
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
The metadata which will be passed to state store component.
map<string, string> metadata = 4;
-
putAllMetadata
The metadata which will be passed to state store component.
map<string, string> metadata = 4;
-
hasOptions
public boolean hasOptions()Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;
- Specified by:
hasOptions
in interfaceCommonProtos.StateItemOrBuilder
- Returns:
- Whether the options field is set.
-
getOptions
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;
- Specified by:
getOptions
in interfaceCommonProtos.StateItemOrBuilder
- Returns:
- The options.
-
setOptions
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;
-
setOptions
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;
-
mergeOptions
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;
-
clearOptions
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;
-
getOptionsBuilder
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;
-
getOptionsOrBuilder
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;
- Specified by:
getOptionsOrBuilder
in interfaceCommonProtos.StateItemOrBuilder
-
setUnknownFields
public final CommonProtos.StateItem.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
mergeUnknownFields
public final CommonProtos.StateItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-