public static final class AccountService.CreateAccountRequest.Builder extends com.google.protobuf.GeneratedMessageLite.Builder<AccountService.CreateAccountRequest,AccountService.CreateAccountRequest.Builder> implements AccountService.CreateAccountRequestOrBuilder
kin.agora.account.v4.CreateAccountRequest| Modifier and Type | Method and Description |
|---|---|
AccountService.CreateAccountRequest.Builder |
clearCommitment()
.kin.agora.common.v4.Commitment commitment = 2; |
AccountService.CreateAccountRequest.Builder |
clearTransaction()
CreateAccountRequest should be of one of the following forms:
Legacy:
1.
|
Model.Commitment |
getCommitment()
.kin.agora.common.v4.Commitment commitment = 2; |
int |
getCommitmentValue()
.kin.agora.common.v4.Commitment commitment = 2; |
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.
|
AccountService.CreateAccountRequest.Builder |
mergeTransaction(Model.Transaction value)
CreateAccountRequest should be of one of the following forms:
Legacy:
1.
|
AccountService.CreateAccountRequest.Builder |
setCommitment(Model.Commitment value)
.kin.agora.common.v4.Commitment commitment = 2; |
AccountService.CreateAccountRequest.Builder |
setCommitmentValue(int value)
.kin.agora.common.v4.Commitment commitment = 2; |
AccountService.CreateAccountRequest.Builder |
setTransaction(Model.Transaction.Builder builderForValue)
CreateAccountRequest should be of one of the following forms:
Legacy:
1.
|
AccountService.CreateAccountRequest.Builder |
setTransaction(Model.Transaction value)
CreateAccountRequest should be of one of the following forms:
Legacy:
1.
|
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionpublic 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 AccountService.CreateAccountRequest.Builder setTransaction(Model.Transaction value)
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;public AccountService.CreateAccountRequest.Builder setTransaction(Model.Transaction.Builder builderForValue)
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;public AccountService.CreateAccountRequest.Builder mergeTransaction(Model.Transaction value)
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;public AccountService.CreateAccountRequest.Builder clearTransaction()
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;public int getCommitmentValue()
.kin.agora.common.v4.Commitment commitment = 2;getCommitmentValue in interface AccountService.CreateAccountRequestOrBuilderpublic AccountService.CreateAccountRequest.Builder setCommitmentValue(int value)
.kin.agora.common.v4.Commitment commitment = 2;value - The commitment to set.public Model.Commitment getCommitment()
.kin.agora.common.v4.Commitment commitment = 2;getCommitment in interface AccountService.CreateAccountRequestOrBuilderpublic AccountService.CreateAccountRequest.Builder setCommitment(Model.Commitment value)
.kin.agora.common.v4.Commitment commitment = 2;value - The enum numeric value on the wire for commitment to set.public AccountService.CreateAccountRequest.Builder clearCommitment()
.kin.agora.common.v4.Commitment commitment = 2;