Class Object.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<Object.Builder>
com.google.protobuf.GeneratedMessage.Builder<Object.Builder>
studio.o7.octopus.sdk.v1.Object.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable, ObjectOrBuilder
Enclosing class:
Object

public static final class Object.Builder extends com.google.protobuf.GeneratedMessage.Builder<Object.Builder> implements ObjectOrBuilder
*
Represents a flexible data object.
Protobuf type octopus_sdk.v1.Object
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    Flexible JSON-like data structure.
    Timestamp when the object should be permanently deleted.
    Timestamp when the object should no longer be visible by default.
    Unique key identifying the object.
    This will create a copy of this object and increment the current revision number.
    com.google.protobuf.Struct
    Flexible JSON-like data structure.
    com.google.protobuf.Struct.Builder
    Flexible JSON-like data structure.
    com.google.protobuf.StructOrBuilder
    Flexible JSON-like data structure.
     
    com.google.protobuf.Timestamp
    Timestamp when the object should be permanently deleted.
    com.google.protobuf.Timestamp.Builder
    Timestamp when the object should be permanently deleted.
    com.google.protobuf.TimestampOrBuilder
    Timestamp when the object should be permanently deleted.
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Timestamp
    Timestamp when the object should no longer be visible by default.
    com.google.protobuf.Timestamp.Builder
    Timestamp when the object should no longer be visible by default.
    com.google.protobuf.TimestampOrBuilder
    Timestamp when the object should no longer be visible by default.
    Unique key identifying the object.
    com.google.protobuf.ByteString
    Unique key identifying the object.
    boolean
    This will create a copy of this object and increment the current revision number.
    boolean
    Flexible JSON-like data structure.
    boolean
    Timestamp when the object should be permanently deleted.
    boolean
    Timestamp when the object should no longer be visible by default.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    mergeData(com.google.protobuf.Struct value)
    Flexible JSON-like data structure.
    mergeDeletedAt(com.google.protobuf.Timestamp value)
    Timestamp when the object should be permanently deleted.
    mergeExpiredAt(com.google.protobuf.Timestamp value)
    Timestamp when the object should no longer be visible by default.
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
     
    setData(com.google.protobuf.Struct value)
    Flexible JSON-like data structure.
    setData(com.google.protobuf.Struct.Builder builderForValue)
    Flexible JSON-like data structure.
    setDeletedAt(com.google.protobuf.Timestamp value)
    Timestamp when the object should be permanently deleted.
    setDeletedAt(com.google.protobuf.Timestamp.Builder builderForValue)
    Timestamp when the object should be permanently deleted.
    setExpiredAt(com.google.protobuf.Timestamp value)
    Timestamp when the object should no longer be visible by default.
    setExpiredAt(com.google.protobuf.Timestamp.Builder builderForValue)
    Timestamp when the object should no longer be visible by default.
    setKey(String value)
    Unique key identifying the object.
    setKeyBytes(com.google.protobuf.ByteString value)
    Unique key identifying the object.
    setPreservePreviousEntry(boolean value)
    This will create a copy of this object and increment the current revision number.

    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, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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 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()
    • internalGetFieldAccessorTable

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

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

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

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

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

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

      public Object.Builder mergeFrom(Object other)
    • isInitialized

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

      public Object.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<Object.Builder>
      Throws:
      IOException
    • getKey

      public String getKey()
      Unique key identifying the object.
      
      string key = 1 [json_name = "key"];
      Specified by:
      getKey in interface ObjectOrBuilder
      Returns:
      The key.
    • getKeyBytes

      public com.google.protobuf.ByteString getKeyBytes()
      Unique key identifying the object.
      
      string key = 1 [json_name = "key"];
      Specified by:
      getKeyBytes in interface ObjectOrBuilder
      Returns:
      The bytes for key.
    • setKey

      public Object.Builder setKey(String value)
      Unique key identifying the object.
      
      string key = 1 [json_name = "key"];
      Parameters:
      value - The key to set.
      Returns:
      This builder for chaining.
    • clearKey

      public Object.Builder clearKey()
      Unique key identifying the object.
      
      string key = 1 [json_name = "key"];
      Returns:
      This builder for chaining.
    • setKeyBytes

      public Object.Builder setKeyBytes(com.google.protobuf.ByteString value)
      Unique key identifying the object.
      
      string key = 1 [json_name = "key"];
      Parameters:
      value - The bytes for key to set.
      Returns:
      This builder for chaining.
    • hasData

      public boolean hasData()
      Flexible JSON-like data structure.
      
      .google.protobuf.Struct data = 2 [json_name = "data"];
      Specified by:
      hasData in interface ObjectOrBuilder
      Returns:
      Whether the data field is set.
    • getData

      public com.google.protobuf.Struct getData()
      Flexible JSON-like data structure.
      
      .google.protobuf.Struct data = 2 [json_name = "data"];
      Specified by:
      getData in interface ObjectOrBuilder
      Returns:
      The data.
    • setData

      public Object.Builder setData(com.google.protobuf.Struct value)
      Flexible JSON-like data structure.
      
      .google.protobuf.Struct data = 2 [json_name = "data"];
    • setData

      public Object.Builder setData(com.google.protobuf.Struct.Builder builderForValue)
      Flexible JSON-like data structure.
      
      .google.protobuf.Struct data = 2 [json_name = "data"];
    • mergeData

      public Object.Builder mergeData(com.google.protobuf.Struct value)
      Flexible JSON-like data structure.
      
      .google.protobuf.Struct data = 2 [json_name = "data"];
    • clearData

      public Object.Builder clearData()
      Flexible JSON-like data structure.
      
      .google.protobuf.Struct data = 2 [json_name = "data"];
    • getDataBuilder

      public com.google.protobuf.Struct.Builder getDataBuilder()
      Flexible JSON-like data structure.
      
      .google.protobuf.Struct data = 2 [json_name = "data"];
    • getDataOrBuilder

      public com.google.protobuf.StructOrBuilder getDataOrBuilder()
      Flexible JSON-like data structure.
      
      .google.protobuf.Struct data = 2 [json_name = "data"];
      Specified by:
      getDataOrBuilder in interface ObjectOrBuilder
    • getPreservePreviousEntry

      public boolean getPreservePreviousEntry()
      This will create a copy of this object and increment the current revision number.
      
      bool preserve_previous_entry = 3 [json_name = "preservePreviousEntry"];
      Specified by:
      getPreservePreviousEntry in interface ObjectOrBuilder
      Returns:
      The preservePreviousEntry.
    • setPreservePreviousEntry

      public Object.Builder setPreservePreviousEntry(boolean value)
      This will create a copy of this object and increment the current revision number.
      
      bool preserve_previous_entry = 3 [json_name = "preservePreviousEntry"];
      Parameters:
      value - The preservePreviousEntry to set.
      Returns:
      This builder for chaining.
    • clearPreservePreviousEntry

      public Object.Builder clearPreservePreviousEntry()
      This will create a copy of this object and increment the current revision number.
      
      bool preserve_previous_entry = 3 [json_name = "preservePreviousEntry"];
      Returns:
      This builder for chaining.
    • hasExpiredAt

      public boolean hasExpiredAt()
      Timestamp when the object should no longer be visible by default.
      
      optional .google.protobuf.Timestamp expired_at = 4 [json_name = "expiredAt"];
      Specified by:
      hasExpiredAt in interface ObjectOrBuilder
      Returns:
      Whether the expiredAt field is set.
    • getExpiredAt

      public com.google.protobuf.Timestamp getExpiredAt()
      Timestamp when the object should no longer be visible by default.
      
      optional .google.protobuf.Timestamp expired_at = 4 [json_name = "expiredAt"];
      Specified by:
      getExpiredAt in interface ObjectOrBuilder
      Returns:
      The expiredAt.
    • setExpiredAt

      public Object.Builder setExpiredAt(com.google.protobuf.Timestamp value)
      Timestamp when the object should no longer be visible by default.
      
      optional .google.protobuf.Timestamp expired_at = 4 [json_name = "expiredAt"];
    • setExpiredAt

      public Object.Builder setExpiredAt(com.google.protobuf.Timestamp.Builder builderForValue)
      Timestamp when the object should no longer be visible by default.
      
      optional .google.protobuf.Timestamp expired_at = 4 [json_name = "expiredAt"];
    • mergeExpiredAt

      public Object.Builder mergeExpiredAt(com.google.protobuf.Timestamp value)
      Timestamp when the object should no longer be visible by default.
      
      optional .google.protobuf.Timestamp expired_at = 4 [json_name = "expiredAt"];
    • clearExpiredAt

      public Object.Builder clearExpiredAt()
      Timestamp when the object should no longer be visible by default.
      
      optional .google.protobuf.Timestamp expired_at = 4 [json_name = "expiredAt"];
    • getExpiredAtBuilder

      public com.google.protobuf.Timestamp.Builder getExpiredAtBuilder()
      Timestamp when the object should no longer be visible by default.
      
      optional .google.protobuf.Timestamp expired_at = 4 [json_name = "expiredAt"];
    • getExpiredAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpiredAtOrBuilder()
      Timestamp when the object should no longer be visible by default.
      
      optional .google.protobuf.Timestamp expired_at = 4 [json_name = "expiredAt"];
      Specified by:
      getExpiredAtOrBuilder in interface ObjectOrBuilder
    • hasDeletedAt

      public boolean hasDeletedAt()
      Timestamp when the object should be permanently deleted.
      
      optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"];
      Specified by:
      hasDeletedAt in interface ObjectOrBuilder
      Returns:
      Whether the deletedAt field is set.
    • getDeletedAt

      public com.google.protobuf.Timestamp getDeletedAt()
      Timestamp when the object should be permanently deleted.
      
      optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"];
      Specified by:
      getDeletedAt in interface ObjectOrBuilder
      Returns:
      The deletedAt.
    • setDeletedAt

      public Object.Builder setDeletedAt(com.google.protobuf.Timestamp value)
      Timestamp when the object should be permanently deleted.
      
      optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"];
    • setDeletedAt

      public Object.Builder setDeletedAt(com.google.protobuf.Timestamp.Builder builderForValue)
      Timestamp when the object should be permanently deleted.
      
      optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"];
    • mergeDeletedAt

      public Object.Builder mergeDeletedAt(com.google.protobuf.Timestamp value)
      Timestamp when the object should be permanently deleted.
      
      optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"];
    • clearDeletedAt

      public Object.Builder clearDeletedAt()
      Timestamp when the object should be permanently deleted.
      
      optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"];
    • getDeletedAtBuilder

      public com.google.protobuf.Timestamp.Builder getDeletedAtBuilder()
      Timestamp when the object should be permanently deleted.
      
      optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"];
    • getDeletedAtOrBuilder

      public com.google.protobuf.TimestampOrBuilder getDeletedAtOrBuilder()
      Timestamp when the object should be permanently deleted.
      
      optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"];
      Specified by:
      getDeletedAtOrBuilder in interface ObjectOrBuilder