Package dev.vality.bouncer.context.v1
Class ContextFragment
java.lang.Object
dev.vality.bouncer.context.v1.ContextFragment
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<ContextFragment>,org.apache.thrift.TBase<ContextFragment,,ContextFragment._Fields> org.apache.thrift.TSerializable
public class ContextFragment
extends Object
implements org.apache.thrift.TBase<ContextFragment,ContextFragment._Fields>, Serializable, Cloneable, Comparable<ContextFragment>
Контекст для принятия решений, по сути аннотированный набором атрибутов.
Контексты можно компоновать между собой.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<ContextFragment._Fields,org.apache.thrift.meta_data.FieldMetaData> intНаборы атрибутов для контекста сервиса кошельков, см. -
Constructor Summary
ConstructorsConstructorDescriptionContextFragment(int vsn) ContextFragment(ContextFragment other) Performs a deep copy on other. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToEntities(Entity elem) voidaddToWallet(Entity elem) voidclear()intcompareTo(ContextFragment other) deepCopy()booleanequals(ContextFragment that) booleanfieldForId(int fieldId) getAnapi()getAuth()getCapi()intgetEnv()Map<ContextFragment._Fields,org.apache.thrift.meta_data.FieldMetaData> getUser()intgetVsn()Наборы атрибутов для контекста сервиса кошельков, см.intgetWapi()inthashCode()booleanisSet(ContextFragment._Fields field) Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanReturns true if field anapi is set (has been assigned a value) and false otherwisebooleanReturns true if field apikeymgmt is set (has been assigned a value) and false otherwisebooleanReturns true if field auth is set (has been assigned a value) and false otherwisebooleanReturns true if field binapi is set (has been assigned a value) and false otherwisebooleanReturns true if field capi is set (has been assigned a value) and false otherwisebooleanReturns true if field claimmgmt is set (has been assigned a value) and false otherwisebooleanReturns true if field entities is set (has been assigned a value) and false otherwisebooleanisSetEnv()Returns true if field env is set (has been assigned a value) and false otherwisebooleanReturns true if field orgmgmt is set (has been assigned a value) and false otherwisebooleanReturns true if field payment_processing is set (has been assigned a value) and false otherwisebooleanReturns true if field payment_tool is set (has been assigned a value) and false otherwisebooleanReturns true if field payouts is set (has been assigned a value) and false otherwisebooleanReturns true if field reports is set (has been assigned a value) and false otherwisebooleanReturns true if field requester is set (has been assigned a value) and false otherwisebooleanReturns true if field shortener is set (has been assigned a value) and false otherwisebooleanReturns true if field user is set (has been assigned a value) and false otherwisebooleanisSetVsn()Returns true if field vsn is set (has been assigned a value) and false otherwisebooleanReturns true if field wallet is set (has been assigned a value) and false otherwisebooleanReturns true if field wapi is set (has been assigned a value) and false otherwisebooleanReturns true if field webhooks is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot) setAnapi(ContextAnalyticsAPI anapi) voidsetAnapiIsSet(boolean value) setApikeymgmt(ContextApiKeyMgmt apikeymgmt) voidsetApikeymgmtIsSet(boolean value) voidsetAuthIsSet(boolean value) setBinapi(ContextBinapi binapi) voidsetBinapiIsSet(boolean value) setCapi(ContextCommonAPI capi) voidsetCapiIsSet(boolean value) setClaimmgmt(ContextClaimManagement claimmgmt) voidsetClaimmgmtIsSet(boolean value) setEntities(Set<Entity> entities) voidsetEntitiesIsSet(boolean value) setEnv(Environment env) voidsetEnvIsSet(boolean value) voidsetFieldValue(ContextFragment._Fields field, Object value) setOrgmgmt(ContextOrgManagement orgmgmt) voidsetOrgmgmtIsSet(boolean value) setPaymentProcessing(ContextPaymentProcessing payment_processing) voidsetPaymentProcessingIsSet(boolean value) setPaymentTool(ContextPaymentTool payment_tool) voidsetPaymentToolIsSet(boolean value) setPayouts(ContextPayouts payouts) voidsetPayoutsIsSet(boolean value) setReports(ContextReports reports) voidsetReportsIsSet(boolean value) setRequester(Requester requester) voidsetRequesterIsSet(boolean value) setShortener(ContextUrlShortener shortener) voidsetShortenerIsSet(boolean value) voidsetUserIsSet(boolean value) setVsn(int vsn) voidsetVsnIsSet(boolean value) Наборы атрибутов для контекста сервиса кошельков, см.voidsetWalletIsSet(boolean value) setWapi(ContextWalletAPI wapi) voidsetWapiIsSet(boolean value) setWebhooks(ContextWebhooks webhooks) voidsetWebhooksIsSet(boolean value) toString()voidvoidvoidvoidvoidvoidvoidvoidunsetEnv()voidvoidvoidvoidvoidvoidvoidvoidvoidunsetVsn()voidvoidvoidvoidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
vsn
public int vsn -
env
-
auth
-
user
-
requester
-
capi
-
orgmgmt
-
shortener
-
binapi
-
anapi
-
wapi
-
payment_processing
-
payouts
-
webhooks
-
reports
-
claimmgmt
-
payment_tool
-
wallet
Наборы атрибутов для контекста сервиса кошельков, см. описание ниже. -
apikeymgmt
-
entities
-
metaDataMap
public static final Map<ContextFragment._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
ContextFragment
public ContextFragment() -
ContextFragment
public ContextFragment(int vsn) -
ContextFragment
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<ContextFragment,ContextFragment._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<ContextFragment,ContextFragment._Fields>
-
getVsn
public int getVsn() -
setVsn
-
unsetVsn
public void unsetVsn() -
isSetVsn
public boolean isSetVsn()Returns true if field vsn is set (has been assigned a value) and false otherwise -
setVsnIsSet
public void setVsnIsSet(boolean value) -
getEnv
-
setEnv
-
unsetEnv
public void unsetEnv() -
isSetEnv
public boolean isSetEnv()Returns true if field env is set (has been assigned a value) and false otherwise -
setEnvIsSet
public void setEnvIsSet(boolean value) -
getAuth
-
setAuth
-
unsetAuth
public void unsetAuth() -
isSetAuth
public boolean isSetAuth()Returns true if field auth is set (has been assigned a value) and false otherwise -
setAuthIsSet
public void setAuthIsSet(boolean value) -
getUser
-
setUser
-
unsetUser
public void unsetUser() -
isSetUser
public boolean isSetUser()Returns true if field user is set (has been assigned a value) and false otherwise -
setUserIsSet
public void setUserIsSet(boolean value) -
getRequester
-
setRequester
-
unsetRequester
public void unsetRequester() -
isSetRequester
public boolean isSetRequester()Returns true if field requester is set (has been assigned a value) and false otherwise -
setRequesterIsSet
public void setRequesterIsSet(boolean value) -
getCapi
-
setCapi
-
unsetCapi
public void unsetCapi() -
isSetCapi
public boolean isSetCapi()Returns true if field capi is set (has been assigned a value) and false otherwise -
setCapiIsSet
public void setCapiIsSet(boolean value) -
getOrgmgmt
-
setOrgmgmt
-
unsetOrgmgmt
public void unsetOrgmgmt() -
isSetOrgmgmt
public boolean isSetOrgmgmt()Returns true if field orgmgmt is set (has been assigned a value) and false otherwise -
setOrgmgmtIsSet
public void setOrgmgmtIsSet(boolean value) -
getShortener
-
setShortener
-
unsetShortener
public void unsetShortener() -
isSetShortener
public boolean isSetShortener()Returns true if field shortener is set (has been assigned a value) and false otherwise -
setShortenerIsSet
public void setShortenerIsSet(boolean value) -
getBinapi
-
setBinapi
-
unsetBinapi
public void unsetBinapi() -
isSetBinapi
public boolean isSetBinapi()Returns true if field binapi is set (has been assigned a value) and false otherwise -
setBinapiIsSet
public void setBinapiIsSet(boolean value) -
getAnapi
-
setAnapi
-
unsetAnapi
public void unsetAnapi() -
isSetAnapi
public boolean isSetAnapi()Returns true if field anapi is set (has been assigned a value) and false otherwise -
setAnapiIsSet
public void setAnapiIsSet(boolean value) -
getWapi
-
setWapi
-
unsetWapi
public void unsetWapi() -
isSetWapi
public boolean isSetWapi()Returns true if field wapi is set (has been assigned a value) and false otherwise -
setWapiIsSet
public void setWapiIsSet(boolean value) -
getPaymentProcessing
-
setPaymentProcessing
-
unsetPaymentProcessing
public void unsetPaymentProcessing() -
isSetPaymentProcessing
public boolean isSetPaymentProcessing()Returns true if field payment_processing is set (has been assigned a value) and false otherwise -
setPaymentProcessingIsSet
public void setPaymentProcessingIsSet(boolean value) -
getPayouts
-
setPayouts
-
unsetPayouts
public void unsetPayouts() -
isSetPayouts
public boolean isSetPayouts()Returns true if field payouts is set (has been assigned a value) and false otherwise -
setPayoutsIsSet
public void setPayoutsIsSet(boolean value) -
getWebhooks
-
setWebhooks
-
unsetWebhooks
public void unsetWebhooks() -
isSetWebhooks
public boolean isSetWebhooks()Returns true if field webhooks is set (has been assigned a value) and false otherwise -
setWebhooksIsSet
public void setWebhooksIsSet(boolean value) -
getReports
-
setReports
-
unsetReports
public void unsetReports() -
isSetReports
public boolean isSetReports()Returns true if field reports is set (has been assigned a value) and false otherwise -
setReportsIsSet
public void setReportsIsSet(boolean value) -
getClaimmgmt
-
setClaimmgmt
-
unsetClaimmgmt
public void unsetClaimmgmt() -
isSetClaimmgmt
public boolean isSetClaimmgmt()Returns true if field claimmgmt is set (has been assigned a value) and false otherwise -
setClaimmgmtIsSet
public void setClaimmgmtIsSet(boolean value) -
getPaymentTool
-
setPaymentTool
-
unsetPaymentTool
public void unsetPaymentTool() -
isSetPaymentTool
public boolean isSetPaymentTool()Returns true if field payment_tool is set (has been assigned a value) and false otherwise -
setPaymentToolIsSet
public void setPaymentToolIsSet(boolean value) -
getWalletSize
public int getWalletSize() -
getWalletIterator
-
addToWallet
-
getWallet
Наборы атрибутов для контекста сервиса кошельков, см. описание ниже. -
setWallet
Наборы атрибутов для контекста сервиса кошельков, см. описание ниже. -
unsetWallet
public void unsetWallet() -
isSetWallet
public boolean isSetWallet()Returns true if field wallet is set (has been assigned a value) and false otherwise -
setWalletIsSet
public void setWalletIsSet(boolean value) -
getApikeymgmt
-
setApikeymgmt
-
unsetApikeymgmt
public void unsetApikeymgmt() -
isSetApikeymgmt
public boolean isSetApikeymgmt()Returns true if field apikeymgmt is set (has been assigned a value) and false otherwise -
setApikeymgmtIsSet
public void setApikeymgmtIsSet(boolean value) -
getEntitiesSize
public int getEntitiesSize() -
getEntitiesIterator
-
addToEntities
-
getEntities
-
setEntities
-
unsetEntities
public void unsetEntities() -
isSetEntities
public boolean isSetEntities()Returns true if field entities is set (has been assigned a value) and false otherwise -
setEntitiesIsSet
public void setEntitiesIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<ContextFragment,ContextFragment._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<ContextFragment,ContextFragment._Fields>
-
isSet
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSetin interfaceorg.apache.thrift.TBase<ContextFragment,ContextFragment._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<ContextFragment>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<ContextFragment,ContextFragment._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<ContextFragment,ContextFragment._Fields>
-
getFieldMetaData
- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<ContextFragment,ContextFragment._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException - Specified by:
readin interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException - Specified by:
writein interfaceorg.apache.thrift.TSerializable- Throws:
org.apache.thrift.TException
-
toString
-
validate
public void validate() throws org.apache.thrift.TException- Throws:
org.apache.thrift.TException
-