public final class Transaction extends com.google.protobuf.GeneratedMessageV3 implements TransactionOrBuilder
The transaction to be sent to the ordering service. A transaction contains one or more TransactionAction. Each TransactionAction binds a proposal to potentially multiple actions. The transaction is atomic meaning that either all actions in the transaction will be committed or none will. Note that while a Transaction might include more than one Header, the Header.creator field must be the same in each. A single client is free to issue a number of independent Proposal, each with their header (Header) and request payload (ChaincodeProposalPayload). Each proposal is independently endorsed generating an action (ProposalResponsePayload) with one signature per Endorser. Any number of independent proposals (and their action) might be included in a transaction to ensure that they are treated atomically.Protobuf type
protos.Transaction
Modifier and Type | Class and Description |
---|---|
static class |
Transaction.Builder
The transaction to be sent to the ordering service.
|
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 |
ACTIONS_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
TransactionAction |
getActions(int index)
The payload is an array of TransactionAction.
|
int |
getActionsCount()
The payload is an array of TransactionAction.
|
List<TransactionAction> |
getActionsList()
The payload is an array of TransactionAction.
|
TransactionActionOrBuilder |
getActionsOrBuilder(int index)
The payload is an array of TransactionAction.
|
List<? extends TransactionActionOrBuilder> |
getActionsOrBuilderList()
The payload is an array of TransactionAction.
|
static Transaction |
getDefaultInstance() |
Transaction |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Parser<Transaction> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
int |
hashCode() |
boolean |
isInitialized() |
static Transaction.Builder |
newBuilder() |
static Transaction.Builder |
newBuilder(Transaction prototype) |
Transaction.Builder |
newBuilderForType() |
static Transaction |
parseDelimitedFrom(InputStream input) |
static Transaction |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Transaction |
parseFrom(byte[] data) |
static Transaction |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Transaction |
parseFrom(ByteBuffer data) |
static Transaction |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Transaction |
parseFrom(com.google.protobuf.ByteString data) |
static Transaction |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Transaction |
parseFrom(com.google.protobuf.CodedInputStream input) |
static Transaction |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static Transaction |
parseFrom(InputStream input) |
static Transaction |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<Transaction> |
parser() |
Transaction.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
findInitializationErrors, getInitializationErrorString, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int ACTIONS_FIELD_NUMBER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields
in interface com.google.protobuf.MessageOrBuilder
getUnknownFields
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
public List<TransactionAction> getActionsList()
The payload is an array of TransactionAction. An array is necessary to accommodate multiple actions per transaction
repeated .protos.TransactionAction actions = 1 [json_name = "actions"];
getActionsList
in interface TransactionOrBuilder
public List<? extends TransactionActionOrBuilder> getActionsOrBuilderList()
The payload is an array of TransactionAction. An array is necessary to accommodate multiple actions per transaction
repeated .protos.TransactionAction actions = 1 [json_name = "actions"];
getActionsOrBuilderList
in interface TransactionOrBuilder
public int getActionsCount()
The payload is an array of TransactionAction. An array is necessary to accommodate multiple actions per transaction
repeated .protos.TransactionAction actions = 1 [json_name = "actions"];
getActionsCount
in interface TransactionOrBuilder
public TransactionAction getActions(int index)
The payload is an array of TransactionAction. An array is necessary to accommodate multiple actions per transaction
repeated .protos.TransactionAction actions = 1 [json_name = "actions"];
getActions
in interface TransactionOrBuilder
public TransactionActionOrBuilder getActionsOrBuilder(int index)
The payload is an array of TransactionAction. An array is necessary to accommodate multiple actions per transaction
repeated .protos.TransactionAction actions = 1 [json_name = "actions"];
getActionsOrBuilder
in interface TransactionOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static Transaction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Transaction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Transaction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Transaction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Transaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Transaction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static Transaction parseFrom(InputStream input) throws IOException
IOException
public static Transaction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Transaction parseDelimitedFrom(InputStream input) throws IOException
IOException
public static Transaction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static Transaction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static Transaction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public Transaction.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static Transaction.Builder newBuilder()
public static Transaction.Builder newBuilder(Transaction prototype)
public Transaction.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
public static Transaction getDefaultInstance()
public static com.google.protobuf.Parser<Transaction> parser()
public com.google.protobuf.Parser<Transaction> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public Transaction getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2022. All rights reserved.