public static final class AccountService.CreateAccountRequest extends com.google.protobuf.GeneratedMessageLite<AccountService.CreateAccountRequest,AccountService.CreateAccountRequest.Builder> implements AccountService.CreateAccountRequestOrBuilder
kin.agora.account.v4.CreateAccountRequest| Modifier and Type | Class and Description |
|---|---|
static class |
AccountService.CreateAccountRequest.Builder
Protobuf type
kin.agora.account.v4.CreateAccountRequest |
com.google.protobuf.GeneratedMessageLite.DefaultInstanceBasedParser<T extends com.google.protobuf.GeneratedMessageLite<T,?>>, com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageLite.ExtendableMessage<MessageType,BuilderType>,BuilderType extends com.google.protobuf.GeneratedMessageLite.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageLite.GeneratedExtension<ContainingType extends com.google.protobuf.MessageLite,Type>, com.google.protobuf.GeneratedMessageLite.MethodToInvoke, com.google.protobuf.GeneratedMessageLite.SerializedForm| Modifier and Type | Field and Description |
|---|---|
static int |
COMMITMENT_FIELD_NUMBER |
static int |
TRANSACTION_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0,
java.lang.Object arg1) |
Model.Commitment |
getCommitment()
.kin.agora.common.v4.Commitment commitment = 2; |
int |
getCommitmentValue()
.kin.agora.common.v4.Commitment commitment = 2; |
static AccountService.CreateAccountRequest |
getDefaultInstance() |
Model.Transaction |
getTransaction()
CreateAccountRequest should be of one of the following forms:
Legacy:
1.
|
boolean |
hasTransaction()
CreateAccountRequest should be of one of the following forms:
Legacy:
1.
|
static AccountService.CreateAccountRequest.Builder |
newBuilder() |
static AccountService.CreateAccountRequest.Builder |
newBuilder(AccountService.CreateAccountRequest prototype) |
static AccountService.CreateAccountRequest |
parseDelimitedFrom(java.io.InputStream input) |
static AccountService.CreateAccountRequest |
parseDelimitedFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AccountService.CreateAccountRequest |
parseFrom(byte[] data) |
static AccountService.CreateAccountRequest |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AccountService.CreateAccountRequest |
parseFrom(java.nio.ByteBuffer data) |
static AccountService.CreateAccountRequest |
parseFrom(java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AccountService.CreateAccountRequest |
parseFrom(com.google.protobuf.ByteString data) |
static AccountService.CreateAccountRequest |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AccountService.CreateAccountRequest |
parseFrom(com.google.protobuf.CodedInputStream input) |
static AccountService.CreateAccountRequest |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static AccountService.CreateAccountRequest |
parseFrom(java.io.InputStream input) |
static AccountService.CreateAccountRequest |
parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<AccountService.CreateAccountRequest> |
parser() |
createBuilder, createBuilder, dynamicMethod, dynamicMethod, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, emptyProtobufList, equals, getDefaultInstanceForType, getParserForType, getSerializedSize, hashCode, isInitialized, isInitialized, makeImmutable, mergeLengthDelimitedField, mergeUnknownFields, mergeVarintField, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBuilderForType, newMessageInfo, newRepeatedGeneratedExtension, newSingularGeneratedExtension, parseDelimitedFrom, parseDelimitedFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parseFrom, parsePartialFrom, parseUnknownField, registerDefaultInstance, toBuilder, toString, writeToaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTopublic static final int TRANSACTION_FIELD_NUMBER
public static final int COMMITMENT_FIELD_NUMBER
public boolean hasTransaction()
CreateAccountRequest should be of one of the following forms:
Legacy:
1. [Optional] Memo::Memo()
2. SystemProgram::CreateAccount()
3. SplTokenProgram::InitializeAccount()
4. [Optional] SplTokenProgram::SetAuthority()
Standard:
1. [Optional] Memo::Memo()
2. SplAssociateTokenAccount::CreateAssociatedTokenAccount()
3. [Optional] SplTokenProgram::SetAuthority()
The SetAuthority() instruction only needs to be set if the service is
subsidizing the account creation. In that case, a SetAuthority()
instruction must be included that sets the CloseAuthority of
the account to the subsidizer. This is to prevent the farming of Sol
by creating accounts. It should be noted that an account can only
be closed if there is zero kin in the account.
An optional memo may be provided to attribute the account
creation with an app index. This may be used for the KRE.
The memo type should be NONE.
If the parameters are not for the Kin token, or there are
any other instructions, InvalidArgument will be returned.
.kin.agora.common.v4.Transaction transaction = 1;hasTransaction in interface AccountService.CreateAccountRequestOrBuilderpublic Model.Transaction getTransaction()
CreateAccountRequest should be of one of the following forms:
Legacy:
1. [Optional] Memo::Memo()
2. SystemProgram::CreateAccount()
3. SplTokenProgram::InitializeAccount()
4. [Optional] SplTokenProgram::SetAuthority()
Standard:
1. [Optional] Memo::Memo()
2. SplAssociateTokenAccount::CreateAssociatedTokenAccount()
3. [Optional] SplTokenProgram::SetAuthority()
The SetAuthority() instruction only needs to be set if the service is
subsidizing the account creation. In that case, a SetAuthority()
instruction must be included that sets the CloseAuthority of
the account to the subsidizer. This is to prevent the farming of Sol
by creating accounts. It should be noted that an account can only
be closed if there is zero kin in the account.
An optional memo may be provided to attribute the account
creation with an app index. This may be used for the KRE.
The memo type should be NONE.
If the parameters are not for the Kin token, or there are
any other instructions, InvalidArgument will be returned.
.kin.agora.common.v4.Transaction transaction = 1;getTransaction in interface AccountService.CreateAccountRequestOrBuilderpublic int getCommitmentValue()
.kin.agora.common.v4.Commitment commitment = 2;getCommitmentValue in interface AccountService.CreateAccountRequestOrBuilderpublic Model.Commitment getCommitment()
.kin.agora.common.v4.Commitment commitment = 2;getCommitment in interface AccountService.CreateAccountRequestOrBuilderpublic static AccountService.CreateAccountRequest parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AccountService.CreateAccountRequest parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AccountService.CreateAccountRequest parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AccountService.CreateAccountRequest parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AccountService.CreateAccountRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AccountService.CreateAccountRequest parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static AccountService.CreateAccountRequest parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AccountService.CreateAccountRequest parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AccountService.CreateAccountRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AccountService.CreateAccountRequest parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AccountService.CreateAccountRequest parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static AccountService.CreateAccountRequest parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static AccountService.CreateAccountRequest.Builder newBuilder()
public static AccountService.CreateAccountRequest.Builder newBuilder(AccountService.CreateAccountRequest prototype)
protected final java.lang.Object dynamicMethod(com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0,
java.lang.Object arg1)
dynamicMethod in class com.google.protobuf.GeneratedMessageLite<AccountService.CreateAccountRequest,AccountService.CreateAccountRequest.Builder>public static AccountService.CreateAccountRequest getDefaultInstance()
public static com.google.protobuf.Parser<AccountService.CreateAccountRequest> parser()