Package dev.vality.bouncer.context.v1
Class UrlShortenerOperation
java.lang.Object
dev.vality.bouncer.context.v1.UrlShortenerOperation
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<UrlShortenerOperation>,org.apache.thrift.TBase<UrlShortenerOperation,UrlShortenerOperation._Fields>,org.apache.thrift.TSerializable
@Generated(value="Autogenerated by Thrift Compiler (0.14.2)",
date="2022-08-25")
public class UrlShortenerOperation
extends Object
implements org.apache.thrift.TBase<UrlShortenerOperation,UrlShortenerOperation._Fields>, Serializable, Cloneable, Comparable<UrlShortenerOperation>
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUrlShortenerOperation._FieldsThe set of fields this struct contains, along with convenience methods for finding and manipulating them. -
Field Summary
Fields Modifier and Type Field Description StringidНапример: - "ShortenUrl" - "GetShortenedUrl" - "DeleteShortenedUrl"static Map<UrlShortenerOperation._Fields,org.apache.thrift.meta_data.FieldMetaData>metaDataMapShortenedUrlshortened_url -
Constructor Summary
Constructors Constructor Description UrlShortenerOperation()UrlShortenerOperation(UrlShortenerOperation other)Performs a deep copy on other. -
Method Summary
Modifier and Type Method Description voidclear()intcompareTo(UrlShortenerOperation other)UrlShortenerOperationdeepCopy()booleanequals(UrlShortenerOperation that)booleanequals(Object that)UrlShortenerOperation._FieldsfieldForId(int fieldId)Map<UrlShortenerOperation._Fields,org.apache.thrift.meta_data.FieldMetaData>getFieldMetaData()UrlShortenerOperation._Fields[]getFields()ObjectgetFieldValue(UrlShortenerOperation._Fields field)StringgetId()Например: - "ShortenUrl" - "GetShortenedUrl" - "DeleteShortenedUrl"ShortenedUrlgetShortenedUrl()inthashCode()booleanisSet(UrlShortenerOperation._Fields field)Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwisebooleanisSetId()Returns true if field id is set (has been assigned a value) and false otherwisebooleanisSetShortenedUrl()Returns true if field shortened_url is set (has been assigned a value) and false otherwisevoidread(org.apache.thrift.protocol.TProtocol iprot)voidsetFieldValue(UrlShortenerOperation._Fields field, Object value)UrlShortenerOperationsetId(String id)Например: - "ShortenUrl" - "GetShortenedUrl" - "DeleteShortenedUrl"voidsetIdIsSet(boolean value)UrlShortenerOperationsetShortenedUrl(ShortenedUrl shortened_url)voidsetShortenedUrlIsSet(boolean value)StringtoString()voidunsetId()voidunsetShortenedUrl()voidvalidate()voidwrite(org.apache.thrift.protocol.TProtocol oprot)
-
Field Details
-
id
Например: - "ShortenUrl" - "GetShortenedUrl" - "DeleteShortenedUrl" -
shortened_url
-
metaDataMap
public static final Map<UrlShortenerOperation._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Details
-
UrlShortenerOperation
public UrlShortenerOperation() -
UrlShortenerOperation
Performs a deep copy on other.
-
-
Method Details
-
deepCopy
- Specified by:
deepCopyin interfaceorg.apache.thrift.TBase<UrlShortenerOperation,UrlShortenerOperation._Fields>
-
clear
public void clear()- Specified by:
clearin interfaceorg.apache.thrift.TBase<UrlShortenerOperation,UrlShortenerOperation._Fields>
-
getId
Например: - "ShortenUrl" - "GetShortenedUrl" - "DeleteShortenedUrl" -
setId
Например: - "ShortenUrl" - "GetShortenedUrl" - "DeleteShortenedUrl" -
unsetId
public void unsetId() -
isSetId
public boolean isSetId()Returns true if field id is set (has been assigned a value) and false otherwise -
setIdIsSet
public void setIdIsSet(boolean value) -
getShortenedUrl
-
setShortenedUrl
-
unsetShortenedUrl
public void unsetShortenedUrl() -
isSetShortenedUrl
public boolean isSetShortenedUrl()Returns true if field shortened_url is set (has been assigned a value) and false otherwise -
setShortenedUrlIsSet
public void setShortenedUrlIsSet(boolean value) -
setFieldValue
- Specified by:
setFieldValuein interfaceorg.apache.thrift.TBase<UrlShortenerOperation,UrlShortenerOperation._Fields>
-
getFieldValue
- Specified by:
getFieldValuein interfaceorg.apache.thrift.TBase<UrlShortenerOperation,UrlShortenerOperation._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<UrlShortenerOperation,UrlShortenerOperation._Fields>
-
equals
-
equals
-
hashCode
public int hashCode() -
compareTo
- Specified by:
compareToin interfaceComparable<UrlShortenerOperation>
-
fieldForId
- Specified by:
fieldForIdin interfaceorg.apache.thrift.TBase<UrlShortenerOperation,UrlShortenerOperation._Fields>
-
getFields
- Specified by:
getFieldsin interfaceorg.apache.thrift.TBase<UrlShortenerOperation,UrlShortenerOperation._Fields>
-
getFieldMetaData
public Map<UrlShortenerOperation._Fields,org.apache.thrift.meta_data.FieldMetaData> getFieldMetaData()- Specified by:
getFieldMetaDatain interfaceorg.apache.thrift.TBase<UrlShortenerOperation,UrlShortenerOperation._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
-