Class Snapshot.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
-
- io.axoniq.axonserver.grpc.event.dcb.Snapshot.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,SnapshotOrBuilder,Cloneable
- Enclosing class:
- Snapshot
public static final class Snapshot.Builder extends com.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder> implements SnapshotOrBuilder
The snapshot.
Protobuf typeio.axoniq.axonserver.grpc.event.dcb.Snapshot
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Snapshotbuild()SnapshotbuildPartial()Snapshot.Builderclear()Snapshot.BuilderclearMetadata()Snapshot.BuilderclearName()The name of the snapshot.Snapshot.BuilderclearPayload()The payload of the snapshot.Snapshot.BuilderclearTimestamp()The timestamp of the snapshot.Snapshot.BuilderclearVersion()The version of the snapshot.booleancontainsMetadata(String key)The metadata of the snapshot.SnapshotgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()Map<String,String>getMetadata()Deprecated.intgetMetadataCount()The metadata of the snapshot.Map<String,String>getMetadataMap()The metadata of the snapshot.StringgetMetadataOrDefault(String key, String defaultValue)The metadata of the snapshot.StringgetMetadataOrThrow(String key)The metadata of the snapshot.Map<String,String>getMutableMetadata()Deprecated.StringgetName()The name of the snapshot.com.google.protobuf.ByteStringgetNameBytes()The name of the snapshot.com.google.protobuf.ByteStringgetPayload()The payload of the snapshot.longgetTimestamp()The timestamp of the snapshot.StringgetVersion()The version of the snapshot.com.google.protobuf.ByteStringgetVersionBytes()The version of the snapshot.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number)protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number)booleanisInitialized()Snapshot.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Snapshot.BuildermergeFrom(com.google.protobuf.Message other)Snapshot.BuildermergeFrom(Snapshot other)Snapshot.BuilderputAllMetadata(Map<String,String> values)The metadata of the snapshot.Snapshot.BuilderputMetadata(String key, String value)The metadata of the snapshot.Snapshot.BuilderremoveMetadata(String key)The metadata of the snapshot.Snapshot.BuildersetName(String value)The name of the snapshot.Snapshot.BuildersetNameBytes(com.google.protobuf.ByteString value)The name of the snapshot.Snapshot.BuildersetPayload(com.google.protobuf.ByteString value)The payload of the snapshot.Snapshot.BuildersetTimestamp(long value)The timestamp of the snapshot.Snapshot.BuildersetVersion(String value)The version of the snapshot.Snapshot.BuildersetVersionBytes(com.google.protobuf.ByteString value)The version of the snapshot.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, 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
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
- Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
- Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
-
clear
public Snapshot.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Snapshot.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.GeneratedMessage.Builder<Snapshot.Builder>
-
getDefaultInstanceForType
public Snapshot getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Snapshot build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Snapshot buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public Snapshot.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>
-
mergeFrom
public Snapshot.Builder mergeFrom(Snapshot other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
-
mergeFrom
public Snapshot.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<Snapshot.Builder>- Throws:
IOException
-
getName
public String getName()
The name of the snapshot.
string name = 1;- Specified by:
getNamein interfaceSnapshotOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()
The name of the snapshot.
string name = 1;- Specified by:
getNameBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for name.
-
setName
public Snapshot.Builder setName(String value)
The name of the snapshot.
string name = 1;- Parameters:
value- The name to set.- Returns:
- This builder for chaining.
-
clearName
public Snapshot.Builder clearName()
The name of the snapshot.
string name = 1;- Returns:
- This builder for chaining.
-
setNameBytes
public Snapshot.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the snapshot.
string name = 1;- Parameters:
value- The bytes for name to set.- Returns:
- This builder for chaining.
-
getVersion
public String getVersion()
The version of the snapshot.
string version = 2;- Specified by:
getVersionin interfaceSnapshotOrBuilder- Returns:
- The version.
-
getVersionBytes
public com.google.protobuf.ByteString getVersionBytes()
The version of the snapshot.
string version = 2;- Specified by:
getVersionBytesin interfaceSnapshotOrBuilder- Returns:
- The bytes for version.
-
setVersion
public Snapshot.Builder setVersion(String value)
The version of the snapshot.
string version = 2;- Parameters:
value- The version to set.- Returns:
- This builder for chaining.
-
clearVersion
public Snapshot.Builder clearVersion()
The version of the snapshot.
string version = 2;- Returns:
- This builder for chaining.
-
setVersionBytes
public Snapshot.Builder setVersionBytes(com.google.protobuf.ByteString value)
The version of the snapshot.
string version = 2;- Parameters:
value- The bytes for version to set.- Returns:
- This builder for chaining.
-
getPayload
public com.google.protobuf.ByteString getPayload()
The payload of the snapshot.
bytes payload = 3;- Specified by:
getPayloadin interfaceSnapshotOrBuilder- Returns:
- The payload.
-
setPayload
public Snapshot.Builder setPayload(com.google.protobuf.ByteString value)
The payload of the snapshot.
bytes payload = 3;- Parameters:
value- The payload to set.- Returns:
- This builder for chaining.
-
clearPayload
public Snapshot.Builder clearPayload()
The payload of the snapshot.
bytes payload = 3;- Returns:
- This builder for chaining.
-
getTimestamp
public long getTimestamp()
The timestamp of the snapshot.
int64 timestamp = 4;- Specified by:
getTimestampin interfaceSnapshotOrBuilder- Returns:
- The timestamp.
-
setTimestamp
public Snapshot.Builder setTimestamp(long value)
The timestamp of the snapshot.
int64 timestamp = 4;- Parameters:
value- The timestamp to set.- Returns:
- This builder for chaining.
-
clearTimestamp
public Snapshot.Builder clearTimestamp()
The timestamp of the snapshot.
int64 timestamp = 4;- Returns:
- This builder for chaining.
-
getMetadataCount
public int getMetadataCount()
Description copied from interface:SnapshotOrBuilderThe metadata of the snapshot.
map<string, string> metadata = 5;- Specified by:
getMetadataCountin interfaceSnapshotOrBuilder
-
containsMetadata
public boolean containsMetadata(String key)
The metadata of the snapshot.
map<string, string> metadata = 5;- Specified by:
containsMetadatain interfaceSnapshotOrBuilder
-
getMetadata
@Deprecated public Map<String,String> getMetadata()
Deprecated.UsegetMetadataMap()instead.- Specified by:
getMetadatain interfaceSnapshotOrBuilder
-
getMetadataMap
public Map<String,String> getMetadataMap()
The metadata of the snapshot.
map<string, string> metadata = 5;- Specified by:
getMetadataMapin interfaceSnapshotOrBuilder
-
getMetadataOrDefault
public String getMetadataOrDefault(String key, String defaultValue)
The metadata of the snapshot.
map<string, string> metadata = 5;- Specified by:
getMetadataOrDefaultin interfaceSnapshotOrBuilder
-
getMetadataOrThrow
public String getMetadataOrThrow(String key)
The metadata of the snapshot.
map<string, string> metadata = 5;- Specified by:
getMetadataOrThrowin interfaceSnapshotOrBuilder
-
clearMetadata
public Snapshot.Builder clearMetadata()
-
removeMetadata
public Snapshot.Builder removeMetadata(String key)
The metadata of the snapshot.
map<string, string> metadata = 5;
-
getMutableMetadata
@Deprecated public Map<String,String> getMutableMetadata()
Deprecated.Use alternate mutation accessors instead.
-
putMetadata
public Snapshot.Builder putMetadata(String key, String value)
The metadata of the snapshot.
map<string, string> metadata = 5;
-
putAllMetadata
public Snapshot.Builder putAllMetadata(Map<String,String> values)
The metadata of the snapshot.
map<string, string> metadata = 5;
-
-