Class EntryMutation.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<EntryMutation.Builder>
com.google.protobuf.GeneratedMessage.Builder<EntryMutation.Builder>
com.google.protobuf.GeneratedMessage.ExtendableBuilder<com.google.protobuf.GeneratedMessageV3,EntryMutation.Builder>
com.google.protobuf.GeneratedMessageV3.Builder<EntryMutation.Builder>
studio.o7.octopus.sdk.gen.api.v1.EntryMutation.Builder
All Implemented Interfaces:
com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, EntryMutationOrBuilder
Enclosing class:
EntryMutation

public static final class EntryMutation.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<EntryMutation.Builder> implements EntryMutationOrBuilder

 EntryMutation

 Represents a mutation (create, update, delete) operation on an entry.

 The mutation can be one of the following types:
   - CREATE: create a new entry
   - UPDATE: update an existing entry
   - DELETE: delete an entry permanently
   - SOFT_DELETE: mark an entry as deleted without removing it immediately
 
Protobuf type api.v1.EntryMutation
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Overrides:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<EntryMutation.Builder>
    • clear

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

      public EntryMutation getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<com.google.protobuf.GeneratedMessageV3>
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

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

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

      public EntryMutation.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<EntryMutation.Builder>
    • setField

      public EntryMutation.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<EntryMutation.Builder>
    • clearField

      public EntryMutation.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<EntryMutation.Builder>
    • clearOneof

      public EntryMutation.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<EntryMutation.Builder>
    • setRepeatedField

      public EntryMutation.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<EntryMutation.Builder>
    • addRepeatedField

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

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

      public EntryMutation.Builder mergeFrom(EntryMutation other)
    • isInitialized

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

      public EntryMutation.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<EntryMutation.Builder>
      Throws:
      IOException
    • getTypeValue

      public int getTypeValue()
       The type of mutation to perform.
       
      .api.v1.EntryMutation.MutationType type = 1 [json_name = "type"];
      Specified by:
      getTypeValue in interface EntryMutationOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public EntryMutation.Builder setTypeValue(int value)
       The type of mutation to perform.
       
      .api.v1.EntryMutation.MutationType type = 1 [json_name = "type"];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public EntryMutation.MutationType getType()
       The type of mutation to perform.
       
      .api.v1.EntryMutation.MutationType type = 1 [json_name = "type"];
      Specified by:
      getType in interface EntryMutationOrBuilder
      Returns:
      The type.
    • setType

       The type of mutation to perform.
       
      .api.v1.EntryMutation.MutationType type = 1 [json_name = "type"];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public EntryMutation.Builder clearType()
       The type of mutation to perform.
       
      .api.v1.EntryMutation.MutationType type = 1 [json_name = "type"];
      Returns:
      This builder for chaining.
    • hasData

      public boolean hasData()
       The data payload associated with the mutation.
       
      .google.protobuf.Value data = 3 [json_name = "data"];
      Specified by:
      hasData in interface EntryMutationOrBuilder
      Returns:
      Whether the data field is set.
    • getData

      public com.google.protobuf.Value getData()
       The data payload associated with the mutation.
       
      .google.protobuf.Value data = 3 [json_name = "data"];
      Specified by:
      getData in interface EntryMutationOrBuilder
      Returns:
      The data.
    • setData

      public EntryMutation.Builder setData(com.google.protobuf.Value value)
       The data payload associated with the mutation.
       
      .google.protobuf.Value data = 3 [json_name = "data"];
    • setData

      public EntryMutation.Builder setData(com.google.protobuf.Value.Builder builderForValue)
       The data payload associated with the mutation.
       
      .google.protobuf.Value data = 3 [json_name = "data"];
    • mergeData

      public EntryMutation.Builder mergeData(com.google.protobuf.Value value)
       The data payload associated with the mutation.
       
      .google.protobuf.Value data = 3 [json_name = "data"];
    • clearData

      public EntryMutation.Builder clearData()
       The data payload associated with the mutation.
       
      .google.protobuf.Value data = 3 [json_name = "data"];
    • getDataBuilder

      public com.google.protobuf.Value.Builder getDataBuilder()
       The data payload associated with the mutation.
       
      .google.protobuf.Value data = 3 [json_name = "data"];
    • getDataOrBuilder

      public com.google.protobuf.ValueOrBuilder getDataOrBuilder()
       The data payload associated with the mutation.
       
      .google.protobuf.Value data = 3 [json_name = "data"];
      Specified by:
      getDataOrBuilder in interface EntryMutationOrBuilder
    • hasExpiredAt

      public boolean hasExpiredAt()
       Timestamp when the entry expires and should no longer be visible to clients.
       
      optional .google.protobuf.Timestamp expired_at = 5 [json_name = "expiredAt"];
      Specified by:
      hasExpiredAt in interface EntryMutationOrBuilder
      Returns:
      Whether the expiredAt field is set.
    • getExpiredAt

      public com.google.protobuf.Timestamp getExpiredAt()
       Timestamp when the entry expires and should no longer be visible to clients.
       
      optional .google.protobuf.Timestamp expired_at = 5 [json_name = "expiredAt"];
      Specified by:
      getExpiredAt in interface EntryMutationOrBuilder
      Returns:
      The expiredAt.
    • setExpiredAt

      public EntryMutation.Builder setExpiredAt(com.google.protobuf.Timestamp value)
       Timestamp when the entry expires and should no longer be visible to clients.
       
      optional .google.protobuf.Timestamp expired_at = 5 [json_name = "expiredAt"];
    • setExpiredAt

      public EntryMutation.Builder setExpiredAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when the entry expires and should no longer be visible to clients.
       
      optional .google.protobuf.Timestamp expired_at = 5 [json_name = "expiredAt"];
    • mergeExpiredAt

      public EntryMutation.Builder mergeExpiredAt(com.google.protobuf.Timestamp value)
       Timestamp when the entry expires and should no longer be visible to clients.
       
      optional .google.protobuf.Timestamp expired_at = 5 [json_name = "expiredAt"];
    • clearExpiredAt

      public EntryMutation.Builder clearExpiredAt()
       Timestamp when the entry expires and should no longer be visible to clients.
       
      optional .google.protobuf.Timestamp expired_at = 5 [json_name = "expiredAt"];
    • getExpiredAtBuilder

      public com.google.protobuf.Timestamp.Builder getExpiredAtBuilder()
       Timestamp when the entry expires and should no longer be visible to clients.
       
      optional .google.protobuf.Timestamp expired_at = 5 [json_name = "expiredAt"];
    • getExpiredAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpiredAtOrBuilder()
       Timestamp when the entry expires and should no longer be visible to clients.
       
      optional .google.protobuf.Timestamp expired_at = 5 [json_name = "expiredAt"];
      Specified by:
      getExpiredAtOrBuilder in interface EntryMutationOrBuilder
    • hasDeletedAt

      public boolean hasDeletedAt()
       Timestamp when the entry should be deleted from the database.
       
      optional .google.protobuf.Timestamp deleted_at = 6 [json_name = "deletedAt"];
      Specified by:
      hasDeletedAt in interface EntryMutationOrBuilder
      Returns:
      Whether the deletedAt field is set.
    • getDeletedAt

      public com.google.protobuf.Timestamp getDeletedAt()
       Timestamp when the entry should be deleted from the database.
       
      optional .google.protobuf.Timestamp deleted_at = 6 [json_name = "deletedAt"];
      Specified by:
      getDeletedAt in interface EntryMutationOrBuilder
      Returns:
      The deletedAt.
    • setDeletedAt

      public EntryMutation.Builder setDeletedAt(com.google.protobuf.Timestamp value)
       Timestamp when the entry should be deleted from the database.
       
      optional .google.protobuf.Timestamp deleted_at = 6 [json_name = "deletedAt"];
    • setDeletedAt

      public EntryMutation.Builder setDeletedAt(com.google.protobuf.Timestamp.Builder builderForValue)
       Timestamp when the entry should be deleted from the database.
       
      optional .google.protobuf.Timestamp deleted_at = 6 [json_name = "deletedAt"];
    • mergeDeletedAt

      public EntryMutation.Builder mergeDeletedAt(com.google.protobuf.Timestamp value)
       Timestamp when the entry should be deleted from the database.
       
      optional .google.protobuf.Timestamp deleted_at = 6 [json_name = "deletedAt"];
    • clearDeletedAt

      public EntryMutation.Builder clearDeletedAt()
       Timestamp when the entry should be deleted from the database.
       
      optional .google.protobuf.Timestamp deleted_at = 6 [json_name = "deletedAt"];
    • getDeletedAtBuilder

      public com.google.protobuf.Timestamp.Builder getDeletedAtBuilder()
       Timestamp when the entry should be deleted from the database.
       
      optional .google.protobuf.Timestamp deleted_at = 6 [json_name = "deletedAt"];
    • getDeletedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder()
       Timestamp when the entry should be deleted from the database.
       
      optional .google.protobuf.Timestamp deleted_at = 6 [json_name = "deletedAt"];
      Specified by:
      getDeletedAtOrBuilder in interface EntryMutationOrBuilder
    • setUnknownFields

      public final EntryMutation.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<EntryMutation.Builder>
    • mergeUnknownFields

      public final EntryMutation.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<EntryMutation.Builder>