@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.iot.v1.ListDevicesRequest)) { return super.equals(obj); } com.google.cloud.iot.v1.ListDevicesRequest other = (com.google.cloud.iot.v1.ListDevicesRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && getDeviceNumIdsList().equals(other.getDeviceNumIdsList()); result = result && getDeviceIdsList().equals(other.getDeviceIdsList()); result = result && (hasFieldMask() == other.hasFieldMask()); if (hasFieldMask()) { result = result && getFieldMask().equals(other.getFieldMask()); } result = result && (hasGatewayListOptions() == other.hasGatewayListOptions()); if (hasGatewayListOptions()) { result = result && getGatewayListOptions().equals(other.getGatewayListOptions()); } result = result && (getPageSize() == other.getPageSize()); result = result && getPageToken().equals(other.getPageToken()); result = result && unknownFields.equals(other.unknownFields); return result; }
hash = (53 * hash) + getFieldMask().hashCode(); if (hasGatewayListOptions()) { hash = (37 * hash) + GATEWAY_LIST_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getGatewayListOptions().hashCode();
mergeFieldMask(other.getFieldMask()); if (other.hasGatewayListOptions()) { mergeGatewayListOptions(other.getGatewayListOptions());
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.google.cloud.iot.v1.ListDevicesRequest)) { return super.equals(obj); } com.google.cloud.iot.v1.ListDevicesRequest other = (com.google.cloud.iot.v1.ListDevicesRequest) obj; boolean result = true; result = result && getParent().equals(other.getParent()); result = result && getDeviceNumIdsList().equals(other.getDeviceNumIdsList()); result = result && getDeviceIdsList().equals(other.getDeviceIdsList()); result = result && (hasFieldMask() == other.hasFieldMask()); if (hasFieldMask()) { result = result && getFieldMask().equals(other.getFieldMask()); } result = result && (hasGatewayListOptions() == other.hasGatewayListOptions()); if (hasGatewayListOptions()) { result = result && getGatewayListOptions().equals(other.getGatewayListOptions()); } result = result && (getPageSize() == other.getPageSize()); result = result && getPageToken().equals(other.getPageToken()); result = result && unknownFields.equals(other.unknownFields); return result; }
hash = (53 * hash) + getFieldMask().hashCode(); if (hasGatewayListOptions()) { hash = (37 * hash) + GATEWAY_LIST_OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getGatewayListOptions().hashCode();
mergeFieldMask(other.getFieldMask()); if (other.hasGatewayListOptions()) { mergeGatewayListOptions(other.getGatewayListOptions());