Package io.dapr.v1
Class DaprProtos.GetStateRequest.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateRequest.Builder>
io.dapr.v1.DaprProtos.GetStateRequest.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,DaprProtos.GetStateRequestOrBuilder
,Cloneable
- Enclosing class:
- DaprProtos.GetStateRequest
public static final class DaprProtos.GetStateRequest.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateRequest.Builder>
implements DaprProtos.GetStateRequestOrBuilder
GetStateRequest is the message to get key-value states from specific state store.Protobuf type
dapr.proto.runtime.v1.GetStateRequest
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The read consistency of the state store.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearKey()
The key of the desired stateclearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) The name of state store.clone()
boolean
containsMetadata
(String key) The metadata which will be sent to state store components.The read consistency of the state store.int
The read consistency of the state store.static final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getKey()
The key of the desired statecom.google.protobuf.ByteString
The key of the desired stateDeprecated.int
The metadata which will be sent to state store components.The metadata which will be sent to state store components.getMetadataOrDefault
(String key, String defaultValue) The metadata which will be sent to state store components.getMetadataOrThrow
(String key) The metadata which will be sent to state store components.Deprecated.The name of state store.com.google.protobuf.ByteString
The name of state store.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
protected com.google.protobuf.MapField
internalGetMapField
(int number) protected com.google.protobuf.MapField
internalGetMutableMapField
(int number) final boolean
mergeFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom
(com.google.protobuf.Message other) mergeUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) putAllMetadata
(Map<String, String> values) The metadata which will be sent to state store components.putMetadata
(String key, String value) The metadata which will be sent to state store components.removeMetadata
(String key) The metadata which will be sent to state store components.The read consistency of the state store.setConsistencyValue
(int value) The read consistency of the state store.The key of the desired statesetKeyBytes
(com.google.protobuf.ByteString value) The key of the desired statesetRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStoreName
(String value) The name of state store.setStoreNameBytes
(com.google.protobuf.ByteString value) The name of state store.setUnknownFields
(com.google.protobuf.UnknownFieldSet unknownFields) 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<DaprProtos.GetStateRequest.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateRequest.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateRequest.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<DaprProtos.GetStateRequest.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<DaprProtos.GetStateRequest.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<DaprProtos.GetStateRequest.Builder>
-
setField
public DaprProtos.GetStateRequest.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<DaprProtos.GetStateRequest.Builder>
-
clearField
public DaprProtos.GetStateRequest.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<DaprProtos.GetStateRequest.Builder>
-
clearOneof
public DaprProtos.GetStateRequest.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<DaprProtos.GetStateRequest.Builder>
-
setRepeatedField
public DaprProtos.GetStateRequest.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<DaprProtos.GetStateRequest.Builder>
-
addRepeatedField
public DaprProtos.GetStateRequest.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<DaprProtos.GetStateRequest.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DaprProtos.GetStateRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateRequest.Builder>
-
mergeFrom
public DaprProtos.GetStateRequest.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<DaprProtos.GetStateRequest.Builder>
- Throws:
IOException
-
getStoreName
The name of state store.
string store_name = 1;
- Specified by:
getStoreName
in interfaceDaprProtos.GetStateRequestOrBuilder
- Returns:
- The storeName.
-
getStoreNameBytes
public com.google.protobuf.ByteString getStoreNameBytes()The name of state store.
string store_name = 1;
- Specified by:
getStoreNameBytes
in interfaceDaprProtos.GetStateRequestOrBuilder
- Returns:
- The bytes for storeName.
-
setStoreName
The name of state store.
string store_name = 1;
- Parameters:
value
- The storeName to set.- Returns:
- This builder for chaining.
-
clearStoreName
The name of state store.
string store_name = 1;
- Returns:
- This builder for chaining.
-
setStoreNameBytes
The name of state store.
string store_name = 1;
- Parameters:
value
- The bytes for storeName to set.- Returns:
- This builder for chaining.
-
getKey
The key of the desired state
string key = 2;
- Specified by:
getKey
in interfaceDaprProtos.GetStateRequestOrBuilder
- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()The key of the desired state
string key = 2;
- Specified by:
getKeyBytes
in interfaceDaprProtos.GetStateRequestOrBuilder
- Returns:
- The bytes for key.
-
setKey
The key of the desired state
string key = 2;
- Parameters:
value
- The key to set.- Returns:
- This builder for chaining.
-
clearKey
The key of the desired state
string key = 2;
- Returns:
- This builder for chaining.
-
setKeyBytes
The key of the desired state
string key = 2;
- Parameters:
value
- The bytes for key to set.- Returns:
- This builder for chaining.
-
getConsistencyValue
public int getConsistencyValue()The read consistency of the state store.
.dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
- Specified by:
getConsistencyValue
in interfaceDaprProtos.GetStateRequestOrBuilder
- Returns:
- The enum numeric value on the wire for consistency.
-
setConsistencyValue
The read consistency of the state store.
.dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
- Parameters:
value
- The enum numeric value on the wire for consistency to set.- Returns:
- This builder for chaining.
-
getConsistency
The read consistency of the state store.
.dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
- Specified by:
getConsistency
in interfaceDaprProtos.GetStateRequestOrBuilder
- Returns:
- The consistency.
-
setConsistency
public DaprProtos.GetStateRequest.Builder setConsistency(CommonProtos.StateOptions.StateConsistency value) The read consistency of the state store.
.dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
- Parameters:
value
- The consistency to set.- Returns:
- This builder for chaining.
-
clearConsistency
The read consistency of the state store.
.dapr.proto.common.v1.StateOptions.StateConsistency consistency = 3;
- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:DaprProtos.GetStateRequestOrBuilder
The metadata which will be sent to state store components.
map<string, string> metadata = 4;
- Specified by:
getMetadataCount
in interfaceDaprProtos.GetStateRequestOrBuilder
-
containsMetadata
The metadata which will be sent to state store components.
map<string, string> metadata = 4;
- Specified by:
containsMetadata
in interfaceDaprProtos.GetStateRequestOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in interfaceDaprProtos.GetStateRequestOrBuilder
-
getMetadataMap
The metadata which will be sent to state store components.
map<string, string> metadata = 4;
- Specified by:
getMetadataMap
in interfaceDaprProtos.GetStateRequestOrBuilder
-
getMetadataOrDefault
The metadata which will be sent to state store components.
map<string, string> metadata = 4;
- Specified by:
getMetadataOrDefault
in interfaceDaprProtos.GetStateRequestOrBuilder
-
getMetadataOrThrow
The metadata which will be sent to state store components.
map<string, string> metadata = 4;
- Specified by:
getMetadataOrThrow
in interfaceDaprProtos.GetStateRequestOrBuilder
-
clearMetadata
-
removeMetadata
The metadata which will be sent to state store components.
map<string, string> metadata = 4;
-
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
The metadata which will be sent to state store components.
map<string, string> metadata = 4;
-
putAllMetadata
The metadata which will be sent to state store components.
map<string, string> metadata = 4;
-
setUnknownFields
public final DaprProtos.GetStateRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateRequest.Builder>
-
mergeUnknownFields
public final DaprProtos.GetStateRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateRequest.Builder>
-