Package io.dapr.v1
Class CommonProtos.StateItem.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderType>
-
- 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 typedapr.proto.common.v1.StateItem
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CommonProtos.StateItem.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommonProtos.StateItembuild()CommonProtos.StateItembuildPartial()CommonProtos.StateItem.Builderclear()CommonProtos.StateItem.BuilderclearEtag()The entity tag which represents the specific version of data.CommonProtos.StateItem.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CommonProtos.StateItem.BuilderclearKey()Required.CommonProtos.StateItem.BuilderclearMetadata()CommonProtos.StateItem.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CommonProtos.StateItem.BuilderclearOptions()Options for concurrency and consistency to save the state.CommonProtos.StateItem.BuilderclearValue()Required.CommonProtos.StateItem.Builderclone()booleancontainsMetadata(String key)The metadata which will be passed to state store component.CommonProtos.StateItemgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()CommonProtos.EtaggetEtag()The entity tag which represents the specific version of data.CommonProtos.Etag.BuildergetEtagBuilder()The entity tag which represents the specific version of data.CommonProtos.EtagOrBuildergetEtagOrBuilder()The entity tag which represents the specific version of data.StringgetKey()Required.com.google.protobuf.ByteStringgetKeyBytes()Required.Map<String,String>getMetadata()Deprecated.intgetMetadataCount()The metadata which will be passed to state store component.Map<String,String>getMetadataMap()The metadata which will be passed to state store component.StringgetMetadataOrDefault(String key, String defaultValue)The metadata which will be passed to state store component.StringgetMetadataOrThrow(String key)The metadata which will be passed to state store component.Map<String,String>getMutableMetadata()Deprecated.CommonProtos.StateOptionsgetOptions()Options for concurrency and consistency to save the state.CommonProtos.StateOptions.BuildergetOptionsBuilder()Options for concurrency and consistency to save the state.CommonProtos.StateOptionsOrBuildergetOptionsOrBuilder()Options for concurrency and consistency to save the state.com.google.protobuf.ByteStringgetValue()Required.booleanhasEtag()The entity tag which represents the specific version of data.booleanhasOptions()Options for concurrency and consistency to save the state.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()CommonProtos.StateItem.BuildermergeEtag(CommonProtos.Etag value)The entity tag which represents the specific version of data.CommonProtos.StateItem.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CommonProtos.StateItem.BuildermergeFrom(com.google.protobuf.Message other)CommonProtos.StateItem.BuildermergeFrom(CommonProtos.StateItem other)CommonProtos.StateItem.BuildermergeOptions(CommonProtos.StateOptions value)Options for concurrency and consistency to save the state.CommonProtos.StateItem.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CommonProtos.StateItem.BuilderputAllMetadata(Map<String,String> values)The metadata which will be passed to state store component.CommonProtos.StateItem.BuilderputMetadata(String key, String value)The metadata which will be passed to state store component.CommonProtos.StateItem.BuilderremoveMetadata(String key)The metadata which will be passed to state store component.CommonProtos.StateItem.BuildersetEtag(CommonProtos.Etag value)The entity tag which represents the specific version of data.CommonProtos.StateItem.BuildersetEtag(CommonProtos.Etag.Builder builderForValue)The entity tag which represents the specific version of data.CommonProtos.StateItem.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommonProtos.StateItem.BuildersetKey(String value)Required.CommonProtos.StateItem.BuildersetKeyBytes(com.google.protobuf.ByteString value)Required.CommonProtos.StateItem.BuildersetOptions(CommonProtos.StateOptions value)Options for concurrency and consistency to save the state.CommonProtos.StateItem.BuildersetOptions(CommonProtos.StateOptions.Builder builderForValue)Options for concurrency and consistency to save the state.CommonProtos.StateItem.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CommonProtos.StateItem.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CommonProtos.StateItem.BuildersetValue(com.google.protobuf.ByteString value)Required.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeFrom, newUninitializedMessageException
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
clear
public CommonProtos.StateItem.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
getDefaultInstanceForType
public CommonProtos.StateItem getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommonProtos.StateItem build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommonProtos.StateItem buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommonProtos.StateItem.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
setField
public CommonProtos.StateItem.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
clearField
public CommonProtos.StateItem.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
clearOneof
public CommonProtos.StateItem.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin 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:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
addRepeatedField
public CommonProtos.StateItem.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
mergeFrom
public CommonProtos.StateItem.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommonProtos.StateItem.Builder>
-
mergeFrom
public CommonProtos.StateItem.Builder mergeFrom(CommonProtos.StateItem other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin 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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommonProtos.StateItem.Builder>- Throws:
IOException
-
getKey
public String getKey()
Required. The state key
string key = 1;- Specified by:
getKeyin interfaceCommonProtos.StateItemOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()
Required. The state key
string key = 1;- Specified by:
getKeyBytesin interfaceCommonProtos.StateItemOrBuilder- Returns:
- The bytes for key.
-
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.
-
clearKey
public CommonProtos.StateItem.Builder clearKey()
Required. The state key
string key = 1;- 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:
getValuein interfaceCommonProtos.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:
hasEtagin interfaceCommonProtos.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:
getEtagin interfaceCommonProtos.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;
-
setEtag
public CommonProtos.StateItem.Builder setEtag(CommonProtos.Etag.Builder builderForValue)
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;
-
getEtagOrBuilder
public CommonProtos.EtagOrBuilder 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:
getEtagOrBuilderin interfaceCommonProtos.StateItemOrBuilder
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:CommonProtos.StateItemOrBuilderThe metadata which will be passed to state store component.
map<string, string> metadata = 4;- Specified by:
getMetadataCountin interfaceCommonProtos.StateItemOrBuilder
-
containsMetadata
public boolean containsMetadata(String key)
The metadata which will be passed to state store component.
map<string, string> metadata = 4;- Specified by:
containsMetadatain interfaceCommonProtos.StateItemOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceCommonProtos.StateItemOrBuilder
-
getMetadataMap
public Map<String,String> getMetadataMap()
The metadata which will be passed to state store component.
map<string, string> metadata = 4;- Specified by:
getMetadataMapin interfaceCommonProtos.StateItemOrBuilder
-
getMetadataOrDefault
public String getMetadataOrDefault(String key, String defaultValue)
The metadata which will be passed to state store component.
map<string, string> metadata = 4;- Specified by:
getMetadataOrDefaultin interfaceCommonProtos.StateItemOrBuilder
-
getMetadataOrThrow
public String getMetadataOrThrow(String key)
The metadata which will be passed to state store component.
map<string, string> metadata = 4;- Specified by:
getMetadataOrThrowin interfaceCommonProtos.StateItemOrBuilder
-
clearMetadata
public CommonProtos.StateItem.Builder clearMetadata()
-
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.
-
putMetadata
public CommonProtos.StateItem.Builder putMetadata(String key, String value)
The metadata which will be passed to state store component.
map<string, string> metadata = 4;
-
putAllMetadata
public CommonProtos.StateItem.Builder putAllMetadata(Map<String,String> values)
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:
hasOptionsin interfaceCommonProtos.StateItemOrBuilder- Returns:
- Whether the options field is set.
-
getOptions
public CommonProtos.StateOptions getOptions()
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;- Specified by:
getOptionsin interfaceCommonProtos.StateItemOrBuilder- Returns:
- The options.
-
setOptions
public CommonProtos.StateItem.Builder setOptions(CommonProtos.StateOptions value)
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;
-
setOptions
public CommonProtos.StateItem.Builder setOptions(CommonProtos.StateOptions.Builder builderForValue)
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;
-
mergeOptions
public CommonProtos.StateItem.Builder mergeOptions(CommonProtos.StateOptions value)
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;
-
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;
-
getOptionsOrBuilder
public CommonProtos.StateOptionsOrBuilder getOptionsOrBuilder()
Options for concurrency and consistency to save the state.
.dapr.proto.common.v1.StateOptions options = 5;- Specified by:
getOptionsOrBuilderin interfaceCommonProtos.StateItemOrBuilder
-
setUnknownFields
public final CommonProtos.StateItem.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
mergeUnknownFields
public final CommonProtos.StateItem.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonProtos.StateItem.Builder>
-
-