public static final class OCSProto.Transaction extends com.google.protobuf.GeneratedMessageV3 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
ocs.Transaction| Modifier and Type | Class and Description |
|---|---|
static class |
OCSProto.Transaction.Builder
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.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable| Modifier and Type | Field and Description |
|---|---|
static int |
DARC_FIELD_NUMBER |
static int |
META_FIELD_NUMBER |
static com.google.protobuf.Parser<OCSProto.Transaction> |
PARSER
Deprecated.
|
static int |
READ_FIELD_NUMBER |
static int |
TIMESTAMP_FIELD_NUMBER |
static int |
WRITE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
DarcOCSProto.Darc |
getDarc()
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
|
static OCSProto.Transaction |
getDefaultInstance() |
OCSProto.Transaction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.ByteString |
getMeta()
Meta is any free-form data in that skipblock
|
com.google.protobuf.Parser<OCSProto.Transaction> |
getParserForType() |
OCSProto.Read |
getRead()
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
|
int |
getSerializedSize() |
long |
getTimestamp()
Unix timestamp to record the transaction creation time
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
OCSProto.Write |
getWrite()
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
|
int |
hashCode() |
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() |
static OCSProto.Transaction.Builder |
newBuilder() |
static OCSProto.Transaction.Builder |
newBuilder(OCSProto.Transaction prototype) |
OCSProto.Transaction.Builder |
newBuilderForType() |
protected OCSProto.Transaction.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static OCSProto.Transaction |
parseDelimitedFrom(InputStream input) |
static OCSProto.Transaction |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OCSProto.Transaction |
parseFrom(byte[] data) |
static OCSProto.Transaction |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OCSProto.Transaction |
parseFrom(ByteBuffer data) |
static OCSProto.Transaction |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OCSProto.Transaction |
parseFrom(com.google.protobuf.ByteString data) |
static OCSProto.Transaction |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OCSProto.Transaction |
parseFrom(com.google.protobuf.CodedInputStream input) |
static OCSProto.Transaction |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static OCSProto.Transaction |
parseFrom(InputStream input) |
static OCSProto.Transaction |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<OCSProto.Transaction> |
parser() |
OCSProto.Transaction.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
computeStringSize, computeStringSizeNoTag, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, newBuilderForType, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int WRITE_FIELD_NUMBER
public static final int READ_FIELD_NUMBER
public static final int DARC_FIELD_NUMBER
public static final int META_FIELD_NUMBER
public static final int TIMESTAMP_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<OCSProto.Transaction> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasWrite()
Write holds an eventual write-request with a document
optional .ocs.Write write = 1;hasWrite in interface OCSProto.TransactionOrBuilderpublic OCSProto.Write getWrite()
Write holds an eventual write-request with a document
optional .ocs.Write write = 1;getWrite in interface OCSProto.TransactionOrBuilderpublic OCSProto.WriteOrBuilder getWriteOrBuilder()
Write holds an eventual write-request with a document
optional .ocs.Write write = 1;getWriteOrBuilder in interface OCSProto.TransactionOrBuilderpublic boolean hasRead()
Read holds an eventual read-request, which is approved, for a document
optional .ocs.Read read = 2;hasRead in interface OCSProto.TransactionOrBuilderpublic OCSProto.Read getRead()
Read holds an eventual read-request, which is approved, for a document
optional .ocs.Read read = 2;getRead in interface OCSProto.TransactionOrBuilderpublic OCSProto.ReadOrBuilder getReadOrBuilder()
Read holds an eventual read-request, which is approved, for a document
optional .ocs.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 .darcOCS.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 .darcOCS.Darc darc = 3;getDarc in interface OCSProto.TransactionOrBuilderpublic DarcOCSProto.DarcOrBuilder getDarcOrBuilder()
Darc defines either the readers allowed for this write-request or is an update to an existing Darc
optional .darcOCS.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 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static OCSProto.Transaction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Transaction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Transaction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Transaction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Transaction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static OCSProto.Transaction parseFrom(InputStream input) throws IOException
IOExceptionpublic static OCSProto.Transaction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OCSProto.Transaction parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static OCSProto.Transaction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static OCSProto.Transaction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static OCSProto.Transaction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic OCSProto.Transaction.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static OCSProto.Transaction.Builder newBuilder()
public static OCSProto.Transaction.Builder newBuilder(OCSProto.Transaction prototype)
public OCSProto.Transaction.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected OCSProto.Transaction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static OCSProto.Transaction getDefaultInstance()
public static com.google.protobuf.Parser<OCSProto.Transaction> parser()
public com.google.protobuf.Parser<OCSProto.Transaction> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public OCSProto.Transaction getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018. All rights reserved.