public EndpointStateUpdate deepCopy() { return new EndpointStateUpdate(this); }
public Object getFieldValue(_Fields field) { switch (field) { case TENANT_ID: return getTenantId(); case USER_ID: return getUserId(); case APPLICATION_TOKEN: return getApplicationToken(); case ENDPOINT_KEY: return getEndpointKey(); case UCF_HASH: return getUcfHash(); } throw new IllegalStateException(); }
case TENANT_ID: if (value == null) { unsetTenantId(); } else { setTenantId((String)value); unsetUserId(); } else { setUserId((String)value); unsetApplicationToken(); } else { setApplicationToken((String)value); unsetEndpointKey(); } else { setEndpointKey((ByteBuffer)value); unsetUcfHash(); } else { setUcfHash((ByteBuffer)value);
private List<Message> packMessage(EndpointUserConfigurationUpdate update) { final EventMessageType type = EventMessageType.ENDPOINT_STATE_UPDATE; final List<Message> messages = new LinkedList<>(); EndpointStateUpdate msg = new EndpointStateUpdate(); msg.setTenantId(update.getTenantId()); msg.setUserId(update.getUserId()); msg.setApplicationToken(update.getApplicationToken()); msg.setEndpointKey(update.getKey().getData()); msg.setUcfHash(update.getHash()); messages.add(new Message(type, getEventId(), null, null, null, null, msg)); return messages; }
case 7: // ENDPOINT_STATE_UPDATE if (schemeField.type == org.apache.thrift.protocol.TType.STRUCT) { struct.endpointStateUpdate = new EndpointStateUpdate(); struct.endpointStateUpdate.read(iprot); struct.setEndpointStateUpdateIsSet(true); } else {
public byte[] getUcfHash() { setUcfHash(org.apache.thrift.TBaseHelper.rightSize(ucfHash)); return ucfHash == null ? null : ucfHash.array(); }
public byte[] getEndpointKey() { setEndpointKey(org.apache.thrift.TBaseHelper.rightSize(endpointKey)); return endpointKey == null ? null : endpointKey.array(); }
struct.endpointStateUpdate = new EndpointStateUpdate(); struct.endpointStateUpdate.read(iprot); struct.setEndpointStateUpdateIsSet(true);
/** * All-args constructor. */ public static EndpointUserConfigurationUpdate fromThrift( org.kaaproject.kaa.server.common.thrift.gen.operations.EndpointStateUpdate notification) { return new EndpointUserConfigurationUpdate(notification.getTenantId(), notification.getUserId(), notification.getApplicationToken(), EndpointObjectHash.fromBytes(notification.getEndpointKey()), notification.getUcfHash()); }
/** * Performs a deep copy on <i>other</i>. */ public Message(Message other) { __isset_bitfield = other.__isset_bitfield; if (other.isSetType()) { this.type = other.type; } this.eventId = other.eventId; if (other.isSetEvent()) { this.event = new Event(other.event); } if (other.isSetRoute()) { this.route = new EventRoute(other.route); } if (other.isSetUserRoute()) { this.userRoute = new UserRouteInfo(other.userRoute); } if (other.isSetEndpointRouteUpdate()) { this.endpointRouteUpdate = new EndpointRouteUpdate(other.endpointRouteUpdate); } if (other.isSetEndpointStateUpdate()) { this.endpointStateUpdate = new EndpointStateUpdate(other.endpointStateUpdate); } }