public static final class OCSProto.Transaction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder> implements OCSProto.TransactionOrBuilder
Transaction holds either: - a read request - a write - a key-update - a write and a key-update Additionally, it can hold a slice of bytes with any data that the user wants to add to bind to that transaction. Every Transaction must have a Unix timestamp.Protobuf type
Transaction| Modifier and Type | Method and Description |
|---|---|
OCSProto.Transaction.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
OCSProto.Transaction |
build() |
OCSProto.Transaction |
buildPartial() |
OCSProto.Transaction.Builder |
clear() |
OCSProto.Transaction.Builder |
clearDarc()
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
|
OCSProto.Transaction.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
OCSProto.Transaction.Builder |
clearMeta()
Meta is any free-form data in that skipblock
|
OCSProto.Transaction.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
OCSProto.Transaction.Builder |
clearRead()
Read holds an eventual read-request, which is approved, for a document
|
OCSProto.Transaction.Builder |
clearTimestamp()
Unix timestamp to record the transaction creation time
|
OCSProto.Transaction.Builder |
clearWrite()
Write holds an eventual write-request with a document
|
OCSProto.Transaction.Builder |
clone() |
DarcOCSProto.Darc |
getDarc()
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
|
DarcOCSProto.Darc.Builder |
getDarcBuilder()
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
|
DarcOCSProto.DarcOrBuilder |
getDarcOrBuilder()
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
|
OCSProto.Transaction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getMeta()
Meta is any free-form data in that skipblock
|
OCSProto.Read |
getRead()
Read holds an eventual read-request, which is approved, for a document
|
OCSProto.Read.Builder |
getReadBuilder()
Read holds an eventual read-request, which is approved, for a document
|
OCSProto.ReadOrBuilder |
getReadOrBuilder()
Read holds an eventual read-request, which is approved, for a document
|
long |
getTimestamp()
Unix timestamp to record the transaction creation time
|
OCSProto.Write |
getWrite()
Write holds an eventual write-request with a document
|
OCSProto.Write.Builder |
getWriteBuilder()
Write holds an eventual write-request with a document
|
OCSProto.WriteOrBuilder |
getWriteOrBuilder()
Write holds an eventual write-request with a document
|
boolean |
hasDarc()
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
|
boolean |
hasMeta()
Meta is any free-form data in that skipblock
|
boolean |
hasRead()
Read holds an eventual read-request, which is approved, for a document
|
boolean |
hasTimestamp()
Unix timestamp to record the transaction creation time
|
boolean |
hasWrite()
Write holds an eventual write-request with a document
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
OCSProto.Transaction.Builder |
mergeDarc(DarcOCSProto.Darc value)
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
|
OCSProto.Transaction.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
OCSProto.Transaction.Builder |
mergeFrom(com.google.protobuf.Message other) |
OCSProto.Transaction.Builder |
mergeFrom(OCSProto.Transaction other) |
OCSProto.Transaction.Builder |
mergeRead(OCSProto.Read value)
Read holds an eventual read-request, which is approved, for a document
|
OCSProto.Transaction.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
OCSProto.Transaction.Builder |
mergeWrite(OCSProto.Write value)
Write holds an eventual write-request with a document
|
OCSProto.Transaction.Builder |
setDarc(DarcOCSProto.Darc.Builder builderForValue)
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
|
OCSProto.Transaction.Builder |
setDarc(DarcOCSProto.Darc value)
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
|
OCSProto.Transaction.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
OCSProto.Transaction.Builder |
setMeta(com.google.protobuf.ByteString value)
Meta is any free-form data in that skipblock
|
OCSProto.Transaction.Builder |
setRead(OCSProto.Read.Builder builderForValue)
Read holds an eventual read-request, which is approved, for a document
|
OCSProto.Transaction.Builder |
setRead(OCSProto.Read value)
Read holds an eventual read-request, which is approved, for a document
|
OCSProto.Transaction.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
OCSProto.Transaction.Builder |
setTimestamp(long value)
Unix timestamp to record the transaction creation time
|
OCSProto.Transaction.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
OCSProto.Transaction.Builder |
setWrite(OCSProto.Write.Builder builderForValue)
Write holds an eventual write-request with a document
|
OCSProto.Transaction.Builder |
setWrite(OCSProto.Write value)
Write holds an eventual write-request with a document
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>public OCSProto.Transaction.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>public OCSProto.Transaction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic OCSProto.Transaction build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic OCSProto.Transaction buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic OCSProto.Transaction.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>public OCSProto.Transaction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>public OCSProto.Transaction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>public OCSProto.Transaction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>public OCSProto.Transaction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>public OCSProto.Transaction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>public OCSProto.Transaction.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OCSProto.Transaction.Builder>public OCSProto.Transaction.Builder mergeFrom(OCSProto.Transaction other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>public OCSProto.Transaction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<OCSProto.Transaction.Builder>IOExceptionpublic boolean hasWrite()
Write holds an eventual write-request with a document
optional .Write write = 1;hasWrite in interface OCSProto.TransactionOrBuilderpublic OCSProto.Write getWrite()
Write holds an eventual write-request with a document
optional .Write write = 1;getWrite in interface OCSProto.TransactionOrBuilderpublic OCSProto.Transaction.Builder setWrite(OCSProto.Write value)
Write holds an eventual write-request with a document
optional .Write write = 1;public OCSProto.Transaction.Builder setWrite(OCSProto.Write.Builder builderForValue)
Write holds an eventual write-request with a document
optional .Write write = 1;public OCSProto.Transaction.Builder mergeWrite(OCSProto.Write value)
Write holds an eventual write-request with a document
optional .Write write = 1;public OCSProto.Transaction.Builder clearWrite()
Write holds an eventual write-request with a document
optional .Write write = 1;public OCSProto.Write.Builder getWriteBuilder()
Write holds an eventual write-request with a document
optional .Write write = 1;public OCSProto.WriteOrBuilder getWriteOrBuilder()
Write holds an eventual write-request with a document
optional .Write write = 1;getWriteOrBuilder in interface OCSProto.TransactionOrBuilderpublic boolean hasRead()
Read holds an eventual read-request, which is approved, for a document
optional .Read read = 2;hasRead in interface OCSProto.TransactionOrBuilderpublic OCSProto.Read getRead()
Read holds an eventual read-request, which is approved, for a document
optional .Read read = 2;getRead in interface OCSProto.TransactionOrBuilderpublic OCSProto.Transaction.Builder setRead(OCSProto.Read value)
Read holds an eventual read-request, which is approved, for a document
optional .Read read = 2;public OCSProto.Transaction.Builder setRead(OCSProto.Read.Builder builderForValue)
Read holds an eventual read-request, which is approved, for a document
optional .Read read = 2;public OCSProto.Transaction.Builder mergeRead(OCSProto.Read value)
Read holds an eventual read-request, which is approved, for a document
optional .Read read = 2;public OCSProto.Transaction.Builder clearRead()
Read holds an eventual read-request, which is approved, for a document
optional .Read read = 2;public OCSProto.Read.Builder getReadBuilder()
Read holds an eventual read-request, which is approved, for a document
optional .Read read = 2;public OCSProto.ReadOrBuilder getReadOrBuilder()
Read holds an eventual read-request, which is approved, for a document
optional .Read read = 2;getReadOrBuilder in interface OCSProto.TransactionOrBuilderpublic boolean hasDarc()
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
optional .Darc darc = 3;hasDarc in interface OCSProto.TransactionOrBuilderpublic DarcOCSProto.Darc getDarc()
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
optional .Darc darc = 3;getDarc in interface OCSProto.TransactionOrBuilderpublic OCSProto.Transaction.Builder setDarc(DarcOCSProto.Darc value)
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
optional .Darc darc = 3;public OCSProto.Transaction.Builder setDarc(DarcOCSProto.Darc.Builder builderForValue)
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
optional .Darc darc = 3;public OCSProto.Transaction.Builder mergeDarc(DarcOCSProto.Darc value)
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
optional .Darc darc = 3;public OCSProto.Transaction.Builder clearDarc()
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
optional .Darc darc = 3;public DarcOCSProto.Darc.Builder getDarcBuilder()
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
optional .Darc darc = 3;public DarcOCSProto.DarcOrBuilder getDarcOrBuilder()
Darc defines either the readers allowed for this write-request
or is an update to an existing Darc
optional .Darc darc = 3;getDarcOrBuilder in interface OCSProto.TransactionOrBuilderpublic boolean hasMeta()
Meta is any free-form data in that skipblock
optional bytes meta = 4;hasMeta in interface OCSProto.TransactionOrBuilderpublic com.google.protobuf.ByteString getMeta()
Meta is any free-form data in that skipblock
optional bytes meta = 4;getMeta in interface OCSProto.TransactionOrBuilderpublic OCSProto.Transaction.Builder setMeta(com.google.protobuf.ByteString value)
Meta is any free-form data in that skipblock
optional bytes meta = 4;public OCSProto.Transaction.Builder clearMeta()
Meta is any free-form data in that skipblock
optional bytes meta = 4;public boolean hasTimestamp()
Unix timestamp to record the transaction creation time
required sint64 timestamp = 5;hasTimestamp in interface OCSProto.TransactionOrBuilderpublic long getTimestamp()
Unix timestamp to record the transaction creation time
required sint64 timestamp = 5;getTimestamp in interface OCSProto.TransactionOrBuilderpublic OCSProto.Transaction.Builder setTimestamp(long value)
Unix timestamp to record the transaction creation time
required sint64 timestamp = 5;public OCSProto.Transaction.Builder clearTimestamp()
Unix timestamp to record the transaction creation time
required sint64 timestamp = 5;public final OCSProto.Transaction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>public final OCSProto.Transaction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<OCSProto.Transaction.Builder>Copyright © 2018. All rights reserved.