Package io.dapr.v1
Class DaprProtos.GetStateResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateResponse.Builder>
io.dapr.v1.DaprProtos.GetStateResponse.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,DaprProtos.GetStateResponseOrBuilder
,Cloneable
- Enclosing class:
- DaprProtos.GetStateResponse
public static final class DaprProtos.GetStateResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateResponse.Builder>
implements DaprProtos.GetStateResponseOrBuilder
GetStateResponse is the response conveying the state value and etag.Protobuf type
dapr.proto.runtime.v1.GetStateResponse
-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()
clear()
The byte array dataThe entity tag which represents the specific version of data.clearField
(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof
(com.google.protobuf.Descriptors.OneofDescriptor oneof) clone()
boolean
containsMetadata
(String key) The metadata which will be sent to app.com.google.protobuf.ByteString
getData()
The byte array datastatic final com.google.protobuf.Descriptors.Descriptor
com.google.protobuf.Descriptors.Descriptor
getEtag()
The entity tag which represents the specific version of data.com.google.protobuf.ByteString
The entity tag which represents the specific version of data.Deprecated.int
The metadata which will be sent to app.The metadata which will be sent to app.getMetadataOrDefault
(String key, String defaultValue) The metadata which will be sent to app.getMetadataOrThrow
(String key) The metadata which will be sent to app.Deprecated.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 app.putMetadata
(String key, String value) The metadata which will be sent to app.removeMetadata
(String key) The metadata which will be sent to app.setData
(com.google.protobuf.ByteString value) The byte array dataThe entity tag which represents the specific version of data.setEtagBytes
(com.google.protobuf.ByteString value) The entity tag which represents the specific version of data.setRepeatedField
(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) 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.GetStateResponse.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number) - Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateResponse.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateResponse.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.GetStateResponse.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.GetStateResponse.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.GetStateResponse.Builder>
-
setField
public DaprProtos.GetStateResponse.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.GetStateResponse.Builder>
-
clearField
public DaprProtos.GetStateResponse.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.GetStateResponse.Builder>
-
clearOneof
public DaprProtos.GetStateResponse.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.GetStateResponse.Builder>
-
setRepeatedField
public DaprProtos.GetStateResponse.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.GetStateResponse.Builder>
-
addRepeatedField
public DaprProtos.GetStateResponse.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.GetStateResponse.Builder>
-
mergeFrom
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DaprProtos.GetStateResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DaprProtos.GetStateResponse.Builder>
-
mergeFrom
public DaprProtos.GetStateResponse.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.GetStateResponse.Builder>
- Throws:
IOException
-
getData
public com.google.protobuf.ByteString getData()The byte array data
bytes data = 1;
- Specified by:
getData
in interfaceDaprProtos.GetStateResponseOrBuilder
- Returns:
- The data.
-
setData
The byte array data
bytes data = 1;
- Parameters:
value
- The data to set.- Returns:
- This builder for chaining.
-
clearData
The byte array data
bytes data = 1;
- Returns:
- This builder for chaining.
-
getEtag
The entity tag which represents the specific version of data. ETag format is defined by the corresponding data store.
string etag = 2;
- Specified by:
getEtag
in interfaceDaprProtos.GetStateResponseOrBuilder
- Returns:
- The etag.
-
getEtagBytes
public com.google.protobuf.ByteString getEtagBytes()The entity tag which represents the specific version of data. ETag format is defined by the corresponding data store.
string etag = 2;
- Specified by:
getEtagBytes
in interfaceDaprProtos.GetStateResponseOrBuilder
- Returns:
- The bytes for etag.
-
setEtag
The entity tag which represents the specific version of data. ETag format is defined by the corresponding data store.
string etag = 2;
- Parameters:
value
- The etag to set.- Returns:
- This builder for chaining.
-
clearEtag
The entity tag which represents the specific version of data. ETag format is defined by the corresponding data store.
string etag = 2;
- Returns:
- This builder for chaining.
-
setEtagBytes
The entity tag which represents the specific version of data. ETag format is defined by the corresponding data store.
string etag = 2;
- Parameters:
value
- The bytes for etag to set.- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()Description copied from interface:DaprProtos.GetStateResponseOrBuilder
The metadata which will be sent to app.
map<string, string> metadata = 3;
- Specified by:
getMetadataCount
in interfaceDaprProtos.GetStateResponseOrBuilder
-
containsMetadata
The metadata which will be sent to app.
map<string, string> metadata = 3;
- Specified by:
containsMetadata
in interfaceDaprProtos.GetStateResponseOrBuilder
-
getMetadata
Deprecated.UsegetMetadataMap()
instead.- Specified by:
getMetadata
in interfaceDaprProtos.GetStateResponseOrBuilder
-
getMetadataMap
The metadata which will be sent to app.
map<string, string> metadata = 3;
- Specified by:
getMetadataMap
in interfaceDaprProtos.GetStateResponseOrBuilder
-
getMetadataOrDefault
The metadata which will be sent to app.
map<string, string> metadata = 3;
- Specified by:
getMetadataOrDefault
in interfaceDaprProtos.GetStateResponseOrBuilder
-
getMetadataOrThrow
The metadata which will be sent to app.
map<string, string> metadata = 3;
- Specified by:
getMetadataOrThrow
in interfaceDaprProtos.GetStateResponseOrBuilder
-
clearMetadata
-
removeMetadata
The metadata which will be sent to app.
map<string, string> metadata = 3;
-
getMutableMetadata
Deprecated.Use alternate mutation accessors instead. -
putMetadata
The metadata which will be sent to app.
map<string, string> metadata = 3;
-
putAllMetadata
The metadata which will be sent to app.
map<string, string> metadata = 3;
-
setUnknownFields
public final DaprProtos.GetStateResponse.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.GetStateResponse.Builder>
-
mergeUnknownFields
public final DaprProtos.GetStateResponse.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.GetStateResponse.Builder>
-