Package dev.vality.webhook.dispatcher
Class WebhookMessage
java.lang.Object
dev.vality.webhook.dispatcher.WebhookMessage
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<WebhookMessage>,org.apache.thrift.TBase<WebhookMessage,WebhookMessage._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-02-21")
public class WebhookMessage
extends Object
implements org.apache.thrift.TBase<WebhookMessage,WebhookMessage._Fields>, Serializable, Cloneable, Comparable<WebhookMessage>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWebhookMessage._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description Map<String,String>additional_headersStringcontent_typeStringcreated_atlongevent_idstatic Map<WebhookMessage._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMaplongparent_event_idByteBufferrequest_bodylongretry_countStringsource_idStringurllongwebhook_id -
Constructor Summary
Constructors Constructor Description WebhookMessage()WebhookMessage(long webhook_id, String source_id, long event_id, long parent_event_id, String created_at, String url, String content_type, Map<String,String> additional_headers, ByteBuffer request_body)WebhookMessage(WebhookMessage other)Performs a deep copy on other. -
Method Summary
Modifier and Type Method Description ByteBufferbufferForRequestBody()voidclear()intcompareTo(WebhookMessage other)WebhookMessagedeepCopy()booleanequals(WebhookMessage that)booleanequals(Object that)WebhookMessage._FieldsfieldForId(int fieldId)Map<String,String>getAdditionalHeaders()intgetAdditionalHeadersSize()StringgetContentType()StringgetCreatedAt()longgetEventId()Map<WebhookMessage._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()WebhookMessage._Fields[]getFields()ObjectgetFieldValue(WebhookMessage._Fields field)longgetParentEventId()byte[]getRequestBody()longgetRetryCount()StringgetSourceId()StringgetUrl()longgetWebhookId()inthashCode()booleanisSet(WebhookMessage._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetAdditionalHeaders()Returns true if field additional_headers is set (has been assigned a value) and false otherwisebooleanisSetContentType()Returns true if field content_type is set (has been assigned a value) and false otherwisebooleanisSetCreatedAt()Returns true if field created_at is set (has been assigned a value) and false otherwisebooleanisSetEventId()Returns true if field event_id is set (has been assigned a value) and false otherwisebooleanisSetParentEventId()Returns true if field parent_event_id is set (has been assigned a value) and false otherwisebooleanisSetRequestBody()Returns true if field request_body is set (has been assigned a value) and false otherwisebooleanisSetRetryCount()Returns true if field retry_count is set (has been assigned a value) and false otherwisebooleanisSetSourceId()Returns true if field source_id is set (has been assigned a value) and false otherwisebooleanisSetUrl()Returns true if field url is set (has been assigned a value) and false otherwisebooleanisSetWebhookId()Returns true if field webhook_id is set (has been assigned a value) and false otherwisevoidputToAdditionalHeaders(String key, String val)voidread(org.apache.thrift.protocol.TProtocol iprot)WebhookMessagesetAdditionalHeaders(Map<String,String> additional_headers)voidsetAdditionalHeadersIsSet(boolean value)WebhookMessagesetContentType(String content_type)voidsetContentTypeIsSet(boolean value)WebhookMessagesetCreatedAt(String created_at)voidsetCreatedAtIsSet(boolean value)WebhookMessagesetEventId(long event_id)voidsetEventIdIsSet(boolean value)voidsetFieldValue(WebhookMessage._Fields field, Object value)WebhookMessagesetParentEventId(long parent_event_id)voidsetParentEventIdIsSet(boolean value)WebhookMessagesetRequestBody(byte[] request_body)WebhookMessagesetRequestBody(ByteBuffer request_body)voidsetRequestBodyIsSet(boolean value)WebhookMessagesetRetryCount(long retry_count)voidsetRetryCountIsSet(boolean value)WebhookMessagesetSourceId(String source_id)voidsetSourceIdIsSet(boolean value)WebhookMessagesetUrl(String url)voidsetUrlIsSet(boolean value)WebhookMessagesetWebhookId(long webhook_id)voidsetWebhookIdIsSet(boolean value)StringtoString()voidunsetAdditionalHeaders()voidunsetContentType()voidunsetCreatedAt()voidunsetEventId()voidunsetParentEventId()voidunsetRequestBody()voidunsetRetryCount()voidunsetSourceId()voidunsetUrl()voidunsetWebhookId()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
webhook_id
public long webhook_id -
source_id
-
event_id
public long event_id -
parent_event_id
public long parent_event_id -
created_at
-
url
-
content_type
-
additional_headers
-
request_body
-
retry_count
public long retry_count -
metaDataMap
public static final Map<WebhookMessage._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
WebhookMessage
public WebhookMessage() -
WebhookMessage
-
WebhookMessage
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<WebhookMessage,WebhookMessage._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<WebhookMessage,WebhookMessage._Fields>
-
getWebhookId
public long getWebhookId() -
setWebhookId
-
unsetWebhookId
public void unsetWebhookId() -
isSetWebhookId
public boolean isSetWebhookId()Returns true if field webhook_id is set (has been assigned a value) and false otherwise -
setWebhookIdIsSet
public void setWebhookIdIsSet(boolean value) -
getSourceId
-
setSourceId
-
unsetSourceId
public void unsetSourceId() -
isSetSourceId
public boolean isSetSourceId()Returns true if field source_id is set (has been assigned a value) and false otherwise -
setSourceIdIsSet
public void setSourceIdIsSet(boolean value) -
getEventId
public long getEventId() -
setEventId
-
unsetEventId
public void unsetEventId() -
isSetEventId
public boolean isSetEventId()Returns true if field event_id is set (has been assigned a value) and false otherwise -
setEventIdIsSet
public void setEventIdIsSet(boolean value) -
getParentEventId
public long getParentEventId() -
setParentEventId
-
unsetParentEventId
public void unsetParentEventId() -
isSetParentEventId
public boolean isSetParentEventId()Returns true if field parent_event_id is set (has been assigned a value) and false otherwise -
setParentEventIdIsSet
public void setParentEventIdIsSet(boolean value) -
getCreatedAt
-
setCreatedAt
-
unsetCreatedAt
public void unsetCreatedAt() -
isSetCreatedAt
public boolean isSetCreatedAt()Returns true if field created_at is set (has been assigned a value) and false otherwise -
setCreatedAtIsSet
public void setCreatedAtIsSet(boolean value) -
getUrl
-
setUrl
-
unsetUrl
public void unsetUrl() -
isSetUrl
public boolean isSetUrl()Returns true if field url is set (has been assigned a value) and false otherwise -
setUrlIsSet
public void setUrlIsSet(boolean value) -
getContentType
-
setContentType
-
unsetContentType
public void unsetContentType() -
isSetContentType
public boolean isSetContentType()Returns true if field content_type is set (has been assigned a value) and false otherwise -
setContentTypeIsSet
public void setContentTypeIsSet(boolean value) -
getAdditionalHeadersSize
public int getAdditionalHeadersSize() -
putToAdditionalHeaders
-
getAdditionalHeaders
-
setAdditionalHeaders
-
unsetAdditionalHeaders
public void unsetAdditionalHeaders() -
isSetAdditionalHeaders
public boolean isSetAdditionalHeaders()Returns true if field additional_headers is set (has been assigned a value) and false otherwise -
setAdditionalHeadersIsSet
public void setAdditionalHeadersIsSet(boolean value) -
getRequestBody
public byte[] getRequestBody() -
bufferForRequestBody
-
setRequestBody
-
setRequestBody
-
unsetRequestBody
public void unsetRequestBody() -
isSetRequestBody
public boolean isSetRequestBody()Returns true if field request_body is set (has been assigned a value) and false otherwise -
setRequestBodyIsSet
public void setRequestBodyIsSet(boolean value) -
getRetryCount
public long getRetryCount() -
setRetryCount
-
unsetRetryCount
public void unsetRetryCount() -
isSetRetryCount
public boolean isSetRetryCount()Returns true if field retry_count is set (has been assigned a value) and false otherwise -
setRetryCountIsSet
public void setRetryCountIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<WebhookMessage,WebhookMessage._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<WebhookMessage,WebhookMessage._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<WebhookMessage,WebhookMessage._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<WebhookMessage>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<WebhookMessage,WebhookMessage._Fields>
-
getFields
-
getFieldMetaData
-
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
-