Class Version.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
io.streamnative.oxia.proto.Version.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VersionOrBuilder, Cloneable
Enclosing class:
Version

public static final class Version.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder> implements VersionOrBuilder

 Version contains info about the state of a record.
 
Protobuf type io.streamnative.oxia.proto.Version
  • Method Details

    • getDescriptor

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

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

      public Version.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.GeneratedMessageV3.Builder<Version.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.GeneratedMessageV3.Builder<Version.Builder>
    • getDefaultInstanceForType

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

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

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

      public Version.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
    • setField

      public Version.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
    • clearField

      public Version.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
    • clearOneof

      public Version.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
    • setRepeatedField

      public Version.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
    • addRepeatedField

      public Version.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
    • mergeFrom

      public Version.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<Version.Builder>
    • mergeFrom

      public Version.Builder mergeFrom(Version other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
    • mergeFrom

      public Version.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<Version.Builder>
      Throws:
      IOException
    • getVersionId

      public long getVersionId()
       The version identifier of the record
       
      int64 version_id = 1;
      Specified by:
      getVersionId in interface VersionOrBuilder
      Returns:
      The versionId.
    • setVersionId

      public Version.Builder setVersionId(long value)
       The version identifier of the record
       
      int64 version_id = 1;
      Parameters:
      value - The versionId to set.
      Returns:
      This builder for chaining.
    • clearVersionId

      public Version.Builder clearVersionId()
       The version identifier of the record
       
      int64 version_id = 1;
      Returns:
      This builder for chaining.
    • getModificationsCount

      public long getModificationsCount()
       The number of modifications made to the record since
       it was created
       
      int64 modifications_count = 2;
      Specified by:
      getModificationsCount in interface VersionOrBuilder
      Returns:
      The modificationsCount.
    • setModificationsCount

      public Version.Builder setModificationsCount(long value)
       The number of modifications made to the record since
       it was created
       
      int64 modifications_count = 2;
      Parameters:
      value - The modificationsCount to set.
      Returns:
      This builder for chaining.
    • clearModificationsCount

      public Version.Builder clearModificationsCount()
       The number of modifications made to the record since
       it was created
       
      int64 modifications_count = 2;
      Returns:
      This builder for chaining.
    • getCreatedTimestamp

      public long getCreatedTimestamp()
       The creation timestamp of the first version of the record
       
      fixed64 created_timestamp = 3;
      Specified by:
      getCreatedTimestamp in interface VersionOrBuilder
      Returns:
      The createdTimestamp.
    • setCreatedTimestamp

      public Version.Builder setCreatedTimestamp(long value)
       The creation timestamp of the first version of the record
       
      fixed64 created_timestamp = 3;
      Parameters:
      value - The createdTimestamp to set.
      Returns:
      This builder for chaining.
    • clearCreatedTimestamp

      public Version.Builder clearCreatedTimestamp()
       The creation timestamp of the first version of the record
       
      fixed64 created_timestamp = 3;
      Returns:
      This builder for chaining.
    • getModifiedTimestamp

      public long getModifiedTimestamp()
       The modified timestamp of the current version of the record
       
      fixed64 modified_timestamp = 4;
      Specified by:
      getModifiedTimestamp in interface VersionOrBuilder
      Returns:
      The modifiedTimestamp.
    • setModifiedTimestamp

      public Version.Builder setModifiedTimestamp(long value)
       The modified timestamp of the current version of the record
       
      fixed64 modified_timestamp = 4;
      Parameters:
      value - The modifiedTimestamp to set.
      Returns:
      This builder for chaining.
    • clearModifiedTimestamp

      public Version.Builder clearModifiedTimestamp()
       The modified timestamp of the current version of the record
       
      fixed64 modified_timestamp = 4;
      Returns:
      This builder for chaining.
    • hasSessionId

      public boolean hasSessionId()
       Identifier of the session if the record is ephemeral
       
      optional int64 session_id = 5;
      Specified by:
      hasSessionId in interface VersionOrBuilder
      Returns:
      Whether the sessionId field is set.
    • getSessionId

      public long getSessionId()
       Identifier of the session if the record is ephemeral
       
      optional int64 session_id = 5;
      Specified by:
      getSessionId in interface VersionOrBuilder
      Returns:
      The sessionId.
    • setSessionId

      public Version.Builder setSessionId(long value)
       Identifier of the session if the record is ephemeral
       
      optional int64 session_id = 5;
      Parameters:
      value - The sessionId to set.
      Returns:
      This builder for chaining.
    • clearSessionId

      public Version.Builder clearSessionId()
       Identifier of the session if the record is ephemeral
       
      optional int64 session_id = 5;
      Returns:
      This builder for chaining.
    • hasClientIdentity

      public boolean hasClientIdentity()
      optional string client_identity = 6;
      Specified by:
      hasClientIdentity in interface VersionOrBuilder
      Returns:
      Whether the clientIdentity field is set.
    • getClientIdentity

      public String getClientIdentity()
      optional string client_identity = 6;
      Specified by:
      getClientIdentity in interface VersionOrBuilder
      Returns:
      The clientIdentity.
    • getClientIdentityBytes

      public com.google.protobuf.ByteString getClientIdentityBytes()
      optional string client_identity = 6;
      Specified by:
      getClientIdentityBytes in interface VersionOrBuilder
      Returns:
      The bytes for clientIdentity.
    • setClientIdentity

      public Version.Builder setClientIdentity(String value)
      optional string client_identity = 6;
      Parameters:
      value - The clientIdentity to set.
      Returns:
      This builder for chaining.
    • clearClientIdentity

      public Version.Builder clearClientIdentity()
      optional string client_identity = 6;
      Returns:
      This builder for chaining.
    • setClientIdentityBytes

      public Version.Builder setClientIdentityBytes(com.google.protobuf.ByteString value)
      optional string client_identity = 6;
      Parameters:
      value - The bytes for clientIdentity to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final Version.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>
    • mergeUnknownFields

      public final Version.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Version.Builder>