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 TypeMethodDescriptionbuild()clear()Flexible JSON-like data structure.Timestamp when the object should be permanently deleted.Timestamp when the object should no longer be visible by default.clearKey()Unique key identifying the object.This will create a copy of this object and increment the current revision number.com.google.protobuf.StructgetData()Flexible JSON-like data structure.com.google.protobuf.Struct.BuilderFlexible JSON-like data structure.com.google.protobuf.StructOrBuilderFlexible JSON-like data structure.com.google.protobuf.TimestampTimestamp when the object should be permanently deleted.com.google.protobuf.Timestamp.BuilderTimestamp when the object should be permanently deleted.com.google.protobuf.TimestampOrBuilderTimestamp when the object should be permanently deleted.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampTimestamp when the object should no longer be visible by default.com.google.protobuf.Timestamp.BuilderTimestamp when the object should no longer be visible by default.com.google.protobuf.TimestampOrBuilderTimestamp when the object should no longer be visible by default.getKey()Unique key identifying the object.com.google.protobuf.ByteStringUnique key identifying the object.booleanThis will create a copy of this object and increment the current revision number.booleanhasData()Flexible JSON-like data structure.booleanTimestamp when the object should be permanently deleted.booleanTimestamp when the object should no longer be visible by default.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeData(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.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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Object.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<Object.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<Object.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Object.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Object.Builder>- Throws:
IOException
-
getKey
Unique key identifying the object.
string key = 1 [json_name = "key"];- Specified by:
getKeyin interfaceObjectOrBuilder- Returns:
- The key.
-
getKeyBytes
public com.google.protobuf.ByteString getKeyBytes()Unique key identifying the object.
string key = 1 [json_name = "key"];- Specified by:
getKeyBytesin interfaceObjectOrBuilder- Returns:
- The bytes for key.
-
setKey
Unique key identifying the object.
string key = 1 [json_name = "key"];- Parameters:
value- The key to set.- Returns:
- This builder for chaining.
-
clearKey
Unique key identifying the object.
string key = 1 [json_name = "key"];- Returns:
- This builder for chaining.
-
setKeyBytes
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:
hasDatain interfaceObjectOrBuilder- 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:
getDatain interfaceObjectOrBuilder- Returns:
- The data.
-
setData
Flexible JSON-like data structure.
.google.protobuf.Struct data = 2 [json_name = "data"]; -
setData
Flexible JSON-like data structure.
.google.protobuf.Struct data = 2 [json_name = "data"]; -
mergeData
Flexible JSON-like data structure.
.google.protobuf.Struct data = 2 [json_name = "data"]; -
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:
getDataOrBuilderin interfaceObjectOrBuilder
-
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:
getPreservePreviousEntryin interfaceObjectOrBuilder- Returns:
- The preservePreviousEntry.
-
setPreservePreviousEntry
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
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:
hasExpiredAtin interfaceObjectOrBuilder- 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:
getExpiredAtin interfaceObjectOrBuilder- Returns:
- The expiredAt.
-
setExpiredAt
Timestamp when the object should no longer be visible by default.
optional .google.protobuf.Timestamp expired_at = 4 [json_name = "expiredAt"]; -
setExpiredAt
Timestamp when the object should no longer be visible by default.
optional .google.protobuf.Timestamp expired_at = 4 [json_name = "expiredAt"]; -
mergeExpiredAt
Timestamp when the object should no longer be visible by default.
optional .google.protobuf.Timestamp expired_at = 4 [json_name = "expiredAt"]; -
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:
getExpiredAtOrBuilderin interfaceObjectOrBuilder
-
hasDeletedAt
public boolean hasDeletedAt()Timestamp when the object should be permanently deleted.
optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"];- Specified by:
hasDeletedAtin interfaceObjectOrBuilder- 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:
getDeletedAtin interfaceObjectOrBuilder- Returns:
- The deletedAt.
-
setDeletedAt
Timestamp when the object should be permanently deleted.
optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"]; -
setDeletedAt
Timestamp when the object should be permanently deleted.
optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"]; -
mergeDeletedAt
Timestamp when the object should be permanently deleted.
optional .google.protobuf.Timestamp deleted_at = 5 [json_name = "deletedAt"]; -
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:
getDeletedAtOrBuilderin interfaceObjectOrBuilder
-