Class 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 type io.axoniq.axonserver.grpc.event.dcb.Snapshot
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection​(int number)
        Overrides:
        internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
      • internalGetMutableMapFieldReflection

        protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection​(int number)
        Overrides:
        internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
      • clear

        public Snapshot.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<Snapshot.Builder>
      • getDefaultInstanceForType

        public Snapshot getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Snapshot build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Snapshot buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public Snapshot.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Snapshot.Builder>
        Throws:
        IOException
      • getName

        public String getName()
         The name of the snapshot. 
         
        string name = 1;
        Specified by:
        getName in interface SnapshotOrBuilder
        Returns:
        The name.
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         The name of the snapshot. 
         
        string name = 1;
        Specified by:
        getNameBytes in interface SnapshotOrBuilder
        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:
        getVersion in interface SnapshotOrBuilder
        Returns:
        The version.
      • getVersionBytes

        public com.google.protobuf.ByteString getVersionBytes()
         The version of the snapshot. 
         
        string version = 2;
        Specified by:
        getVersionBytes in interface SnapshotOrBuilder
        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:
        getPayload in interface SnapshotOrBuilder
        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:
        getTimestamp in interface SnapshotOrBuilder
        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.
      • containsMetadata

        public boolean containsMetadata​(String key)
         The metadata of the snapshot. 
         
        map<string, string> metadata = 5;
        Specified by:
        containsMetadata in interface SnapshotOrBuilder
      • 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;