Package com.uber.cadence
Class DescribeShardDistributionResponse
- java.lang.Object
-
- com.uber.cadence.DescribeShardDistributionResponse
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.lang.Comparable<DescribeShardDistributionResponse>
,org.apache.thrift.TBase<DescribeShardDistributionResponse,DescribeShardDistributionResponse._Fields>
@Generated(value="Autogenerated by Thrift Compiler (0.9.3)", date="2023-08-08") public class DescribeShardDistributionResponse extends java.lang.Object implements org.apache.thrift.TBase<DescribeShardDistributionResponse,DescribeShardDistributionResponse._Fields>, java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<DescribeShardDistributionResponse>
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DescribeShardDistributionResponse._Fields
The set of fields this struct contains, along with convenience methods for finding and manipulating them.
-
Field Summary
Fields Modifier and Type Field Description static java.util.Map<DescribeShardDistributionResponse._Fields,org.apache.thrift.meta_data.FieldMetaData>
metaDataMap
int
numberOfShards
java.util.Map<java.lang.Integer,java.lang.String>
shards
-
Constructor Summary
Constructors Constructor Description DescribeShardDistributionResponse()
DescribeShardDistributionResponse(DescribeShardDistributionResponse other)
Performs a deep copy on other.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
int
compareTo(DescribeShardDistributionResponse other)
DescribeShardDistributionResponse
deepCopy()
boolean
equals(DescribeShardDistributionResponse that)
boolean
equals(java.lang.Object that)
DescribeShardDistributionResponse._Fields
fieldForId(int fieldId)
java.lang.Object
getFieldValue(DescribeShardDistributionResponse._Fields field)
int
getNumberOfShards()
java.util.Map<java.lang.Integer,java.lang.String>
getShards()
int
getShardsSize()
int
hashCode()
boolean
isSet(DescribeShardDistributionResponse._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwiseboolean
isSetNumberOfShards()
Returns true if field numberOfShards is set (has been assigned a value) and false otherwiseboolean
isSetShards()
Returns true if field shards is set (has been assigned a value) and false otherwisevoid
putToShards(int key, java.lang.String val)
void
read(org.apache.thrift.protocol.TProtocol iprot)
void
setFieldValue(DescribeShardDistributionResponse._Fields field, java.lang.Object value)
DescribeShardDistributionResponse
setNumberOfShards(int numberOfShards)
void
setNumberOfShardsIsSet(boolean value)
DescribeShardDistributionResponse
setShards(java.util.Map<java.lang.Integer,java.lang.String> shards)
void
setShardsIsSet(boolean value)
java.lang.String
toString()
void
unsetNumberOfShards()
void
unsetShards()
void
validate()
void
write(org.apache.thrift.protocol.TProtocol oprot)
-
-
-
Field Detail
-
numberOfShards
public int numberOfShards
-
shards
public java.util.Map<java.lang.Integer,java.lang.String> shards
-
metaDataMap
public static final java.util.Map<DescribeShardDistributionResponse._Fields,org.apache.thrift.meta_data.FieldMetaData> metaDataMap
-
-
Constructor Detail
-
DescribeShardDistributionResponse
public DescribeShardDistributionResponse()
-
DescribeShardDistributionResponse
public DescribeShardDistributionResponse(DescribeShardDistributionResponse other)
Performs a deep copy on other.
-
-
Method Detail
-
deepCopy
public DescribeShardDistributionResponse deepCopy()
- Specified by:
deepCopy
in interfaceorg.apache.thrift.TBase<DescribeShardDistributionResponse,DescribeShardDistributionResponse._Fields>
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.apache.thrift.TBase<DescribeShardDistributionResponse,DescribeShardDistributionResponse._Fields>
-
getNumberOfShards
public int getNumberOfShards()
-
setNumberOfShards
public DescribeShardDistributionResponse setNumberOfShards(int numberOfShards)
-
unsetNumberOfShards
public void unsetNumberOfShards()
-
isSetNumberOfShards
public boolean isSetNumberOfShards()
Returns true if field numberOfShards is set (has been assigned a value) and false otherwise
-
setNumberOfShardsIsSet
public void setNumberOfShardsIsSet(boolean value)
-
getShardsSize
public int getShardsSize()
-
putToShards
public void putToShards(int key, java.lang.String val)
-
getShards
public java.util.Map<java.lang.Integer,java.lang.String> getShards()
-
setShards
public DescribeShardDistributionResponse setShards(java.util.Map<java.lang.Integer,java.lang.String> shards)
-
unsetShards
public void unsetShards()
-
isSetShards
public boolean isSetShards()
Returns true if field shards is set (has been assigned a value) and false otherwise
-
setShardsIsSet
public void setShardsIsSet(boolean value)
-
setFieldValue
public void setFieldValue(DescribeShardDistributionResponse._Fields field, java.lang.Object value)
- Specified by:
setFieldValue
in interfaceorg.apache.thrift.TBase<DescribeShardDistributionResponse,DescribeShardDistributionResponse._Fields>
-
getFieldValue
public java.lang.Object getFieldValue(DescribeShardDistributionResponse._Fields field)
- Specified by:
getFieldValue
in interfaceorg.apache.thrift.TBase<DescribeShardDistributionResponse,DescribeShardDistributionResponse._Fields>
-
isSet
public boolean isSet(DescribeShardDistributionResponse._Fields field)
Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise- Specified by:
isSet
in interfaceorg.apache.thrift.TBase<DescribeShardDistributionResponse,DescribeShardDistributionResponse._Fields>
-
equals
public boolean equals(java.lang.Object that)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(DescribeShardDistributionResponse that)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
compareTo
public int compareTo(DescribeShardDistributionResponse other)
- Specified by:
compareTo
in interfacejava.lang.Comparable<DescribeShardDistributionResponse>
-
fieldForId
public DescribeShardDistributionResponse._Fields fieldForId(int fieldId)
- Specified by:
fieldForId
in interfaceorg.apache.thrift.TBase<DescribeShardDistributionResponse,DescribeShardDistributionResponse._Fields>
-
read
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException
- Specified by:
read
in interfaceorg.apache.thrift.TBase<DescribeShardDistributionResponse,DescribeShardDistributionResponse._Fields>
- Throws:
org.apache.thrift.TException
-
write
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException
- Specified by:
write
in interfaceorg.apache.thrift.TBase<DescribeShardDistributionResponse,DescribeShardDistributionResponse._Fields>
- Throws:
org.apache.thrift.TException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
validate
public void validate() throws org.apache.thrift.TException
- Throws:
org.apache.thrift.TException
-
-