public static final class AdmissionControlOuterClass.SubmitTransactionResponse extends com.google.protobuf.GeneratedMessageV3 implements AdmissionControlOuterClass.SubmitTransactionResponseOrBuilder
The response for transaction submission. How does a client know if their transaction was included? A response from the transaction submission only means that the transaction was successfully added to mempool, but not that it is guaranteed to be included in the chain. Each transaction should include an expiration time in the signed transaction. Let's call this T0. As a client, I submit my transaction to a validator. I now need to poll for the transaction I submitted. I can use the query that takes my account and sequence number. If I receive back that the transaction is completed, I will verify the proofs to ensure that this is the transaction I expected. If I receive a response that my transaction is not yet completed, I must check the latest timestamp in the ledgerInfo that I receive back from the query. If this time is greater than T0, I can be certain that my transaction will never be included. If this time is less than T0, I need to continue polling.Protobuf type
admission_control.SubmitTransactionResponse| Modifier and Type | Class and Description |
|---|---|
static class |
AdmissionControlOuterClass.SubmitTransactionResponse.Builder
The response for transaction submission.
|
static class |
AdmissionControlOuterClass.SubmitTransactionResponse.StatusCase |
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 |
AC_STATUS_FIELD_NUMBER |
static int |
MEMPOOL_STATUS_FIELD_NUMBER |
static int |
VALIDATOR_ID_FIELD_NUMBER |
static int |
VM_STATUS_FIELD_NUMBER |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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 VM_STATUS_FIELD_NUMBER
public static final int AC_STATUS_FIELD_NUMBER
public static final int MEMPOOL_STATUS_FIELD_NUMBER
public static final int VALIDATOR_ID_FIELD_NUMBER
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 AdmissionControlOuterClass.SubmitTransactionResponse.StatusCase getStatusCase()
getStatusCase in interface AdmissionControlOuterClass.SubmitTransactionResponseOrBuilderpublic boolean hasVmStatus()
.types.VMStatus vm_status = 1;hasVmStatus in interface AdmissionControlOuterClass.SubmitTransactionResponseOrBuilderpublic VmErrors.VMStatus getVmStatus()
.types.VMStatus vm_status = 1;getVmStatus in interface AdmissionControlOuterClass.SubmitTransactionResponseOrBuilderpublic VmErrors.VMStatusOrBuilder getVmStatusOrBuilder()
.types.VMStatus vm_status = 1;getVmStatusOrBuilder in interface AdmissionControlOuterClass.SubmitTransactionResponseOrBuilderpublic boolean hasAcStatus()
.admission_control.AdmissionControlStatus ac_status = 2;hasAcStatus in interface AdmissionControlOuterClass.SubmitTransactionResponseOrBuilderpublic AdmissionControlOuterClass.AdmissionControlStatus getAcStatus()
.admission_control.AdmissionControlStatus ac_status = 2;getAcStatus in interface AdmissionControlOuterClass.SubmitTransactionResponseOrBuilderpublic AdmissionControlOuterClass.AdmissionControlStatusOrBuilder getAcStatusOrBuilder()
.admission_control.AdmissionControlStatus ac_status = 2;getAcStatusOrBuilder in interface AdmissionControlOuterClass.SubmitTransactionResponseOrBuilderpublic boolean hasMempoolStatus()
.mempool.MempoolAddTransactionStatus mempool_status = 3;hasMempoolStatus in interface AdmissionControlOuterClass.SubmitTransactionResponseOrBuilderpublic MempoolStatus.MempoolAddTransactionStatus getMempoolStatus()
.mempool.MempoolAddTransactionStatus mempool_status = 3;getMempoolStatus in interface AdmissionControlOuterClass.SubmitTransactionResponseOrBuilderpublic MempoolStatus.MempoolAddTransactionStatusOrBuilder getMempoolStatusOrBuilder()
.mempool.MempoolAddTransactionStatus mempool_status = 3;getMempoolStatusOrBuilder in interface AdmissionControlOuterClass.SubmitTransactionResponseOrBuilderpublic com.google.protobuf.ByteString getValidatorId()
Public key(id) of the validator that processed this transaction
bytes validator_id = 4;getValidatorId in interface AdmissionControlOuterClass.SubmitTransactionResponseOrBuilderpublic 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 AdmissionControlOuterClass.SubmitTransactionResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdmissionControlOuterClass.SubmitTransactionResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdmissionControlOuterClass.SubmitTransactionResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdmissionControlOuterClass.SubmitTransactionResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdmissionControlOuterClass.SubmitTransactionResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdmissionControlOuterClass.SubmitTransactionResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AdmissionControlOuterClass.SubmitTransactionResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static AdmissionControlOuterClass.SubmitTransactionResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AdmissionControlOuterClass.SubmitTransactionResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static AdmissionControlOuterClass.SubmitTransactionResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static AdmissionControlOuterClass.SubmitTransactionResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static AdmissionControlOuterClass.SubmitTransactionResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic AdmissionControlOuterClass.SubmitTransactionResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static AdmissionControlOuterClass.SubmitTransactionResponse.Builder newBuilder()
public static AdmissionControlOuterClass.SubmitTransactionResponse.Builder newBuilder(AdmissionControlOuterClass.SubmitTransactionResponse prototype)
public AdmissionControlOuterClass.SubmitTransactionResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected AdmissionControlOuterClass.SubmitTransactionResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static AdmissionControlOuterClass.SubmitTransactionResponse getDefaultInstance()
public static com.google.protobuf.Parser<AdmissionControlOuterClass.SubmitTransactionResponse> parser()
public com.google.protobuf.Parser<AdmissionControlOuterClass.SubmitTransactionResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public AdmissionControlOuterClass.SubmitTransactionResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2019. All rights reserved.